Cygwin Ruby and Windows Ruby?

C

cjl

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
 
S

Shashank Date

cjl said:
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,

-- shanko
 
C

cjl

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
 
C

cjl

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
 
L

Lothar Scholz

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.
 
C

cjl

Lather:

Thanks for the info.

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

Should I drop the a note?

-cjl
 
C

Curt Hibbs

cjl said:
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
 
S

Shashank Date

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.
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 !

-- shanko
 
S

Shashank Date

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.
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 !

-- shanko
 

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,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top