RVM error when running cd command

281 views Asked by At

I have set up rvm to manage all my ruby version.

All things is working, and I installed ruby1.2.6. But I'm getting error when cd to any directory hosting a ruby application. for example :

admin@hostname-10:~ $ cd /var/www 
ruby-1.9.3-p448 is not installed.
To install do: 'rvm install ruby-1.9.3-p448'
admin@hostname-10:/var/www $ ruby -v 
ruby 2.1.6p336 (2015-04-13 revision 50298) [x86_64-linux]
admin@hostname-10:/var/www $ 

admin@hostname-10:/var/www $ sudo -s
ruby-1.9.3-p448 is not installed.
To install do: 'rvm install ruby-1.9.3-p448'
hostname-10# 

hostname-10# pwd
/var/www
hostname-10# 

What and where can be the issue? What cd invokes here?

Thanks.

1

There are 1 answers

0
nixmind On

The problem is quiet simple.

The application was writen in ruby1.9.3 and required it.

The application will be be update as the ruby version has been updated.

I did the same tests with an up to date code and it works.

Regards.