“sh: make: command not found” when running “$ bundle” after adding redcarpet gem to Rails app

后端 未结 6 901
失恋的感觉
失恋的感觉 2021-02-08 12:29

I\'m getting the following when running \"$ bundle\" after adding \"gem \'redcarpet\'\" to Gemfile:

$ bundle
...
Using paperclip (2.3.11) 
Using passenger (3.0.7         


        
6条回答
  •  难免孤独
    2021-02-08 13:21

    Same issue aftering updating to Mountain Lion. You need to get the new command line tools and run:

    sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer 
    

    Src: Upgrading to Mountain Lion and XCode 4 broke my "make"?

    If after this you still get an error like this:

    make: /usr/bin/gcc-4.2: No such file or directory
    

    A symlink will sort out that issue:

    sudo ln -s /usr/bin/gcc /usr/bin/gcc-4.2
    

    As one of the comments on this post states.

    It might not be the best solution but it works, there's surely something else to it.

提交回复
热议问题