[英]Rails 2.3.4 unable to start server
我已经安装了 rvm 并从 ruby 1.8.7 和 rails 2.3.4 以及 rails 3.0.5 和 ruby 1.9.2 开始。现在当我使用 Z58E53D1324EEF6265FDB9770 启动服务器时
script/server
我无法出错:
=> Booting WEBrick
=> Rails 2.3.4 application starting on http://0.0.0.0:3000
/home/Ghost/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/site_ruby/1.8/rubygems /custom_require.rb:29:in `gem_original_require': no such file to load -- aws/s3 (MissingSourceFile)
from /home/Ghost/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `require'
from /home/Ghost/Aptana Studio 3 Workspace/wantsa/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
from /home/Ghost/Aptana Studio 3 Workspace/wantsa/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
from /home/Ghost/Aptana Studio 3 Workspace/wantsa/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
from /home/Ghost/Aptana Studio 3 Workspace/wantsa/config/environment.rb:13
from /home/Ghost/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `gem_original_require'
from /home/Ghost/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `require'
from /home/Ghost/Aptana Studio 3 Workspace/wantsa/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
from /home/Ghost/Aptana Studio 3 Workspace/wantsa/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
from /home/Ghost/Aptana Studio 3 Workspace/wantsa/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
from /home/Ghost/Aptana Studio 3 Workspace/wantsa/vendor/rails/railties/lib/commands/server.rb:84
from /home/Ghost/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `gem_original_require'
from /home/Ghost/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `require'
from script/server:3
在我看来,您没有为 ruby 1.8.7 安装正确安装 gem,或者您安装的 gem 与 1.8.7 和/或 rails 2.3.4 不兼容。
错误信息有点明显,不是吗?
in `gem_original_require': no such file to load -- aws/s3 (MissingSourceFile)
您没有安装 aws-s3 gem。 只需安装它:
gem install aws-s3
我很确定还会有其他“丢失”的宝石。 rvm 中的每个 ruby 版本都有自己的 gem 存储库,因此您必须重新安装 ruby 1.8.7 所需的所有 gem。
更新:如果您需要早期版本的 gem(例如版本 0.5.0):
gem install aws-s3 -v0.5
您必须在 Rails 中要求特定版本的 gem,否则它会自动选择最新版本。 或者,您可以卸载更高版本:
gem uninstall aws-s3
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.