Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/loops/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 轨道上的Therubyracer 3.2_Ruby On Rails - Fatal编程技术网

Ruby on rails 轨道上的Therubyracer 3.2

Ruby on rails 轨道上的Therubyracer 3.2,ruby-on-rails,Ruby On Rails,我试图让“twitter引导rails”与rails 3.2一起工作。 这取决于“therubyracer” 当我添加“therubyracer”和do 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, probabl

我试图让“twitter引导rails”与rails 3.2一起工作。 这取决于“therubyracer”

当我添加“therubyracer”和do 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.
...

有人知道怎么修吗

除了“therubyracer”gem,您还必须安装“execjs”gem

在gem文件中写入
gem'therubyracer'
,以及
gem'execjs'
。然后运行
捆绑安装

上面的就可以了