Error installing Ruby with RVM (OSX 10.8)

前端 未结 3 1901
春和景丽
春和景丽 2020-12-11 22:13

When trying to install Ruby 1.9.3 using RVM (rvm install ruby 1.9.3) I get the following error:

Searching for binary rubies, this might take some time.

No b         


        
相关标签:
3条回答
  • 2020-12-11 22:47

    Your main issue is:

    configure: error: C compiler cannot create executables
    

    So search for solutions to that problem. Like:

    rvm install 1.9.3 --with-gcc=clang
    

    Other examples:

    • How can I install Ruby 1.9.3 in Mac OS X Lion?
    • Why am I getting a "C compiler cannot create executables" (successfully written C code prior to this and compiles that)?
    0 讨论(0)
  • 2020-12-11 22:59

    It is a duplicate, there are already few answers for this but I have made the fix also into RVM, make sure to run rvm get head first and read the output - the fix is displayed there.

    This problem is also reported back to RailsInstaller: https://github.com/railsinstaller/railsinstaller-nix/issues/10

    0 讨论(0)
  • 2020-12-11 23:03

    Xcode->Preferences

    Check "Command line tools"

    0 讨论(0)
提交回复
热议问题