command line tools for new 10.9 OSX for ruby gems?

前端 未结 8 939
[愿得一人]
[愿得一人] 2020-12-02 11:06

After installing OSX Mavericks 10.9 demo, Im getting this after running bundle

    Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native ext         


        
8条回答
  •  隐瞒了意图╮
    2020-12-02 11:54

    If you're using Ruby version manager (rvm) the following worked for me.

    Before you run the following, be sure to verify the symbolic link in /Users/yourusername/.rvm/rubies/. Mine looks like this...

    default -> /Users/yourusername/.rvm/rubies/ruby-1.9.3-p429
    

    If your sym link isn't set correctly, you can set it using...

    cd /Users/yourusername/.rvm/rubies/
    ln -s /Users/yourusername/.rvm/rubies/ruby-1.9.3-p429 default
    

    Then run the following from the command line

    rvm system
    rvm gemset export system.gems
    rvm 1.9.3 #use your Ruby version here
    rvm gemset import system.gems
    

    now you should be ready to install your gems

    gem install yourgemname
    

提交回复
热议问题