“gem install therubyracer -v '0.10.2'” on osx mavericks not installing

后端 未结 12 1912
说谎
说谎 2020-11-28 17:22

Trying to install therubyracer on mavericks using \"gem install therubyracer -v \'0.10.2\'\" but i am getting the following error:

/Users/dennischen/.rvm/rub         


        
12条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-28 18:09

    I had the same problem, this works for me:

    therubyracer (0.10.2) & libv8 (3.3.10.4)

    First of all:

    • brew install apple-gcc42
    • you must link all the binary files of the compilers (gcc, cpp, g++) to /usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/

    After, you could try this:

    • brew install v8
    • gem install libv8 -v '3.3.10.4' -- --with-system-v8
    • gem install therubyracer -v 'therubyracer' or bundle install into the directory of the rails project.

提交回复
热议问题