请帮忙,这是我的学习项目.它在本地但不在线工作:
你好,据说我不需要像rails 3.1.0中的"therubyracer"这样的特殊宝石,但它写在"heroku日志"中:
2011-10-04T23:15:30+00:00 app[web.1]: ActionView::Template::Error (Could not fin
d a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of
available runtimes.
2011-10-04T23:15:30+00:00 app[web.1]: (in /app/app/assets/javascripts/rails.js
)):....
Run Code Online (Sandbox Code Playgroud)
我试图安装"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.....
Run Code Online (Sandbox Code Playgroud)
我也编译:true和precompiled …
javascript runtime-error heroku ruby-1.9.2 ruby-on-rails-3.1