![](/img/trans.png)
[英]Missing the Rails gem. Please `gem install -v=2.3.4 rails`
[英]Missing the Rails 2.3.11 gem. Please `gem install -v=2.3.11 rails`,
我在ubuntu 11.04上使用rails安裝時出現問題並且不確定問題是什么...我剛剛在生產中安裝了rails和passenger和rvm並且一切似乎都沒問題但是由於某些原因我不斷得到
Missing the Rails 2.3.11 gem. Please `gem install -v=2.3.11 rails`,
這是鏈接
當我在申請時,我做
gem list
*** LOCAL GEMS ***
actionmailer (2.3.11)
actionpack (2.3.11)
activerecord (2.3.11)
activeresource (2.3.11)
activesupport (2.3.11)
bundler (1.0.21)
rack (1.1.2)
rails (2.3.11)
rake (0.9.2.2)
所以它沒有意義發生了什么,為什么它告訴我,我沒有安裝導軌...任何關於我做錯的想法
這是我的rvm信息
rvm list
rvm rubies
gem install -v=2.3.11 rails
Fetching: rake-0.9.2.2.gem (100%)
Fetching: activesupport-2.3.11.gem (100%)
Fetching: activerecord-2.3.11.gem (100%)
Fetching: rack-1.1.2.gem (100%)
Fetching: actionpack-2.3.11.gem (100%)
Fetching: actionmailer-2.3.11.gem (100%)
Fetching: activeresource-2.3.11.gem (100%)
Fetching: rails-2.3.11.gem (100%)
Successfully installed rake-0.9.2.2
Successfully installed activesupport-2.3.11
Successfully installed activerecord-2.3.11
Successfully installed rack-1.1.2
Successfully installed actionpack-2.3.11
Successfully installed actionmailer-2.3.11
Successfully installed activeresource-2.3.11
Successfully installed rails-2.3.11
8 gems installed
Installing ri documentation for rake-0.9.2.2...
=> ruby-1.8.7-p334 [ x86_64 ]
ruby-1.9.2-p290 [ x86_64 ]
rvm gemset list
gemsets for ruby-1.8.7-p334 (found in /home/ubuntu/.rvm/gems/ruby-1.8.7-p334)
global
=> ticket_mule
更新環境.rb
RAILS_GEM_VERSION = '2.3.11' unless defined? RAILS_GEM_VERSION
Rails::Initializer.run do |config|
# Specify gems that this application depends on and have them installed with rake gems:install
# config.gem "bj"
# config.gem "hpricot", :version => '0.6', :source => "http://code.whytheluckystiff.net"
# config.gem "sqlite3-ruby", :lib => "sqlite3"
# config.gem "aws-s3", :lib => "aws/s3"
config.gem 'will_paginate'
config.gem 'authlogic'
config.gem 'searchlogic'
config.gem 'paperclip'
config.gem 'prawn'
config.gem 'populator'
config.gem 'faker'
可能是您的乘客根本沒有使用RVM環境。 為了開箱即用,你需要
ubuntu
用戶下運行(默認情況下不會這樣做,它默認使用webserver用戶www-data
)並設置正確的默認值,以便使用正確的ruby和gemset RVM,或者 請注意,乘客一次只能使用一顆紅寶石。 雖然您可以在單個乘客實例中使用相同紅寶石上的不同gemset(例如fpr多個應用程序),但您無法在紅寶石之間切換。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.