Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 841
game1095 Avatar asked Oct 30 '22 17:10

game1095


1 Answers

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.

like image 80
Jinado Avatar answered Nov 15 '22 05:11

Jinado