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

后端 未结 12 1838
说谎
说谎 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 17:57

    If you decide to use a newer therubyracer gem version, you will no longer have this problem

    Otherwise:

    brew tap homebrew/dupes # Thanks Tom
    brew install apple-gcc42
    
    export CC=/usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/gcc-4.2
    export CXX=/usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/g++-4.2
    export CPP=/usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/cpp-4.2
    
    brew uninstall v8
    
    gem uninstall libv8
    
    gem install therubyracer -v '0.10.2' # specify version
    

提交回复
热议问题