[英]extconf.rb: “fails to build native gem extension”
I have a VPS running CentOS, and I have ths message when I try to install Rails
, Passenger
or anything else. 我有一个运行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
I have all the dependencies installed (everything related to this on Google says about dependecy) but the error still persists. 我已经安装了所有依赖项(Google上与此相关的所有内容都说明了Dependecy),但错误仍然存在。
Did you install dev packages? 您安装了开发包吗?
sudo yum install -y gcc ruby-devel zlib-devel
and 和
yum install libxml2-devel libxslt libxslt-devel
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.