您的位置:首页 > 运维架构 > Linux

Centos 部署rails应用遇到的一些问题

2011-11-04 15:56 441 查看
Centos 部署rails应用遇到的一些问题

1. 在centos中安装Nokogiri是遇到问题

libxml2 is missing.  please visit <http://nokogiri.org/tutorials/installing_nokogiri.html>


解决方法如下:

$ sudo yum install -y libxml2 libxml2-devel libxslt libxslt-devel


  

2. openssl 问题

$ ...   :in `require': no such file to load -- openssl (LoadError)


解决方法如下:

下载1.9.2源文件,执行以下命令

$ cd ~/Downloads/ruby-1.9.2-p180/ext/openssl (assuming you extracted the ruby tar to ~/Downloads)
$ ruby extconf.rb && make && sudo make install


  

If you’ve compiled Ruby from source, you might get this error when executing script/console:

/usr/local/lib/ruby/1.8/irb/completion.rb:10:in `require': no such file to load -- readline (LoadError)


One way of fixing this is to compile readline, which is distributed along with the Ruby source:

cd /opt/src/ruby-1.8.5-p2/ext/readline
ruby extconf.rb
make
sudo make install
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: