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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
1a8688b1d13c493617312672facbbf74?d=identicon&s=25 zerogy (Guest)
on 2009-02-13 05: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://github.com/dchelimsky/rspec.git
git clone git://github.com/dchelimsky/rspec-rails.git
cd ../../
script/generate rspec

/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require': no such file to load -- initializer
(LoadError)
  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
9a2a53db8e9b4476038c94a64b32833f?d=identicon&s=25 Ryan Bigg (ryan-bigg)
on 2009-02-13 06:49
(Received via mailing list)
Have you frozen rails to vendor/rails?
1a8688b1d13c493617312672facbbf74?d=identicon&s=25 zerogy (Guest)
on 2009-02-13 07:55
(Received via mailing list)
Thanks for your reply.
I have just solved the probelm. It seems that it could find the right
gem.
There are gems in both /usr/local/lib/ruby/gems/1.8  and /home/
xxxxx/.gems,
I remove the /home/xxxxx/.gems and everything works ok.
This topic is locked and can not be replied to.