开发者

Why can't uninstall my will_paginate gem within rvm?

开发者 https://www.devze.com 2023-04-12 16:13 出处:网络
I tried to uninstall a gem and get the below error. Any help would be appreciated. Thanks. Macintosh-3:haloror patelc75$ gem list -d will_paginate

I tried to uninstall a gem and get the below error. Any help would be appreciated. Thanks.

Macintosh-3:haloror patelc75$ gem list -d will_paginate

*** LOCAL GEMS ***

will_paginate (3.0.1, 2.2.2)
    Author: Mislav Marohnić
    Homepage: https://github.com/mislav/will_paginate/wiki
    Installed at (3.0.1): /Users/patelc75/.rvm/gems/ruby-1.8.7-p334
             (2.2.2): /Users/patelc75/.rvm/gems/ruby-1.8.7-p334

    Pagination plugin for web frameworks and othe开发者_如何学Cr apps
Macintosh-3:haloror patelc75$ sudo gem uninstall will_paginate -v 3.0.1

ERROR:  While executing gem ... (Gem::InstallError)
    cannot uninstall, check `gem list -d will_paginate`

Macintosh-3:haloror patelc75$ 


You don't need to / should not use sudo with rvm. Try without the sudo.


try "gem env"

RubyGems Environment:
  - RUBYGEMS VERSION: 1.8.6
  - RUBY VERSION: 1.8.7 (2011-06-30 patchlevel 352) [i686-darwin11.0.0]
  - INSTALLATION DIRECTORY: /Users/ram/.rvm/gems/ruby-1.8.7-p352@matrix_shopping_cart
  - RUBY EXECUTABLE: /Users/ram/.rvm/rubies/ruby-1.8.7-p352/bin/ruby
  - EXECUTABLE DIRECTORY: /Users/ram/.rvm/gems/ruby-1.8.7-p352@matrix_shopping_cart/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86-darwin-11
  - GEM PATHS:
     - /Users/ram/.rvm/gems/ruby-1.8.7-p352@matrix_shopping_cart
     - /Users/ram/.rvm/gems/ruby-1.8.7-p352@global
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
     - :sources => ["http://rubygems.org", "http://gems.rubyforge.org", "http://gems.github.com"]
  - REMOTE SOURCES:
     - http://rubygems.org
     - http://gems.rubyforge.org
     - http://gems.github.com

GEM PATHS: is where gems are installed

  - GEM PATHS:
     - /Users/ram/.rvm/gems/ruby-1.8.7-p352@matrix_shopping_cart
     - /Users/ram/.rvm/gems/ruby-1.8.7-p352@global

gem uninstall will_paginate -i /dir/name/where/gem/is/shown

You can also check installation directory for that gem with

gem list -d will_paginate

ou can also manually uninstall that gem by going to that directory and removing the gem in terminal

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号