+ -
当前位置:首页 → 问答吧 → Error installing rails, how to solve it?

Error installing rails, how to solve it?

时间:2012-06-27

来源:互联网

Chanteki-MacBook-Pro:~ chanwaihung$ sudo gem install -y rails
INFO:  `gem install -y` is now default and will be removed
INFO:  use --ignore-dependencies to install only the gems you list
Building native extensions.  This could take a while...
ERROR:  Error installing rails:

ERROR: Failed to build gem native extension.

        /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb
mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ruby.h


Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/json-1.7.3 for inspection.
Results logged to /Library/Ruby/Gems/1.8/gems/json-1.7.3/ext/json/ext/parser/gem_make.out
Chanteki-MacBook-Pro:~ chanwaihung$ rails
Rails is not currently installed on this system. To get the latest version, simply type:

    $ sudo gem install rails

You can then rerun your "rails" command.
Chanteki-MacBook-Pro:~ chanwaihung$ sudo gem install rails
Building native extensions.  This could take a while...
ERROR:  Error installing rails:

ERROR: Failed to build gem native extension.

        /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb
mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ruby.h


Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/json-1.7.3 for inspection.
Results logged to /Library/Ruby/Gems/1.8/gems/json-1.7.3/ext/json/ext/parser/gem_make.out
Chanteki-MacBook-Pro:~ chanwaihung$ rails
Rails is not currently installed on this system. To get the latest version, simply type:

    $ sudo gem install rails

You can then rerun your "rails" command.
Chanteki-MacBook-Pro:~ chanwaihung$

作者: 夺命IQ人   发布时间: 1970-01-01

try instant rails if u just need to play around with rails.

http://rubyforge.org/projects/instantrails/

作者: investg   发布时间: 1970-01-01

热门下载

更多