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.
On Feb 13, 1:48 pm, Ryan Bigg <[email protected]> wrote: > Have you frozen rails to vendor/rails? > > On 13/02/2009, at 2:48 PM, zerogy wrote: > > > > > 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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

