[rspec] Installation Problem

Hi friends,

I have installed and used RSpec many times before.

After a long time, I am back to RSpec and I tried installing this gem.
But am not able to install it.

Following are the details:

$ gem install rspec


Thank you for installing rspec-1.3.0

Please be sure to read History.rdoc and Upgrade.rdoc
for useful information about this release.


Successfully installed rspec-1.3.0
1 gem installed
Installing ri documentation for rspec-1.3.0…
Installing RDoc documentation for rspec-1.3.0…
Could not find main page README.rdoc
Could not find main page README.rdoc
Could not find main page README.rdoc
Could not find main page README.rdoc
$ spec
-bash: spec: command not found

But running:
$gem list --local shows rspec (1.3.0)

$ ls /var/lib/gems/1.8/gems/rspec-1.3.0/bin
autospec spec

Also there all files related to rspec installation in /var/lib/gems/
1.8/gems/rspec-1.3.0/ including the README.rdoc.

Please help me why I am not able to use spec command after installing
it with the above error.

I would be greatly thankful if you could point to me what I am
missing…

Have a great day,

Thanks and Regards,
Narayanan
India.

Hi,

Found out the problem. Was a rather a simple one,

The rubygems installation hadn’t updated the environment PATH variable
with the path of all gem executables.

So, $gem environment

Notice the GEM PATHS
I found my gem executables in /var/lib/gems/1.8/bin

Append this path to PATH env variable in ~/.bashrc file using an
export command to solve the problem.

Thanks,
Narayanan