therubyracer不在Windows上安装 [英] therubyracer not installing on Windows
本文介绍了therubyracer不在Windows上安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当试图安装gem时,我得到以下错误:
C:\xampp\htdocs\\mg> gem安装therubyracer
暂时增强PATH以包含DevKit ...
构建本机扩展。这可能需要一段时间...
错误:安装therubyracer时出错:
错误:无法构建gem本机扩展。
C:/RailsInstaller/Ruby2.1.0/bin/ruby.exe -r ./siteconf20150527-5032-1urwkwd。
rb extconf.rb
创建Makefile
系统找不到指定的路径。
系统找不到指定的路径。
系统找不到指定的路径。
C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.7/ext/libv8/b
uilder.rb:68:在`setup_python! ':libv8需要将python 2安装在orde
r中才能生成,但它目前不可用(RuntimeError)从C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0中获得
/gems/libv8-3.16.14。
7 / ext / libv8 / builder.rb:52:在`block in build_libv8!'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/libv8 -3.16.14。
7 / ext / libv8 / builder.rb:49:在`chdir'
从C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/libv8-3.16。 14。
7 / ext / libv8 / builder.rb:49:在`build_libv8!'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/libv8-3.16 0.14。
7 / ext / libv8 / location.rb:24:在`install!'
从extconf.rb:7:在`< main>'
extconf失败,退出代码1
Gem文件将保持安装在C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1
.0 / gems / libv8-3.16.14.7中进行检查。
记录到C的结果:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/extensions/x86
-mingw32 / 2.1.0 / libv8-3.16.14.7 / gem_make.out
我已经试过在Gemfile中添加这个元素
gem'therubyracer',
gem'less-rails
试过
gem卸载libv8
gem install therubyracer -v = 0.10.1
以上所有内容都失败了,并且therubyracer从未安装过。 rubyracer
gem在Windows上不起作用。看到这个
https:// github。 com / cowboyd / libv8 / issues / 133
When attempting to install gem I am getting following error
C:\xampp\htdocs\mg>gem install therubyracer
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing therubyracer:
ERROR: Failed to build gem native extension.
C:/RailsInstaller/Ruby2.1.0/bin/ruby.exe -r ./siteconf20150527-5032-1urwkwd.
rb extconf.rb
creating Makefile
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.7/ext/libv8/b
uilder.rb:68:in `setup_python!': libv8 requires python 2 to be installed in orde
r to build, but it is currently not available (RuntimeError)
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.
7/ext/libv8/builder.rb:52:in `block in build_libv8!'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.
7/ext/libv8/builder.rb:49:in `chdir'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.
7/ext/libv8/builder.rb:49:in `build_libv8!'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.
7/ext/libv8/location.rb:24:in `install!'
from extconf.rb:7:in `<main>'
extconf failed, exit code 1
Gem files will remain installed in C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1
.0/gems/libv8-3.16.14.7 for inspection.
Results logged to C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/extensions/x86
-mingw32/2.1.0/libv8-3.16.14.7/gem_make.out
I have tried adding this in Gemfile
gem 'therubyracer',
gem 'less-rails
Tried
gem uninstall libv8
gem install therubyracer -v=0.10.1
Everything above failed and therubyracer never installed.
解决方案
Unfortunately, the rubyracer
gem does not work on Windows. See this
https://github.com/cowboyd/libv8/issues/133
这篇关于therubyracer不在Windows上安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文