0

I've borked something up somehow. On one of my servers, if I type ruby, I get the error bash: /opt/rh/rh-ruby23/root/usr/bin/ruby: No such file or directory

which ruby gives:

/usr/local/bin/ruby

which -a ruby gives:

/usr/local/bin/ruby
/usr/bin/ruby

I had installed a version of ruby at /opt/rh/rh-ruby23 via yum install rh-ruby23 but I then removed with yum remove rh-ruby-23

I'm at a loss as to what's still pointing at /opt/rh/rh-ruby23/root/usr/bin/ruby

2
  • are either of those you found symlinks? readlink -f /usr/local/bin/ruby
    – virullius
    Nov 9, 2017 at 18:20
  • /usr/bin/ruby is a symlink to /usr/local/bin/ruby
    – jemminger
    Nov 9, 2017 at 19:10

1 Answer 1

0

Hmm, I think I had su - to root twice...after exiting I saw that I was still logged in as root. Tried ruby again, it worked as expected and was pointing to the correct version.

I'm not sure why, but that must have been the cause?

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .