Forum: Ruby on Rails Error when execute "script/generate rspec"

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
zerogy (Guest)
on 2009-02-13 06:49
(Received via mailing list)
I want to use rspec in my new project, but when install rspec, error
occured. Could anyone help me? Thanks in advance.
cd vendor/plugins
git clone git://
git clone git://
cd ../../
script/generate rspec

`gem_original_require': no such file to load -- initializer
  from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `require'
  from ./script/../config/boot.rb:54:in `load_initializer'
  from ./script/../config/boot.rb:38:in `run'
  from ./script/../config/boot.rb:11:in `boot!'
  from ./script/../config/boot.rb:109
  from script/generate:2:in `require'
  from script/generate:2
Ryan B. (Guest)
on 2009-02-13 07:49
(Received via mailing list)
Have you frozen rails to vendor/rails?
zerogy (Guest)
on 2009-02-13 08:55
(Received via mailing list)
Thanks for your reply.
I have just solved the probelm. It seems that it could find the right
There are gems in both /usr/local/lib/ruby/gems/1.8  and /home/
I remove the /home/xxxxx/.gems and everything works ok.
This topic is locked and can not be replied to.