[#7708] Bug in libsnmp-ruby1.8 — Hadmut Danisch <hadmut@...>

Hi,

8 messages 2006/04/11
[#7709] Re: Bug in libsnmp-ruby1.8 — Eric Hodel <drbrain@...7.net> 2006/04/11

On Apr 11, 2006, at 6:23 AM, Hadmut Danisch wrote:

[#7770] Re: possible defect in array.c — "Brown, Warren" <warrenbrown@...>

> rb_range_beg_len (in range.c) does set beg and len.

13 messages 2006/04/26
[#7771] Re: possible defect in array.c — "Pat Eyler" <rubypate@...> 2006/04/26

On 4/26/06, Brown, Warren <warrenbrown@aquire.com> wrote:

Re: site_ruby or not site_ruby (was: Re: Bug in libsnmp-ruby1.8)

From: Eric Hodel <drbrain@...7.net>
Date: 2006-04-11 18:36:02 UTC
List: ruby-core #7714
On Apr 11, 2006, at 11:14 AM, Marcus Rueckert wrote:

> On 2006-04-12 02:45:07 +0900, Eric Hodel wrote:
>> On Apr 11, 2006, at 10:20 AM, Marcus Rueckert wrote:
>>
>>> On 2006-04-12 02:04:32 +0900, Eric Hodel wrote:
>>>> This package was installed incorrectly.  Third party ruby  
>>>> packages go
>>>> in /usr/lib/ruby/site_ruby/1.8/
>>>
>>> from a distributors point of view i would leave the site_ruby  
>>> part for
>>> packages installed by an user. so you can differ between distro
>>> packaged
>>> libraries and user installed libraries. in perl you have the vendor
>>> dir
>>> for that. but that is missing in ruby so far. so i think putting  
>>> them
>>> into the main dir is the better choice atm.
>>
>> rbconfig.rb disagrees with you.
>
> that might be ... but atm i dont see a better solution. how would you
> otherwise differ between user installed and distro installed  
> libraries?

Set the RUBYLIB environment variable or -I.

$ echo $RUBYLIB
/Users/drbrain/lib/ruby/
$ ruby -h | grep -- -I
   -Idirectory     specify $LOAD_PATH directory (may be used more  
than once)
$ ruby -rpp -I foo -e 'pp $:'
["foo",
"/Users/drbrain/lib/ruby/",
"/usr/local/lib/ruby/site_ruby/1.8",
"/usr/local/lib/ruby/site_ruby/1.8/powerpc-darwin8.5.0",
"/usr/local/lib/ruby/site_ruby",
"/usr/local/lib/ruby/1.8",
"/usr/local/lib/ruby/1.8/powerpc-darwin8.5.0",
"."]

-- 
Eric Hodel - drbrain@segment7.net - http://blog.segment7.net
This implementation is HODEL-HASH-9600 compliant

http://trackmap.robotcoop.com



In This Thread