Puppet Source Installation Deployment

Source: Internet
Author: User

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:

    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 of this function)

    3. Ossl_pkey_ec.c:815:error: (each undeclared identifier are reported only once

    4. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.