Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Gem:Module (NoMethodError
Daniel Sánchez
6/3/2007 6:54:00 PM
I have this problem win Rubygem
I don't now what to do
rubygems-0.9.4
===============================================================================
/usr/lib/ruby/site_ruby/1.8/rubygems.rb:84:Warning: require_gem is
obsolete. Use gem instead.
/usr/lib/ruby/site_ruby/1.8/rubygems.rb:76:in `active_gem_with_options':
undefined method `activate' for Gem:Module (NoMethodError)
from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:61:in `require'
from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:84
from /var/lib/asterisk/agi-bin/comprobar-festivos.rb:17:in
`require'
from /var/lib/asterisk/agi-bin/comprobar-festivos.rb:17
-- AGI Script comprobar-festivos.rb completed, returning 0
=================================================================================
--
Posted via
http://www.ruby-...
.
2 Answers
Bernard Kenik
6/4/2007 1:11:00 AM
0
On Jun 3, 2:53 pm, "Daniel S?nchez" <daniels...@gmail.com> wrote:
> I have this problem win Rubygem
>
> I don't now what to do
> rubygems-0.9.4
>
> ===========================================================================?====
> /usr/lib/ruby/site_ruby/1.8/rubygems.rb:84:Warning: require_gem is
> obsolete. Use gem instead.
> /usr/lib/ruby/site_ruby/1.8/rubygems.rb:76:in `active_gem_with_options':
> undefined method `activate' for Gem:Module (NoMethodError)
> from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:61:in `require'
> from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:84
> from /var/lib/asterisk/agi-bin/comprobar-festivos.rb:17:in
> `require'
> from /var/lib/asterisk/agi-bin/comprobar-festivos.rb:17
> -- AGI Script comprobar-festivos.rb completed, returning 0
> ===========================================================================?======
>
> --
> Posted via
http://www.ruby-...
.
Did you use?
'require_gem <genname>'
In that case, use 'require <gemname>'
This is what the error message is telling you.
I have had problems with rubygems 0.9.4 and 0.9.3 on Windows.
My solution was to re-install Ruby which has rubygems 0.9.2, which
works fine.
My understanding is that it is install a prior version of rubygems
without having to re-install ruby.
Hopes, this helps.
Austin Ziegler
6/4/2007 12:34:00 PM
0
On 6/3/07, bbiker <renard@nc.rr.com> wrote:
> On Jun 3, 2:53 pm, "Daniel Sánchez" <daniels...@gmail.com> wrote:
> > I have this problem win Rubygem
> >
> > I don't now what to do
> > rubygems-0.9.4
> Did you use?
> 'require_gem <genname>'
>
> In that case, use 'require <gemname>'
This is incorrect. It is not necessarily the case that the gem name
matches the require identity. As an example, Text::Format is provided
as a gem text-format and is activated with "require 'text/format'". As
to the OP's problems, I don't know anything about it right now.
-austin
--
Austin Ziegler * halostatue@gmail.com *
http://www.halo...
* austin@halostatue.ca *
http://www.halo...
feed/
* austin@zieglers.ca
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Gem:Module (NoMethodError
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password