The compiler failed to generate an executable file. (RuntimeError)

前端 未结 10 1207
面向向阳花
面向向阳花 2020-12-09 04:06

I recently upgraded to OS Mountain Lion. A project I\'m working on requires gem sys-proctable as a dependency, but when I run bundle install I get:



        
10条回答
  •  旧时难觅i
    2020-12-09 04:31

    I can't repeat enough how frustrating it was for me when I had the SAME issue on Mountain Lion. I ultimately upgraded my OS to Mavericks after I read that there were some GCC issues with Mountain Lion. I still had the same error :/

    The ONLY thing that worked was reinstalling ruby after installing the command line tools.

    "For future visitors, this worked for me. Not that it should matter but I installed rvm with brew. Xcode and Xcode CLT was already installed. I simply had to (no sudo throughout any of this) rvm use 2.0.0, then xcode -license, agree to the license then rvm reinstall 2.0.0. last step very important, indeed"

    Then $ gem install rails

    This fixed my issues perfectly. This blog gives a great walkthrough with screenshots on how to install Mac Development Tools (Command Line Tools) multiple ways (http://www.moncefbelyamani.com/how-to-install-xcode-homebrew-git-rvm-ruby-on-mac/)

提交回复
热议问题