我正在努力让“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.
...
有谁知道如何修复它?
答案 0 :(得分:1)
除了'therubyracer'宝石外,你还必须安装'execjs'宝石。
在您的gem文件中写下gem 'therubyracer'
和gem 'execjs'
。并运行bundle install
。
上述情况会很好。