Search code examples
ruby-on-railstorquebox

How do eliminate/remove a gem that is throwing errors


When I run the rails console command, I'm getting the following error messages:

Invalid gemspec in [/Users/MI1/torquebox-2.0.0.beta1/jruby/lib/ruby/gems/1.8/specifications/ZenTest-4.9.0.gemspec]: Illformed requirement ["< 2.1, >= 1.8"]

When I ran gem uninstall zentest, the system said zentest was not installed.

Does anyone know how can remove this gem and annoying error message.


Solution

  • Try this to make sure you don't have multiple versions of the gem

    gem cleanup
    

    then

    sudo gem uninstall zentest