Help with 1.8.7 Binary under MS Windows

V

Victor Reyes

[Note: parts of this message were removed to make it a legal post.]

Hello,

Since I could not find the "1-click" package for 1.8.7, I downloaded its
binary.
I proceeded to remove 1.8.6 and extracted 1.8.7 in its place.
So I have a dir strcuture of:

c:\ruby

C:\>cd ruby
C:\ruby>dir
Volume in drive C has no label.
Volume Serial Number is 289C-FD52
Directory of C:\ruby
08/05/2008 08:53 AM <DIR> .
08/05/2008 08:53 AM <DIR> ..
08/05/2008 08:52 AM <DIR> bin
08/05/2008 08:52 AM <DIR> doc
08/05/2008 08:52 AM <DIR> lib
08/05/2008 08:53 AM <DIR> man
06/02/2008 01:58 AM 649,528 MANIFEST
06/02/2008 01:51 AM 1,282 README.1st
08/05/2008 08:29 AM <DIR> Ruby-1.8.6 and much more *(I
actually moved 1.8.6 to this dir)
*08/05/2008 08:53 AM <DIR> share
2 File(s) 650,810 bytes
9 Dir(s) 115,489,136,640 bytes free
C:\ruby>

*ruby -v
ruby 1.8.7 (2008-05-31 patchlevel 0) [i386-mswin32]*

However when I try to test it by invoking the simplest pgm of all, I get the
following error:

*ruby qt.rb
ruby: no such file to load -- ubygems (LoadError)*

*cat qt.rb
puts "Hello World!"*

Could anyone tell me what I did wrong here?

BTW, I am trying 1.8.7 because I wanted to use the *delete* method: *
a.delete("value")* and it looks like this is not found on 1.8.6.

Thank you

Victor
 
J

Jano Svitok

Hello,

Since I could not find the "1-click" package for 1.8.7, I downloaded its
binary.
I proceeded to remove 1.8.6 and extracted 1.8.7 in its place.
So I have a dir strcuture of:

c:\ruby

C:\>cd ruby
C:\ruby>dir
Volume in drive C has no label.
Volume Serial Number is 289C-FD52
Directory of C:\ruby
08/05/2008 08:53 AM <DIR> .
08/05/2008 08:53 AM <DIR> ..
08/05/2008 08:52 AM <DIR> bin
08/05/2008 08:52 AM <DIR> doc
08/05/2008 08:52 AM <DIR> lib
08/05/2008 08:53 AM <DIR> man
06/02/2008 01:58 AM 649,528 MANIFEST
06/02/2008 01:51 AM 1,282 README.1st
08/05/2008 08:29 AM <DIR> Ruby-1.8.6 and much more *(I
actually moved 1.8.6 to this dir)
*08/05/2008 08:53 AM <DIR> share
2 File(s) 650,810 bytes
9 Dir(s) 115,489,136,640 bytes free
C:\ruby>

*ruby -v
ruby 1.8.7 (2008-05-31 patchlevel 0) [i386-mswin32]*

However when I try to test it by invoking the simplest pgm of all, I get the
following error:

*ruby qt.rb
ruby: no such file to load -- ubygems (LoadError)*

*cat qt.rb
puts "Hello World!"*

Could anyone tell me what I did wrong here?

BTW, I am trying 1.8.7 because I wanted to use the *delete* method: *
a.delete("value")* and it looks like this is not found on 1.8.6.

Thank you

Victor

install rubygems. (download the tarball/zip, unpack, start setup.rb --
but check the docs)
or unset %RUBYOPT% (set RUBYOPT=)

Jano
 

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,769
Messages
2,569,582
Members
45,071
Latest member
MetabolicSolutionsKeto

Latest Threads

Top