Building Ruby 1.9 on Windows

N

Nop Nop

Hello gents,

I've just built ruby 1.9 for win32 including Tk 8.5. Everything passed
ok. But running a simple script 'require "tk" ' produces a strange
error:

D:\Work\ruby>ruby test.rb
:0:in `require': no such file to load -- ubygems (LoadError)

I've no idea what does that mean and why so weird message occurs:
"ubygems". All the environment variables point to my fresh ruby19
distribution.

Could anyone give any advice how to fix that?

And may be the folllowing message while performing "nmake install" will
say something:

Generating RI...
D:/Ruby/ruby/lib/rdoc/ri/descriptions.rb:11:in `<top (required)>':
uniniti
constant RDoc::RI::RDoc (NameError)
from D:/Ruby/ruby/lib/rdoc/ri/reader.rb:2:in `require'
from D:/Ruby/ruby/lib/rdoc/ri/reader.rb:2:in `<top (required)>'
from D:/Ruby/ruby/lib/rdoc/generator/ri.rb:5:in `require'
from D:/Ruby/ruby/lib/rdoc/generator/ri.rb:5:in `<top
(required)>'
from D:/Ruby/ruby/lib/rdoc/rdoc.rb:251:in `require'
from D:/Ruby/ruby/lib/rdoc/rdoc.rb:251:in `document'
from ./bin/rdoc:15:in `<main>'
NMAKE : fatal error U1077: '.\ruby.exe' : return code '0x1'
Stop.

Thanks in advance,
Dmitry
 
T

ThoML

:0:in `require': no such file to load -- ubygems (LoadError)

Maybe RUBYOPT is still set to -rubygems from a previous install.
 
N

Nop Nop

ThoML said:
Maybe RUBYOPT is still set to -rubygems from a previous install.

Thank you for your idea, it helped me to find out that there was wrong
%RUBYPATH% variable. I didn't even know about it.
 

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

Forum statistics

Threads
473,968
Messages
2,570,152
Members
46,697
Latest member
AugustNabo

Latest Threads

Top