LoginSignup
12
11

More than 5 years have passed since last update.

【初心者速報】Rails実行しようとしたらExecjsがどうとか…

Posted at

環境:仮想CentOS(Red Hat)、ホストはWindows8、TeraTerm上で実行、ruby 1.9.3-p194、Rails 3.2.8

Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes.

というエラーが出て、なんかこんなエラー前にもみたわ…ほらexecjsって書いてあるし…と思った今日この頃。
今回はCentOS上でのできごとですので、ちょっと勝手が違いました。

apptestというRailsファイルを作っていたので、

cd apptest
~@localhost apptest]$ vi Gemfile

のあとに、

gem 'execjs'
gem 'therubyracer'

を書き加える。そして編集を終えて、

~@localhost apptest]$ bundle install

これで実行できました。

12
11
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
12
11