安装ruby on rails时遇到的坑,慢慢踩,慢慢收集
错误:
ERROR: Failed to build gem native extension. /usr/bin/ruby extconf.rb mkmf.rb can't find
header files for ruby at /usr/share/include/ruby.h
解决办法:
1.Linux Centos 系统下执行 :yum install ruby-devel
2.Linux Ubuntu 系统下执行:apt-get install ruby-dev
错误:
gem install nokogiri 失败: Error installing nokogiri
ERROR: Error installing nokogiri:
ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb
Extracting libxml2-2.8.0.tar.gz into tmp/x86_64-apple-darwin13.1.0/ports/libxml2/2.8.0... OK
Running 'configure' for libxml2 2.8.0... OK
Running 'compile' for libxml2 2.8.0... OK
Running 'install' for libxml2 2.8.0... OK
Activating l