Chef-Solo のインストール (CentOS編)
CentOS 5.6 に Chef-Solo をインストールしてみた。
http://wiki.opscode.com/display/chef/Installation+with+RubyGems
の通り。
CentOS 5 の標準の Ruby バージョンは 1.8.5 と古いため、最新版の RubyGems がインストールできないとのこと。RubyGems 経由でインストールするためには、Ruby 1.8.7 以上が必要。
システム要件:
http://wiki.opscode.com/display/chef/Installation#Installation-SystemRequirements
Git をインストールするために EPEL 設定
rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
Ruby 1.8.7 をインストールするための設定
wget -O /etc/yum.repos.d/aegis.repo http://rpm.aegisco.com/aegisco/el5/aegisco.repo
必要なパッケージのインストール
yum install ruby-1.8.7.334-2.el5 ruby-devel-1.8.7.334-2.el5 \ ruby-ri-1.8.7.334-2.el5 ruby-rdoc-1.8.7.334-2.el5 \ git gcc gcc-c++ automake autoconf make
RubyGems をソースからインストール
cd /tmp wget http://production.cf.rubygems.org/rubygems/rubygems-1.8.5.tgz tar zxf rubygems-1.8.5.tgz cd rubygems-1.8.5 ruby setup.rb --no-format-executable
Chef をインストール
gem install chef