Ruby error after updating Ubuntu

Asked

Viewed 654 times

0

After updating Ubuntu, it no longer loads Ruby or something like that, the error message that returns is:

/usr/bin/env: "ruby2.1": File or directory not found

Every time I have to start the application

  • tried to reinstall Ruby, or check the version of Ruby? may be q on system update installed version 2.3

  • What the system returns when you type $ ruby ?

  • I think the best thing to do is to open the terminal and make a sudo apt-get --purge autoremove ruby or a sudo apt-get --purge remove ruby the only difference is that the autoremove also uninstall dependencies while the remove no. correct me if I’m wrong.

2 answers

0

Make sure that Ruby version 2.1 is installed using dpkg -l ruby2.1 (must have a ii on the left) or even if you are in PATH with which ruby2.1 (shall return /usr/bin/ruby2.1). If both tests are positive, then the application you’re using that you might be looking for Ruby in another corner, maybe it’s using rbenv to select the interpreter version.

0


Apparently I was able to solve the problem by clicking on Edit->Profile Preferences->Command -> Run command as Session shell -> Restart terminal

Browser other questions tagged

You are not signed in. Login or sign up in order to post.