[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

Help with 1.8.7 Binary under MS Windows

Victor Reyes

8/5/2008 1:06:00 PM

[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

1 Answer

Jano Svitok

8/5/2008 2:29:00 PM

0

On Tue, Aug 5, 2008 at 15:06, Victor Reyes <victor.reyes@gmail.com> wrote:
> 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