therubyracer install error

后端 未结 12 1041

As you can see below, libv8 installs fine, but therubyracer doesn\'t. I\'m using Mac 10.7.4.

~/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1> gem install lib         


        
12条回答
  •  别那么骄傲
    2020-12-13 09:41

    For an older project I had to used the 0.10.1 version of rubyracer on mavericks (bootstrap depends on it)

    So I had to use an older version of gcc

    1. edit your .zshrc or .bashrc

      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
      
    2. be sure that you have uninstalled all older versions of libv8

      gem uninstall libv8
      
    3. install your version of therubyracer

      gem install therubyracer -v=0.10.1
      

提交回复
热议问题