delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/08/11/11:05:26

X-Spam-Check-By: sourceware.org
From: "Dave Korn" <dave DOT korn AT artimi DOT com>
To: <cygwin AT cygwin DOT com>
Subject: RE: ruby irb doesn't seem to work
Date: Fri, 11 Aug 2006 16:05:03 +0100
Message-ID: <00f801c6bd57$864b8b20$a501a8c0@CAM.ARTIMI.COM>
MIME-Version: 1.0
X-Mailer: Microsoft Office Outlook 11
In-Reply-To: <slrnedp54t.2hg.wbp@L1422169.w-intra.net>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 11 August 2006 15:31, Will Parsons wrote:

> Dave Korn wrote:
>> On 11 August 2006 14:37, Will Parsons wrote:
>> 
>>> Starting up irb (interactive Ruby), I get:
>>> 
>>>  $ irb
>>>  /usr/bin/ruby: no such file to load -- ubygems (LoadError)
>>> 
>>> Did I omit to install something I need here?
>> 
>> 
>>   Looks lke you omitted to install the leading letter 'R'.
>> 
>> 
>>  <ba-dyum-tissshhh!>
>> 
>>     sorry,
>>       DaveK
> 
> Now what package is that in? ;-)
> 
> Seriously, I think I've found the problem - I had an environment variable
> 
>   RUBYOPT=-rubygems
> 
> Unsetting the variable seems to fix the problem.  Apparently, I'd installed
> a non-Cygwin version of Ruby (which I didn't even remember doing), and this
> interferes with the Cygwin version.

  LOL, this happens so often and with so many languages it deserves an
acronym.

  TCOASSA!

  The missing R is still a clue though.  

---------------------------------------------------<
dk AT rainbow /artimi/tools/linux> ruby --help
Usage: ruby [switches] [--] [programfile] [arguments]
   [ ... snip ... ]
  -rlibrary       require the library, before executing your script
---------------------------------------------------<

  So, I dunno if "RUBYOPT=-rrubygems" would work better.  Not without having
rubygems installed, anyway, I don't suppose.  Or perhaps it's one of those
awful puns like "-liberty".

  Hmm.  It suggests here:
http://rubyforge.org/tracker/index.php?func=detail&aid=2497&group_id=126&atid=
576
that it's actually the cygwin package that sets the RUBYOPT variable, even
though it doesn't come with the rubygems library.  If so, that would be a
packaging issue.  OTOH, a quick scan through the package listing for cygwin
ruby doesn't show any postinstall script that could have done that, so I'm not
so sure if the report is accurate: I think you've probably put your finger on
it.


    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019