我是 Rails 新手,正在学习 Hartl 在线教程。我按照书中的建议更新了我的 gemfile
source 'https://rubygems.org'
gem 'rails', '3.2.6'
group :development, :test do
gem 'sqlite3', '1.3.5'
gem 'rspec-rails', '2.10.0'
end
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', '3.2.4'
gem 'coffee-rails', '3.2.2'
gem 'uglifier', '1.2.3'
end
gem 'jquery-rails', '2.0.0'
group :test do
gem 'capybara', '1.1.2'
end
group :production do
gem 'pg', '0.12.2'
end
然后转到我的命令提示符并输入:bundle install --without production
我不断收到相同的错误消息,说明:
Errno::EACCES: Permission denied - C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/ffi-1.0.11/ext/ffi_c/libffi/configure
An error occured while installing ffi <1.0.11>, and the Bundler cannot continue.
Make sure that 'gem install ffi -v '1.0.11' succeeds before bundling.
我尝试输入:gem install ffi
它成功安装了 gem,但是当我重新运行 bundle install 命令时,我得到了相同的错误消息。
有什么建议么?