Fix therubyracer/libv8 (0.12.1) installation on Mavericks

前端 未结 7 529
情书的邮戳
情书的邮戳 2021-02-05 05:17

OK, I’m at the end of my tether with this. There are a few similar questions but they all refer to therubyracer 0.10, and they mostly conclude that the problem can be fixed by u

相关标签:
7条回答
  • 2021-02-05 05:55

    Same issue with OSX 10.9.3, ruby 2.1.3 and every version of therubyracer.

    Now i'm letting execjs (uglifier gem dependencie) take care of it.

    ExecJS lets you run JavaScript code from Ruby. It automatically picks the best runtime available to evaluate your JavaScript program, then returns the result to you as a Ruby object.

    OSX users

    "Apple JavaScriptCore" comes as default for JS runtime on OSX. Just installing execjs will solve the problem.

    Linux users

    Install node.js. Execjs gem will automatically choose node.js as js runtime.

    sudo apt-get install nodejs
    

    More information on github:

    https://github.com/sstephenson/execjs

    0 讨论(0)
提交回复
热议问题