[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

Re: where is $: defined?

Andreas S

1/17/2007 10:50:00 PM


>From: "Jan Svitok" <jan.svitok@gmail.com>
>Reply-To: ruby-talk@ruby-lang.org
>To: ruby-talk@ruby-lang.org (ruby-talk ML)
>Subject: Re: where is $: defined?
>Date: Thu, 18 Jan 2007 05:34:49 +0900
>
>
>I suppose the default is compiled-in (the configure --something should
>be the right path)
>Note that this is just a hint, I'm not sure nor I have checked that.
>

I don't see that incorrect path for $: defined any where in config* file or
Makefile. It guess it must be derived from something. The miniruby got it
right. The compiled ruby got it wrong.

[nm12681:ruby-junk] ./miniruby -e 'puts $:'
/login/asn/lib/ruby/site_ruby/1.8
/login/asn/lib/ruby/site_ruby/1.8/i686-linux
/login/asn/lib/ruby/site_ruby
/login/asn/lib/ruby/1.8
/login/asn/lib/ruby/1.8/i686-linux
.
[nm12681:ruby-junk] ./ruby -e 'puts $:'
/tools/xd/ruby-1.8.5/lib/ruby/site_ruby/1.8
/tools/xd/ruby-1.8.5/lib/ruby/site_ruby/1.8/i686-linux
/tools/xd/ruby-1.8.5/lib/ruby/site_ruby
/tools/xd/ruby-1.8.5/lib/ruby/1.8
/tools/xd/ruby-1.8.5/lib/ruby/1.8/i686-linux

Don't know why the compiled ruby has wrong $: and why it's different than
miniruby's $:. It looks like a particular problem, though, only when I
included my co-worker bin path.

I got it compiled with using different path (it has older gnu tools). This
time the $: is correct. It picks up my ruby library.

-andre

_________________________________________________________________
Get Hilary Duff?s homepage with her photos, music, and more.
http://www.live.com/?addtemplate=hilary&ocid=T001...