Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rails new app display error

I am trying to create new project using rails but it display error. I am working on mac and its display error.

$rails new EMS

/Users/.rvm/gems/ruby-2.2.0/bin/rails:23:in `load': cannot load such file -- /Users/.rvm/gems/ruby-2.2.0/gems/rails-4.2.0/bin/rails (LoadError)
    from /Users/.rvm/gems/ruby-2.2.0/bin/rails:23:in `<main>'
    from /Users/.rvm/gems/ruby-2.2.0/bin/ruby_executable_hooks:15:in `eval'
    from /Users/.rvm/gems/ruby-2.2.0/bin/ruby_executable_hooks:15:in `<main>'
like image 266
Nikhil Thombare Avatar asked Nov 01 '22 04:11

Nikhil Thombare


1 Answers

One day i also faced same issue when i was trying to create new rails application. So followed these below steps and it was soled,

  1. Uninstall the rails
  2. Uninstall the ruby
  3. Again install the latest version of ruby using rvm
  4. than install the rails using command gem install rails

After following these step, now i am able to create new app. May be this also help you to solve this error.

like image 164
rick Avatar answered Nov 08 '22 05:11

rick