Ubuntu 9.10 PATH var/lib/gems/1.8 no such file or dir

2.6k views Asked by At

I'm using ubuntu 9.10 and i cant see gems located in /var/lib/gems/1.8/gems , so i cant execute gems like rake for rails. When I write $PATH in the console I get:

bash: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/dombesz/bin:/var/lib/gems/1.8/bin: No such file or directory

I also tried to add to ~/.bashrc , export PATH=$PATH:/var/lib/gems/1.8/bin

When I write gem list --local, shows only the gems located at ~/.gems dir.

This problem started when I installed rubygems from source.

Any suggestions?

1

There are 1 answers

0
dombesz On BEST ANSWER

It was a path problem, so i deleted all the installations and reinstalled and added paths, now i still have the no such file or directory error when i look at $PATH, but everything works.