SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Enthusiast
    Join Date
    Mar 2010
    Location
    Uk
    Posts
    53
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    sudo gem install rails - error!

    Does any one know what this error mean... I am trying to install rails gem on mac os x from the terminal issuing this command:

    Code:
    sudo gem install rails
    and I'm getting this error:

    Code:
    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.6.6 for inspection.
    Results logged to /Library/Ruby/Gems/1.8/gems/json-1.6.6/ext/json/ext/generator/gem_make.out
    I have no clue as what all this mean. Please help.
    Thanks

  2. #2
    SitePoint Zealot
    Join Date
    Feb 2003
    Location
    Akron, OH, USA
    Posts
    102
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    I don't use OSX but is it necessary to use sudo? Try running just gem install rails.

    Also, check out this guide, it should get you moving in the right direction! http://pragmaticstudio.com/blog/2010...rails-ruby-mac

  3. #3
    SitePoint Member
    Join Date
    Jan 2009
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi iTenzo,

    Please see this link, it may be related to your issue:

    http://www.ruby-forum.com/topic/191688#1055352

    Cheers


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •