[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

Cygwin Ruby and Windows Ruby?

cjl

3/19/2005 3:01:00 PM

Hey all:

I use cygwin, and installed ruby to mess around with it.

Can I also install the windows one-click-ruby-installer?

Will they interfere with each other?

-cjl

8 Answers

Shashank Date

3/19/2005 3:23:00 PM

0

cjl wrote:

> Hey all:
>
> I use cygwin, and installed ruby to mess around with it.
>
> Can I also install the windows one-click-ruby-installer?

Yes.

> Will they interfere with each other?

No.

I have both the versions along with SFU 3.5 version living happily under
one roof :-)

HTH,

> -cjl

-- shanko

cjl

3/19/2005 7:54:00 PM

0

Hey all:

Well, I went ahead and installed the one-click installer, and I think
it screwed up my cygwin ruby, because now irb doesn't work anymore.

If I type irb at the command prompt, I get the following:

/usr/bin/ruby: No such file to load -- ubygems (LoadError)

Note, 'ubygems' is not a typo, that is how the error message is
printed.

Help, anyone?

-cjl

cjl

3/19/2005 7:59:00 PM

0

OK:

If I type irb I get the error message I described in my previous post.

If I type irb and then <tab> for command completion, I see there is
both irb and irb.bat, and irb.bat works.

Also, somehow the one-click installer /bin directory got automatically
added to my cygwin path. How did that happen?

-cjl

Lothar Scholz

3/19/2005 8:44:00 PM

0

Hello cjl,

c> OK:

c> If I type irb I get the error message I described in my previous post.

c> If I type irb and then <tab> for command completion, I see there is
c> both irb and irb.bat, and irb.bat works.

c> Also, somehow the one-click installer /bin directory got automatically
c> added to my cygwin path. How did that happen?

c> -cjl

One Click Installer has now implemented the stupid idea to register
the global environment variable "RUBYOPT" which loads the rubygems.
This is for all ruby interpreters on your system. Even if they
are older 1.8.1 systems (which do not support rubygems by default).

The idea is really bad and one more sign that ruby is a little bit
immature at the moment. If rubygems is such a good project (and i
think it is), someone should integrate this into the ruby.exe file
instead overloading 'require' with the current quick and dirty
hack.

For you the advise: do a "export RUBYOPT=" and everything should work
again.



--
Best regards, emailto: scholz at scriptolutions dot com
Lothar Scholz http://www.ru...
CTO Scriptolutions Ruby, PHP, Python IDE 's




cjl

3/19/2005 9:52:00 PM

0

Lather:

Thanks for the info.

Are the one-click installer people aware that they screw-up cygwin?

Should I drop the a note?

-cjl

Curt Hibbs

3/19/2005 11:23:00 PM

0

cjl wrote:
>
> Lather:
>
> Thanks for the info.
>
> Are the one-click installer people aware that they screw-up cygwin?
>
> Should I drop the a note?

By default, the one-click installer installs RubyGems and sets the
environment variable. If you uncheck that option, this will not happen.

Curt



Shashank Date

3/20/2005 4:44:00 AM

0

Hi cjl,

I owe you an apology for leading into a sticky situation. I haven't
played with my Cygwin installation in a while and should have checked it
out before responding. Please accept my sincere apologies.

cjl wrote:
>
> Are the one-click installer people aware that they screw-up cygwin?

I am one of the members, and as a penance, will look into making it less
painfull ;-)

> Should I drop the a note?

Noted !

> -cjl

-- shanko

Shashank Date

3/20/2005 4:44:00 AM

0

Hi cjl,

I owe you an apology for leading into a sticky situation. I haven't
played with my Cygwin installation in a while and should have checked it
out before responding. Please accept my sincere apologies.

cjl wrote:
>
> Are the one-click installer people aware that they screw-up cygwin?

I am one of the members, and as a penance, will look into making it less
painfull ;-)

> Should I drop the a note?

Noted !

> -cjl

-- shanko