I first wanted to include the previous post in this one, explaining how I went to reinstall Ruby and have all those troubles, but I splitted it in two parts, as it was two different (but linked) stories.
After reinstalling everything I need on my box, I grabbed the latest release of Ruby (1.8.5), su to the root account, and typed the magical ./configure ; make ; make install
Then I downloaded the gems (0.9.0), ruby setup.rb it and rand the gem command.
ruby: No such file to load -- rubygems (LoadError)
I browsed and found that my Ruby installation was probably broken at some point, because I had to be in the gem directory to run the command successfully.
Asking irb (and checking Ruby on anamorph’s box) confirmed what I feared : site_ruby/ wasn’t in the default $LOAD_PATH.
So I set it manually in order to install Rails and its dependencies, but still looked for a way to fix it.
Yesterday evening, after hours of searching, trying, looking at the configure, and Ruby and gems documentation, I asked on #ruby-lang on FreeNode.
drbrain helped me explaining it should be the shell that the ./configure run in to be the problem. As export CONFIGURE_SHELL didn’t helped, I ran ksh (which was previously the root shell) to configure and compile the latest snapshot.
Yeah ! Finally it works ! Thanks a lot drbrain This post coul have been titled “Last night a chatter saved my life” The $LOAD_PATH was fine, I reinstalled the gems, then Rails.
Perfect.
Tricky heh ?
So, to conclude, I gonna change the root shell from bash to ksh. I don’t know yet what’s wrong with bash and configure, but I learnt that even the shell can turn a simple installation into a nightmare.