RVM打破了我的Rails 2.3.5应用程序

时间:2012-03-01 17:19:55

标签: ruby-on-rails rvm

我不确定发生了什么......我安装了RVM,它似乎昨天正常工作,但今天我收到以下错误:

Missing these required gems: paperclip You're running: ruby 1.8.7.249 at /usr/local/bin/ruby rubygems 1.3.5 at /home/username/.gem/ruby/1.8, /usr/local/lib/ruby/gems/1.8 Run `rake gems:install` to install the missing gems.

我尝试做rake gems:install,但出现了以下错误:

NOTE: Gem.source_index is deprecated, use Specification. It will be removed on or after 2011-11-01.
Gem.source_index called from /home/username/apps/shopis/config/../vendor/rails/railties/lib/rails/gem_dependency.rb:21.

所以,我手动重新安装了回形针和我的其他宝石(红盒,乘客等)。我不确定为什么错误表明我使用旧的ruby版本和旧的rubygems版本。我很确定这与PATHS有关,但我只是卡住了。接下来会尝试捆绑,但我不想再打破这个。有什么想法吗?

ruby -v
ruby 1.8.7 (2012-02-08 patchlevel 358) [i686-linux]

which ruby
/home/username/.rvm/rubies/ruby-1.8.7-p358/bin/ruby

rails -v
Rails 2.3.5

 which rails
/home/username/.rvm/gems/ruby-1.8.7-p358@rails2.3.5/bin/rails

gem -v
1.8.17

 which gem
/home/username/.rvm/rubies/ruby-1.8.7-p358/bin/gem

gem list

*** LOCAL GEMS ***

actionmailer (2.3.5)
actionpack (2.3.5)
activemodel (3.2.1)
activerecord (3.2.1, 2.3.5)
activeresource (2.3.5)
activesupport (3.2.1, 2.3.5)
arel (3.0.2)
authlogic (3.1.0)
builder (3.0.0)
bundler (1.0.22)
cocaine (0.2.1)
daemon_controller (1.0.0)
fastthread (1.0.7)
i18n (0.6.0)
mime-types (1.17.2)
multi_json (1.1.0)
mysql (2.8.1)
paperclip (2.7.0)
passenger (3.0.11)
rack (1.0.1)
rails (2.3.5)
rake (0.9.2.2)
redbox (1.0.4)
tzinfo (0.3.31)

gem env

RubyGems Environment:
  - RUBYGEMS VERSION: 1.8.17
  - RUBY VERSION: 1.8.7 (2012-02-08 patchlevel 358) [i686-linux]
  - INSTALLATION DIRECTORY: /home/username/.rvm/gems/ruby-1.8.7-p358@rails2.3.5
  - RUBY EXECUTABLE: /home/username/.rvm/rubies/ruby-1.8.7-p358/bin/ruby
  - EXECUTABLE DIRECTORY: /home/username/.rvm/gems/ruby-1.8.7-p358@rails2.3.5/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86-linux
  - GEM PATHS:
     - /home/username/.rvm/gems/ruby-1.8.7-p358@rails2.3.5
     - /home/username/.rvm/gems/ruby-1.8.7-p358@global
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
  - REMOTE SOURCES:
     - http://rubygems.org/  

 rvm info

ruby-1.8.7-p358@rails2.3.5:

  system:
    uname:       "Linux deepblue 2.6.16.60-0.21-default #1 Tue May 6 12:41:02 UTC 2008 i686 athlon i386 GNU/Linux"
    bash:        "/bin/bash => GNU bash, version 3.1.17(1)-release (i586-suse-linux)"
    zsh:         "/usr/bin/zsh => zsh 4.2.6 (i386-suse-linux)"

  rvm:
    version:      "rvm 1.10.3 by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.beginrescueend.com/]"
    updated:      "1 day 21 hours 11 minutes 20 seconds ago"

  ruby:
    interpreter:  "ruby"
    version:      "1.8.7"
    date:         "2012-02-08"
    platform:     "i686-linux"
    patchlevel:   "2012-02-08 patchlevel 358"
    full_version: "ruby 1.8.7 (2012-02-08 patchlevel 358) [i686-linux]"

  homes:
    gem:          "/home/username/.rvm/gems/ruby-1.8.7-p358@rails2.3.5"
    ruby:         "/home/username/.rvm/rubies/ruby-1.8.7-p358"

  binaries:
    ruby:         "/home/username/.rvm/rubies/ruby-1.8.7-p358/bin/ruby"
    irb:          "/home/username/.rvm/rubies/ruby-1.8.7-p358/bin/irb"
    gem:          "/home/username/.rvm/rubies/ruby-1.8.7-p358/bin/gem"
    rake:         "/home/username/.rvm/gems/ruby-1.8.7-p358@rails2.3.5/bin/rake"

  environment:
    PATH:         "/home/username/.rvm/gems/ruby-1.8.7-p358@rails2.3.5/bin:/home/username/.rvm/gems/ruby-1.8.7-p358@global/bin:/home/username/.rvm/rubies/ruby-1.8.7-p358/bin:/home/username/.rvm/bin:/home/username/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin"
    GEM_HOME:     "/home/username/.rvm/gems/ruby-1.8.7-p358@rails2.3.5"
    GEM_PATH:     "/home/username/.rvm/gems/ruby-1.8.7-p358@rails2.3.5:/home/username/.rvm/gems/ruby-1.8.7-p358@global"
    MY_RUBY_HOME: "/home/username/.rvm/rubies/ruby-1.8.7-p358"
    IRBRC:        "/home/username/.rvm/rubies/ruby-1.8.7-p358/.irbrc"
    RUBYOPT:      ""
    gemset:       "rails2.3.5"

         - http://rubygems.org/

0 个答案:

没有答案