简体   繁体   中英

error on rake db:migration

I am new at ruby and also rails. I can't why my rake db:migration is returning me this error

/usr/lib/ruby/vendor_ruby/rake.rb:30:in require': no such file to load -- rbconfig(LoadError) from /usr/lib/ruby/vendor_ruby/rake.rb:30 from /usr/bin/rake:25:in require' from /usr/bin/rake:25

thanks!

Check if you are using the right ruby version with $ ruby -v use $ rvm 1.9.3 --default (or the version you are using) in that case. Also, run $ bundle install .

You might have missed out typing the end of the

require '

in a file you were working on.

The error should be fixed adding in the Gemfile (in the root folder of your app) the lines:

gem 'execjs'
gem 'therubyracer'

and run sudo bundle

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM