我试图在Ubuntu上安装rspec-rails,但我遇到了一些问题.
以下是我的确切步骤:
1)将我的Gemfile更改为:
source 'http://rubygems.org' gem 'rails','3.0.0.beta4' gem 'sqlite3-ruby','1.2.5',:require => 'sqlite3' group :development do gem 'rspec-rails','2.0.0.beta.17' end group :test do gem 'rspec','2.0.0.beta.17' end
2)键入“bundle install”,我收到以下错误:
/usr/lib/ruby/1.8/fileutils.rb:243:in `mkdir’: Permission denied – /home/steve/.gem/specs (Errno::EACCES)
3)如果我继续我的安装说明并输入“rails generate rspec:install”
我收到以下错误(但它可能是由#2失败引起的)
Could not find gem ‘rspec (= 2.0.0.beta.17,runtime)’ in the gems available on this machine.
我无法在Google上找到解决方案.这是我试图遵循的教程的link.我的开发环境是Ubuntu 10.04,Ruby 1.8.7,Rails 3.0.0 beta 4.
谢谢.