[英]“gem install therubyracer” fails with error message “libv8 requires python 2 to be installed in order to build”
I am following a tutorial for using Ruby and Sinatra. 我正在关注使用Ruby和Sinatra的教程。
I am using Windows 10. I downloaded RailsInstaller and I was following a section where I need to install the gems coffee-script
and therubyracer
. 我正在使用Windows10。我下载了RailsInstaller,并且在遵循的部分中需要安装gems
coffee-script
和therubyracer
。 coffee-script
installed but not therubyracer
, I get an error like this... 'therubyracer' error installation image 安装了
coffee-script
但未安装therubyracer
,出现这样的错误... 'therubyracer'错误安装图像
I tried to install the gem libv8
but that didn't work for me either. 我试图安装gem
libv8
但对我也不起作用。 I get this error... 'libv8' error installation image 我收到此错误... “ libv8”错误安装映像
How can I resolve these errors and install therubyracer
on Windows 10? 如何解决这些错误并在Windows 10上安装
therubyracer
?
Download the python 2.7 installer for Windows from https://www.python.org/downloads/release/python-2715/ and run it. 从https://www.python.org/downloads/release/python-2715/下载适用于Windows的python 2.7安装程序并运行它。 After python 2.7 has been installed, retry
gem install therubyracer
. 安装python 2.7之后,重试
gem install therubyracer
。
Update: 更新:
Since you said you have done this and it still doesn't work, please consider reading the options at this question as well. 由于您已经说过,但仍然无法执行,因此请考虑阅读此问题的选项。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.