0

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?

dombesz
  • 7,890
  • 5
  • 38
  • 47
  • 1
    if you just want to look at $PATH you should type "echo $PATH" (without the quotes), this should prevent the error you posted. – alexanderpas Jan 21 '10 at 00:20
  • What does gem -v return? What about "which gem"? When you rolled from source did you run "make install" with sudo? – Jon Dec 02 '09 at 20:07

1 Answers1

0

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.

dombesz
  • 7,890
  • 5
  • 38
  • 47