git bash中的Rubyracer安装

git bash中的Rubyracer安装,ruby,therubyracer,Ruby,Therubyracer,我已经在git bash中安装了这个包,它说我必须安装Rubyracer 0.11.4。 我已经安装了很多次了,但是它没有在我的Windows7中运行。 如何解决这个问题 $ gem install therubyracer -v '0.11.4' Temporarily enhancing PATH to include DevKit... Building native extensions. This could take a while... ERROR: Error install

我已经在git bash中安装了这个包,它说我必须安装Rubyracer 0.11.4。 我已经安装了很多次了,但是它没有在我的Windows7中运行。 如何解决这个问题

$ gem install therubyracer -v '0.11.4'
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/Ruby1.9.3/bin/ruby.exe extconf.rb
checking for main() in -lpthread... no
checking for v8.h... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

Provided configuration options:
        --with-opt-dir
        --without-opt-dir
        --with-opt-include
        --without-opt-include=${opt-dir}/include
        --with-opt-lib
        --without-opt-lib=${opt-dir}/lib
        --with-make-prog
        --without-make-prog
        --srcdir=.
        --curdir
        --ruby=c:/RailsInstaller/Ruby1.9.3/bin/ruby
        --with-pthreadlib
        --without-pthreadlib
        --enable-debug
        --disable-debug
        --with-v8-dir
        --without-v8-dir
        --with-v8-include
        --without-v8-include=${v8-dir}/include
        --with-v8-lib
        --without-v8-lib=${v8-dir}/
c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.17/ext/libv8/l
ocation.rb:50:in `configure': You have chosen to use the version of V8 found on
your system (Libv8::Location::System::NotFoundError)
and *not* the one that is bundle with the libv8 rubygem. However,
it could not be located. please make sure you have a version of
v8 that is compatible with 3.11.8.17 installed. You may
need to special --with-v8-dir options if it is in a non-standard
location

thanks,
The Mgmt

        from c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.1
7/lib/libv8.rb:7:in `configure_makefile'
        from extconf.rb:32:in `<main>'


Gem files will remain installed in c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9
.1/gems/therubyracer-0.11.4 for inspection.
Results logged to c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/therubyra
cer-0.11.4/ext/v8/gem_make.out
$gem安装therubyracer-v“0.11.4”
暂时增强包含DevKit的路径。。。
构建本机扩展。这可能需要一段时间。。。
错误:安装Robyracer时出错:
错误:无法生成gem本机扩展。
c:/RailsInstaller/Ruby1.9.3/bin/ruby.exe extconf.rb
正在-lpthread中检查main()。。。不
正在检查v8.h。。。不
***extconf.rb失败***
由于某些原因无法创建Makefile,可能是缺少
必要的库和/或标题。查看mkmf.log文件了解更多信息
细节。您可能需要配置选项。
提供的配置选项:
--使用opt dir
--不带opt dir
--选择包含
--不带opt include=${opt dir}/include
--使用opt lib
--不带opt lib=${opt dir}/lib
--用make prog
--没有make prog
--srcdir=。
--库尔迪尔
--ruby=c:/RailsInstaller/Ruby1.9.3/bin/ruby
--使用pthreadlib
--没有pthreadlib
--启用调试
--禁用调试
--带-v8-dir
--不带-v8-dir
--带-v8-include
--不带-v8-include=${v8 dir}/include
--使用-v8-lib
--不带-v8-lib=${v8 dir}/
c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.17/ext/libv8/l
obation.rb:50:在“配置”中:您已选择使用在上找到的V8版本
您的系统(Libv8::Location::system::NotFoundError)
而不是和libv8 rubygem捆绑在一起的那个。然而,
找不到它。请确保您有一个版本的
已安装与3.11.8.17兼容的v8。你可以
如果是非标准配置,则需要使用特殊--with-v8-dir选项
位置
谢谢
管理
来自c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.1
7/lib/libv8.rb:7:in'configure_makefile'
来自extconf.rb:32:in`'
Gem文件仍将安装在c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9中
.1/gems/therubyracer-0.11.4进行检查。
结果记录到c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/therubyra
cer-0.11.4/ext/v8/gem_make.out

“我已经在git bash中安装了这个包”:你不觉得第一句话有点唐突吗?你在使用什么操作系统,你想创建什么,你已经安装了哪些软件?你的文件的内容是什么?你能找到mkmf.log并检查它吗?喂,大卫,这对于第一句话XD来说实际上有点突然。我的操作系统:Windows7。事实上,我正在与我的朋友一起使用Github,但两天前,我的一个朋友输入了Rubyracer并将其推送到Github。之后,我尝试正常运行程序,然后在Gitbash中输入第一步:1。查找我的项目目录(cd…)2。使用“rake db:migrate”激活,但最后它说:-[31M无法在任何源中找到rubyracer-0.11.4←[0m-[33mRun
捆绑安装
以安装缺失的gems。←[0mBTW,我已经安装了Supreme text 2、git bash、git hub和git shell。我的GEMFILE内容:
gem'rails',3.2.13'
gem'bootstrap sass',2.1'
gem'carrierwave'
gem'geocoder'gem'gmaps4rails'gem'嵌套形式的'gem'jquery rails'组:资产做gem'sass'rails',“~>3.2.3”gem“coffee rails”、“~>3.2.1”gem“uglifier”、“>=1.0.3”gem“less rails”gem'twitter bootstrap rails'终端组:test do gem'factory\u girl',“~>4.2.0”gem'capybara',“~>2.1.0”end
组:开发,:test do gem'rspec rails',“~>2.13.1”gem'sqlite3“gem”better\u errors“gem”binding\u调用方“gem'pry”终端组:production dogem'pg'结束gem'bcrypt ruby','~>3.0.0'
BTW,我不知道如何找到mkmf.log。。。