2011-07-08
Rails3.1でエラー「in `autodetect': Could not find a JavaScript runtime.」
Rails3.1でRSpecをインストールしようとしたら以下のようなエラーが出た。
JavaScript runtimeが見つからないとのこと。
$ rails g rspec:install gems/execjs-1.2.0/lib/execjs/runtimes.rb:46:in `autodetect': Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable)
環境
解決方法
Gemfileに以下の行を記述する。
gem 'therubyracer'
トラックバック - http://d.hatena.ne.jp/kano4/20110708/javascript_runtime_error
リンク元
- 4 http://d.hatena.ne.jp/m_yanagisawa/20110529/p1
- 4 http://www.google.co.jp/url?sa=t&source=web&cd=1&ved=0CBgQFjAA&url=http://d.hatena.ne.jp/kano4/20110525/fedora15_install&rct=j&q=fedora 15 usb&ei=0u0WTsrmE8qDmQX_sIwL&usg=AFQjCNErNJiaqJO-VoY5LfttMspkIc5I-A&sig2=z7BrjyVW84qNKqM0b6rNiA
- 3 http://reader.livedoor.com/reader/
- 3 http://www.google.co.jp/url?sa=t&source=web&cd=1&sqi=2&ved=0CBgQFjAA&url=http://d.hatena.ne.jp/kano4/20110527/fedora15_libreoffice&rct=j&q=libreoffice fedora15 インストール&ei=nSgYTsGKD6OdmQWise31D
- 2 http://search.yahoo.co.jp/search?p=fedora15+USB&search.x=1&fr=top_ga1_sa&tid=top_ga1_sa&ei=UTF-8&aq=&oq=
- 2 http://www.google.co.jp/m?id=4b2fb8dc4cb8e81ac227ce7eebf0e136&q=fedora+15+office&spell=1&ei=NyEXTtCpIYSwkAWLt_s4&ved=0CAYQBSgA
- 2 http://www.google.co.jp/reader/view/?hl=ja&tab=wy
- 2 http://www.google.co.jp/reader/view/?tab=my&at=ftSiBFI7S7JROWZnxw6WJw
- 2 http://www.google.co.jp/search?q=Fedora+15&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:ja:official&hl=ja&client=firefox-a
- 2 http://www.google.co.jp/search?q=fedora15+flash&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:ja:unofficial&client=firefox-a
