/usr/local/ruby-1.9/lib/ruby/1.9.1/yaml.rb:56:in `<top (required)>':
It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your ruby。
openssl安装:
tar -xf openssl-1.0.1c.tar.gz && cd openssl-1.0.1c
./config --prefix=/usr/local/openssl-1.0.1 -fPIC
make && make install
ruby安装:
tar -xf ruby-1.9.3-p286.tar.gz && cd ruby-*
./configure --prefix=/usr/local/ruby-1.9
make && make install
echo 'export PATH=$PATH:/usr/local/ruby-1.9/bin:/usr/local/ruby-1.9/sbin/' >>/etc/profile
source /etc/profile
facter安装:
tar –xf facter-1.6.13.tar.gz && cd facter-*
ruby install.rb
facter安装时可能遇到的错误:
Could not load openssl Ruby library; cannot install
解决办法:进入ruby的源码目录下的ext/openssl,执行ruby extconf.rb命令。具体如下:
cd ruby-1.9.3-p286/ext/openssl
ruby extconf.rb --with-openssl-lib=/usr/local/openssl-1.0.1/lib/ --with-openssl-include=/usr/local/openssl-1.0.1/include/
make && make install
puppet开源版安装,可以选择官方网站下载,也可以到github下载,两个地址如下:
https://github.com/puppetlabs/puppet
tar -xf puppet-2.7.19.tar.gz && cd puppet-*
ruby install.rb
cp conf/RedHat/* /etc/puppet