First, installation environment
System environment
CentOS Release 6.8 (Final)
2.6.32-642.1.1.el6.x86_64
Compiling the environment
GCC version 4.4.7 20120313 (Red Hat 4.4.7-17) (GCC)
Second, source code compilation puppet
Step 1 installation of 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
The following error occurred:
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 of this function)
Ossl_pkey_ec.c:815:error: (each undeclared identifier are reported only once
Ossl_pkey_ec.c:815:error:for each function it appears in.)
Workaround:
The issue has been submitted and patched on the Ruby website.
See Links: 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
Step 2 Install extended support for Ruby and manually import system environment variables
Export path= $PATH:/usr/local/puppet/bin:/usr/local/puppet/sbin
[Email protected] ruby-ruby_1_8_7]# ruby-r base64-e "puts:installed"
Installed
[Email protected] ruby-ruby_1_8_7]# ruby-r cgi-e "puts:installed"
Installed
[Email protected] ruby-ruby_1_8_7]# ruby-r digest/md5-e "puts:installed"
Installed
[Email protected] ruby-ruby_1_8_7]# ruby-r etc-e "puts:installed"
Installed
[Email protected] ruby-ruby_1_8_7]# ruby-r fileutils-e "puts:installed"
Installed
[Email protected] ruby-ruby_1_8_7]# ruby-r ipaddr-e "puts:installed"
Installed
[Email protected] ruby-ruby_1_8_7]# ruby-r openssl-e "puts:installed"
Installed
[Email protected] ruby-ruby_1_8_7]# ruby-r strscan-e "puts:installed"
Installed
[Email protected] ruby-ruby_1_8_7]# ruby-r syslog-e "puts:installed"
Installed
[Email protected] ruby-ruby_1_8_7]# ruby-r uri-e "puts:installed"
Installed
[Email protected] ruby-ruby_1_8_7]# ruby-r webrick-e "puts:installed"
Installed
[Email protected] ruby-ruby_1_8_7]# ruby-r webrick/https-e "puts:installed"
Installed
[Email protected] ruby-ruby_1_8_7]# ruby-r xmlrpc/client-e "puts:installed"
Installed
Step 3 Install 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
Step 4 Install 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
Step 5 Install 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
Puppet Source Installation Deployment