game1095
game1095

Reputation: 51

ruby on rails "usr/bin/env: ‘ruby2.3’: No such file or directory"

I got some problem when i typing bundle exec rake db:migrate on terminal then i received the result like `/usr/bin/env: ‘ruby2.3’: No such file or directory

enter image description here

Upvotes: 5

Views: 7150

Answers (2)

kross
kross

Reputation: 3753

For me, the problem was with a cached set of gems (on CircleCI 2.0). I changed my base image which changed the ruby location. If you tried to bundle install with one ruby, removed it then switched to another, then this appears to cause the problem.

Upvotes: 1

Jinado
Jinado

Reputation: 21

I had the same problem but when running:

rails new my_application

but after reinstalling the rails gems by:

gem install rails

it worked just fine and I could run:

rails new my_application
bundle install

and

bundle exec rails s

without any problems.

Upvotes: 1

Related Questions