`gem install therubyracer` fails on Mac OS X Lion

后端 未结 11 581
再見小時候
再見小時候 2020-12-04 07:33

I would appreciate some help in getting gem install therubyracer to work. Here is the error:

$ gem install therubyracer
Building native extensio         


        
11条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-04 08:07

    OSX 10.8.2, ruby 1.9.3p125

    None of the above worked for me... I got tired of trying to find the right gem for my environment, so I just soft linked to the g++ target this things was missing:

    sudo ln -s `which g++` /usr/bin/g++-4.2
    

    Not as helpfully for remote deployments, but get the job done on my workstation.

提交回复
热议问题