`gem install therubyracer` fails on Mac OS X Lion

后端 未结 11 580
再見小時候
再見小時候 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:05

    I got a similar issue, but it was also complaining about not finding g++-4.2. I did have XCode command line tools installed, but it was looking for /usr/bin/g++-4.2, I had g++ (which was a symbolic link pointing to llvm-g++-4.2). Anyway, I just created a symbolic link to g++ and tried the bundle install again... it worked!

    $ cd /usr/bin

    $ sudo ln -s g++ g++-4.2

提交回复
热议问题