[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

gem_server

Oliver Robinson

12/19/2007 11:12:00 AM

Have just installed a clean ruby 1.8.5 on windows and ran:

gem update --system

the rdoc server fails to load the index page with an internal server
error: uninitialized constant Gem::DocManager.

Any ideas?

Full stack trace:

C:\programfiles>gem_server
[2007-12-19 11:02:04] INFO WEBrick 1.3.1
[2007-12-19 11:02:04] INFO ruby 1.8.5 (2006-12-25) [i386-mswin32]
[2007-12-19 11:02:04] INFO WEBrick::HTTPServer#start: pid=3128
port=8808
[2007-12-19 11:02:19] ERROR NameError: uninitialized constant
Gem::DocManager
c:/programfiles/ruby/bin/gem_server.bat:401
c:/programfiles/ruby/lib/ruby/site_ruby/1.8/rubygems/source_index.rb:166
:in `each'
c:/programfiles/ruby/lib/ruby/site_ruby/1.8/rubygems/source_index.rb:166
:in `each'
c:/programfiles/ruby/bin/gem_server.bat:374
c:/programfiles/ruby/lib/ruby/1.8/webrick/httpservlet/prochandler.rb:26:
in `call'
c:/programfiles/ruby/lib/ruby/1.8/webrick/httpservlet/prochandler.rb:26:
in `do_GET'
c:/programfiles/ruby/lib/ruby/1.8/webrick/httpservlet/abstract.rb:35:in
`__send__'
c:/programfiles/ruby/lib/ruby/1.8/webrick/httpservlet/abstract.rb:35:in
`service'
c:/programfiles/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in
`service'

c:/programfiles/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in
`run'
c:/programfiles/ruby/lib/ruby/1.8/webrick/server.rb:173:in
`start_thread
'
c:/programfiles/ruby/lib/ruby/1.8/webrick/server.rb:162:in
`start'
c:/programfiles/ruby/lib/ruby/1.8/webrick/server.rb:162:in
`start_thread
'
c:/programfiles/ruby/lib/ruby/1.8/webrick/server.rb:95:in
`start'
c:/programfiles/ruby/lib/ruby/1.8/webrick/server.rb:92:in `each'
c:/programfiles/ruby/lib/ruby/1.8/webrick/server.rb:92:in
`start'
c:/programfiles/ruby/lib/ruby/1.8/webrick/server.rb:23:in
`start'
c:/programfiles/ruby/lib/ruby/1.8/webrick/server.rb:82:in
`start'
c:/programfiles/ruby/bin/gem_server.bat:441
127.0.0.1 - - [19/Dec/2007:11:02:19 GMT Standard Time] "GET / HTTP/1.1"
500 318
--
Posted via http://www.ruby-....

6 Answers

Eric Hodel

12/19/2007 8:13:00 PM

0

On Dec 19, 2007, at 03:11 AM, Oliver Robinson wrote:

> Have just installed a clean ruby 1.8.5 on windows and ran:
>
> gem update --system
>
> the rdoc server fails to load the index page with an internal server
> error: uninitialized constant Gem::DocManager.
>
> Any ideas?

Try `gem server`

Oliver Robinson

12/20/2007 10:12:00 AM

0

Eric Hodel wrote:
> On Dec 19, 2007, at 03:11 AM, Oliver Robinson wrote:
>
>> Have just installed a clean ruby 1.8.5 on windows and ran:
>>
>> gem update --system
>>
>> the rdoc server fails to load the index page with an internal server
>> error: uninitialized constant Gem::DocManager.
>>
>> Any ideas?
>
> Try `gem server`

Magic! That got it.
Thanks
--
Posted via http://www.ruby-....

Lee Jarvis

12/20/2007 5:14:00 PM

0

Well, I updated rubygems, and got this error:
/usr/bin/gem:23: uninitialized constant Gem::GemRunner (NameError)

So, I removed and reinstalled rubygems from my repos, (which happened to
be version 0.9.4). This was a clean install, yet I still get this error
no matter what I do..

c0re:/home/haze# gem
/usr/bin/gem:23: uninitialized constant Gem::GemRunner (NameError)
c0re:/home/haze# gem server
/usr/bin/gem:23: uninitialized constant Gem::GemRunner (NameError)
c0re:/home/haze# gem_server
/usr/local/lib/site_ruby/1.8/rubygems/server.rb:345:in `[]': Symbol as
array index (TypeError)
from /usr/local/lib/site_ruby/1.8/rubygems/server.rb:345:in
`run'
from /usr/bin/gem_server:5

Any ideas?

Regards,
Lee
--
Posted via http://www.ruby-....

Luis Lavena

12/20/2007 6:21:00 PM

0

On 19 dic, 08:11, Oliver Robinson <o...@teamwpc.co.uk> wrote:
> Have just installed a clean ruby 1.8.5 on windows and ran:
>
> gem update --system
>
> the rdoc server fails to load the index page with an internal server
> error: uninitialized constant Gem::DocManager.
>
> Any ideas?
>
> Full stack trace:
>
> C:\programfiles>gem_server

All the gem_server, gemlock, gemwhich and other gem* batch files have
been "deprecated" in favor of gem <command>:

so gem_server became gem server

the problem is that gem update --system isn't doing the same job that
setup.rb is doing: replacing older batch stubs with "stubs" that
indicate deprecation.

HTH,

Luis

Leonard Gallant

1/27/2008 9:26:00 PM

0

Lee Jarvis wrote:
> Well, I updated rubygems, and got this error:
> /usr/bin/gem:23: uninitialized constant Gem::GemRunner (NameError)
>
> So, I removed and reinstalled rubygems from my repos, (which happened to
> be version 0.9.4). This was a clean install, yet I still get this error
> no matter what I do..
>
> c0re:/home/haze# gem
> /usr/bin/gem:23: uninitialized constant Gem::GemRunner (NameError)
> c0re:/home/haze# gem server
> /usr/bin/gem:23: uninitialized constant Gem::GemRunner (NameError)
> c0re:/home/haze# gem_server
> /usr/local/lib/site_ruby/1.8/rubygems/server.rb:345:in `[]': Symbol as
> array index (TypeError)
> from /usr/local/lib/site_ruby/1.8/rubygems/server.rb:345:in
> `run'
> from /usr/bin/gem_server:5
>
> Any ideas?
>
> Regards,
> Lee

I had the same problem on my system. Mine is on ubuntu 7.10. When I
checked out my /usr/bin directory, I found the gem command and the
gem1.8 command. When I run the `gem1.8` command, everything runs
normally. I copied gem1.8 over to gem, and now I can use the gem
command again.

Regards,
Leonard
--
Posted via http://www.ruby-....

wolfram

1/27/2008 10:15:00 PM

0

> I had the same problem on my system. Mine is on ubuntu 7.10. When I
> checked out my /usr/bin directory, I found the gem command and the
> gem1.8 command. When I run the `gem1.8` command, everything runs
> normally. I copied gem1.8 over to gem, and now I can use the gem
> command again.

I think that Ubuntu's packaged version of 'rubygems' (the one installed
with Synaptics, Adept, or apg-get) is too old. Remove the packaged
version and install the latest rubygems from
http://rubygems.org/read....

The other side-effect this has is that on Ubunty 7.04 and 7.10, the gem
installation directory moves from /var/lib/gems/... to
/usr/lib/ruby/gems/... I reinstalled all my gems. There may be a way
to play with some environment variables, but it wasn't worth the trouble
to me to keep something working that doesn't follow convention (it's not
the Rails way).
--
Posted via http://www.ruby-....