5

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>'
Nikhil Thombare
  • 970
  • 1
  • 9
  • 24

2 Answers2

1

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.

rick
  • 1,655
  • 3
  • 14
  • 28
1

If you are using windows OS as your development environment then please see this link : "certificate verify failed" error when installing Ruby gems on Windows

And I would recommend you to use : http://railsinstaller.org/en

By the way , Brother , Rails would behave perfect with Linux based platform .

And for mac os please take a look at : https://rvm.io/rvm/install

This will help you to have multiple ruby version and to switch between them ... to use full power of ruby and gems.

Community
  • 1
  • 1
Mahabub Islam Prio
  • 1,039
  • 10
  • 25