2012-12-05 114 views
0

我試圖讓「twitter-bootstrap-rails」與Rails 3.2一起工作。 這取決於「therubyracer」Therubyracer on Rails 3.2

當我添加「therubyracer」,並執行捆綁命令它會給出錯誤。

... 
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

除了'therubyracer'寶石,你還必須安裝'execjs'寶石。

在您的gem文件中寫入gem 'therubyracer'gem 'execjs'。並運行bundle install

以上將會很好。