CentOS 5.7(64bit) にchef-clientでALBをインストールした時のメモ

2013/04/18 9:05 に 森山誠二郎 が投稿   [ 2013/04/20 6:11 に更新しました ]
wget https://opscode-omnibus-packages.s3.amazonaws.com/el/5/x86_64/chef-11.4.0-1.el5.x86_64.rpm
rpm -ivh chef-11.4.0-1.el5.x86_64.rpm でインストール

---- Begin output of /sbin/service httpd start ----
STDOUT: httpd を起動中: [失敗]
STDERR: httpd: Could not reliably determine the server's fully qualified domain name, using f\
or ServerName
[Fri Apr 19 00:12:01 2013] [warn] NameVirtualHost *:80 has no VirtualHosts
(98)Address already in use: make_sock: could not bind to address
no listening sockets available, shutting down
Unable to open logs
---- End output of /sbin/service httpd start ----
原因は、同じマシーンでchef-serverを動かしていたため、80, 443ポートが使われていた。


2。gem install mysql2か、cairoかchefで以下のエラー
STDERR: /usr/local/anagix_tools/lib/ruby/1.8/x86_64-linux/digest/md5.so: libcrypto.so.10: cannot open s\
hared object file: No such file or directory - /usr/local/anagix_tools/lib/ruby/1.8/x86_64-linux/digest\
/md5.so (LoadError)

STDOUT: pwd=/usr/local/anagix_tools/alb
STDERR: rails db_migrate
/usr/local/anagix_tools/lib/ruby/1.8/x86_64-linux/digest/md5.so: libcrypto.so.10: cannot open shared ob\
ject file: No such file or directory - /usr/local/anagix_tools/lib/ruby/1.8/x86_64-linux/digest/md5.so \