中文字幕av专区_日韩电影在线播放_精品国产精品久久一区免费式_av在线免费观看网站

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

puppet源碼安裝部署

發布時間:2020-07-07 16:54:52 來源:網絡 閱讀:476 作者:liuk1303 欄目:編程語言

一、安裝環境

系統環境

CentOS release 6.8 (Final)

2.6.32-642.1.1.el6.x86_64

編譯環境

gcc version 4.4.7 20120313 (Red Hat 4.4.7-17) (GCC) 


二、源碼編譯Puppet

步驟1 Ruby的安裝

wget https://codeload.github.com/ruby/ruby/zip/ruby_1_8_7

unzip ruby-ruby_1_8_7.zip

cd ruby-ruby_1_8_7

run autoconf to (re)generate configure.

./configure --prefix=/usr/local/puppet-2.7.25

make

make install

出現如下錯誤:

  1. ossl_pkey_ec.c:761: warning: assignment makes pointer from integer without a cast

  2. ossl_pkey_ec.c:815: error: ‘EC_GROUP_new_curve_GF2m’ undeclared (first use in this function)

  3. ossl_pkey_ec.c:815: error: (Each undeclared identifier is reported only once

  4. ossl_pkey_ec.c:815: error: for each function it appears in.)

解決辦法:

該問題在ruby網站上已經提交并有了補丁。

參見鏈接:https://bugs.ruby-lang.org/issues/8384

vi ext/openssl/ossl_pkey_ec.c

 760 #if !defined(OPENSSL_NO_EC2M)

 761             } else if (id == s_GF2m_simple) {

 762                 method = EC_GF2m_simple_method();

 763 #endif

.......

 816 #if !defined(OPENSSL_NO_EC2M)

 817             } else if (id == s_GF2m) {

 818                 new_curve = EC_GROUP_new_curve_GF2m;

 819 #endif  

步驟2 安裝Ruby的擴展支持及手動導入系統環境變量

export PATH=$PATH:/usr/local/puppet/bin:/usr/local/puppet/sbin

[root@puppet ruby-ruby_1_8_7]# ruby -r base64 -e "puts:installed"

installed

[root@puppet ruby-ruby_1_8_7]# ruby -r cgi -e "puts:installed"      

installed

[root@puppet ruby-ruby_1_8_7]# ruby -r digest/md5 -e "puts:installed"      

installed

[root@puppet ruby-ruby_1_8_7]# ruby -r etc -e "puts:installed"          

installed

[root@puppet ruby-ruby_1_8_7]# ruby -r fileutils -e "puts:installed"   

installed

[root@puppet ruby-ruby_1_8_7]# ruby -r ipaddr -e "puts:installed"         

installed

[root@puppet ruby-ruby_1_8_7]# ruby -r openssl -e "puts:installed"      

installed

[root@puppet ruby-ruby_1_8_7]# ruby -r strscan -e "puts:installed"       

installed

[root@puppet ruby-ruby_1_8_7]# ruby -r syslog -e "puts:installed"       

installed

[root@puppet ruby-ruby_1_8_7]# ruby -r uri -e "puts:installed"      

installed

[root@puppet ruby-ruby_1_8_7]# ruby -r webrick -e "puts:installed"   

installed

[root@puppet ruby-ruby_1_8_7]# ruby -r webrick/https -e "puts:installed"

installed

[root@puppet ruby-ruby_1_8_7]# ruby -r xmlrpc/client -e "puts:installed"            

installed

步驟3 安裝ruby-shadow

wget https://codeload.github.com/apalmblad/ruby-shadow/zip/2.1.4

unzip ruby-shadow-2.1.4.zip

cd ruby-shadow-2.1.4

ruby extconf.rb 

make

make install

步驟4 安裝Facter

wget https://codeload.github.com/puppetlabs/facter/zip/1.7.4

unzip facter-1.7.4.zip

cd facter-1.7.4

ruby install.rb 

步驟5 安裝Puppet

wget https://codeload.github.com/puppetlabs/puppet/zip/2.7.x

unzip puppet-2.7.x.zip 

cd puppet-2.7.x 

ruby install.rb --full




向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

射阳县| 松桃| 乌兰察布市| 汉源县| 洞口县| 平舆县| 米易县| 勃利县| 西宁市| 莱州市| 工布江达县| 尼木县| 弋阳县| 定日县| 四平市| 泗水县| 夏河县| 余江县| 济宁市| 时尚| 广灵县| 桦南县| 吴川市| 井研县| 弥勒县| 蒙自县| 阳朔县| 耒阳市| 云霄县| 黎城县| 民乐县| 汝南县| 赤城县| 宁强县| 泰宁县| 泽州县| 苍山县| 墨竹工卡县| 淮滨县| 页游| 高青县|