您好,登錄后才能下訂單哦!
一、安裝環境
系統環境
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
出現如下錯誤:
ossl_pkey_ec.c:761: warning: assignment makes pointer from integer without a cast
ossl_pkey_ec.c:815: error: ‘EC_GROUP_new_curve_GF2m’ undeclared (first use in this function)
ossl_pkey_ec.c:815: error: (Each undeclared identifier is reported only once
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
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。