我有运行CentOS的VPS,当我尝试安装Rails
,Passenger
或其他任何内容时,我都会收到消息。
[athos@athoscastro bin]$ gem install rails
Fetching: nokogiri-1.6.6.2.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing rails:
ERROR: Failed to build gem native extension.
/usr/bin/ruby extconf.rb
Gem files will remain installed in /home/athos/.gem/ruby/gems/nokogiri-1.6.6.2 for inspection.
Results logged to /home/athos/.gem/ruby/gems/nokogiri-1.6.6.2/ext/nokogiri/gem_make.out
我安装了所有依赖项(Google上与此相关的所有内容都说明了依赖性)但错误仍然存在。
答案 0 :(得分:0)
您安装了开发包吗?
sudo yum install -y gcc ruby-devel zlib-devel
和
yum install libxml2-devel libxslt libxslt-devel