0

When I run the app I get this error:

/usr/lib64/ruby/gems/1.8/gems/execjs-1.4.0/lib/execjs/runtimes.rb:51:in `autodetect': Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable)
    from /usr/lib64/ruby/gems/1.8/gems/execjs-1.4.0/lib/execjs.rb:5
    from /usr/lib64/ruby/gems/1.8/gems/coffee-script-2.2.0/lib/coffee_script.rb:1:in `require'
    from /usr/lib64/ruby/gems/1.8/gems/coffee-script-2.2.0/lib/coffee_script.rb:1
    from /usr/lib64/ruby/gems/1.8/gems/coffee-script-2.2.0/lib/coffee-script.rb:1:in `require'
    from /usr/lib64/ruby/gems/1.8/gems/coffee-script-2.2.0/lib/coffee-script.rb:1
    from /usr/lib64/ruby/gems/1.8/gems/coffee-rails-3.2.2/lib/coffee-rails.rb:1:in `require'
    from /usr/lib64/ruby/gems/1.8/gems/coffee-rails-3.2.2/lib/coffee-rails.rb:1
    from /usr/lib64/ruby/gems/1.8/gems/bundler-1.3.4/lib/bundler/runtime.rb:72:in `require'

3 Answers3

1

Look at the URL in the error message, and add one of the listed javascript runtime gems to your Gemfile.

sockmonk
  • 4,195
  • 24
  • 40
0

I got it I had to install execjs gem

  • I installed node.js , I learned that I need to install a js runtime –  Apr 01 '13 at 15:57
0
gem 'execjs'
gem 'therubyracer'

Put it on your Gemfile.

Matheus Lima
  • 2,103
  • 3
  • 31
  • 49