rails 3.1.0和ruby 1.9.2中的javascript运行时。我不能和希罗库打交道。什么都做了,但还是不起作用

rails 3.1.0和ruby 1.9.2中的javascript运行时。我不能和希罗库打交道。什么都做了,但还是不起作用,javascript,heroku,ruby-on-rails-3.1,runtime-error,ruby-1.9.2,Javascript,Heroku,Ruby On Rails 3.1,Runtime Error,Ruby 1.9.2,请帮忙,这是我的学习计划。它在本地工作,但不在线: 您好,据说我不需要像rails 3.1.0中的“therubyracer”这样的特殊宝石 但它在“heroku日志”中写道: 我试图安装“therubyracer”,但安装时出错 C:\proj\lagp>gem install therubyracer Temporarily enhancing PATH to include DevKit... Building native extensions. This could take

请帮忙,这是我的学习计划。它在本地工作,但不在线:
您好,据说我不需要像rails 3.1.0中的“therubyracer”这样的特殊宝石 但它在“heroku日志”中写道:

我试图安装“therubyracer”,但安装时出错

C:\proj\lagp>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/Ruby1.9.2/bin/ruby.exe extconf.rb
checking for main() in -lpthread... no
creating Makefile

make
C:/RailsInstaller/Ruby1.9.2/bin/ruby -e "puts 'EXPORTS', 'Init_v8'"  > v8-i386-m
ingw32.def
g++ -I. -IC:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/libv8-3.3.10.2/li
b/libv8/v8/include -IC:/RailsInstaller/Ruby1.9.2/include/ruby-1.9.1/i386-mingw32.....
我还将compile:true和precompiled设置为

这是我在github中的应用程序:
请看一看,如果你有时间,我为这个问题浪费了2天(
所以我不知道该怎么办(,

提前感谢

除了我的GEM文件中的资产组之外,我还在Heroku的资产管道中使用Rails 3.1

group :production do
 gem 'therubyracer-heroku'
end
这似乎是您所缺少的,

组:生产操作

宝石“therubyracer heroku”

结束


然后在将源代码上载到heroku之前在本地计算机上进行捆绑更新。

安装此gem时出错
,与安装common therubyracerah时出错相同,您使用的是windows-恐怕我没有在那里运行它的经验。可能尝试
捆绑-不在本地生产
,这样它就不会尝试安装它本地。干得好!很高兴它对你有用。你也可以随时投票给我答案:)
group :production do
 gem 'therubyracer-heroku'
end