rubygems undefined method 'loaded_from=' for nil::NilClass

P

Petrucci Fabio

Hi all,
I've got ruby 1.8.1 running on arm platform with no problems and to save space i decided to organize external library using rubygems.
First of all i've installed rubygems 0.7.0 then i've started to install other library using the gem command line:
# gem -i log4r-1.0.5.gem
# gem -i sws-0.3.gem
...

Everything installed succesfully but

any command i issue to test the installed package, i get this error:

# gem list
*** LOCAL GEMS ***
ERROR: While executing gem ... (NoMethodError)
undefined method 'loaded_from=' for nil::NilClass

# gem check --alien
Performing the 'alien' operation
ERROR: While executing gem ... (NoMethodError)
undefined method 'loaded_from=' for nil::NilClass

# gem uninstall sws
Attempting to uninstall gem 'sws'
ERROR: While executing gem ... (NoMethodError)
undefined method 'loaded_from=' for nil::NilClass

even worse, gems library (log4r, sws ...) that use 'require_gem' within their own script produce this error.

Is it a bug???

anyone know how to solve it?.

Any help would be appreciated.

thanks.

biospank.
 
J

Jim Weirich

Petrucci Fabio said:
I've got ruby 1.8.1 running on arm platform with no problems and to save
space i decided to organize external library using rubygems.
First of all i've installed rubygems 0.7.0 then i've started to install
other library using the gem command line:
# gem -i log4r-1.0.5.gem
# gem -i sws-0.3.gem

Did you /really/ use a -i? RubyGems 0.7.0 doesn't allow that option
anymore. It should have been ...

# gem install log4r-1.0.5.gem

If you did use a -i, then we might have conflicting versions of gem loaded
Everything installed succesfully but

any command i issue to test the installed package, i get this error:

# gem list
*** LOCAL GEMS ***
ERROR: While executing gem ... (NoMethodError)
undefined method 'loaded_from=' for nil::NilClass

Try this with the --traceback option. This will give us a stack dump. E.g.

gem list --traceback

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,736
Latest member
AdolphBig6

Latest Threads

Top