エラー内容
rake実行時に下記のエラーとなる。
# rake generate_secret_token
/usr/local/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
解決手順
- yamlをインストールする。
# wget http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz
# tar zxvf yaml-0.1.4.tar.gz
# cd yaml-0.1.4
# ./configure
# make
# make install
- rubyを再インストールする。
# cd ruby-1.9.3-p362
# ./configure --disable-install-doc
# make
# make install
この後、rakeの再実施で正常にrakeが行われた。
環境
- CentOS release 6.3 (Final)
- ruby 1.9.3p362 (2012-12-25) [x86_64-linux]
- gem 1.8.23
- Rails 3.2.9
- Redmine 2.2.0