Rails 3.2上的Therubyracer

时间:2012-12-05 03:36:54

标签: ruby-on-rails

我正在努力让“twitter-bootstrap-rails”与Rails 3.2协同工作。 这取决于“therubyracer”

当我添加“therubyracer”并执行bundle命令时,它会出错。

...
Failed to build gem native extension
checking for main() in -lpthread... no
checking ro w8.h... no
Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers.
Check the mkmf.log file for more details.
...

有谁知道如何修复它?

1 个答案:

答案 0 :(得分:1)

除了'therubyracer'宝石外,你还必须安装'execjs'宝石。

在您的gem文件中写下gem 'therubyracer'gem 'execjs'。并运行bundle install

上述情况会很好。