[Ironruby-core] [IronPython] Contents of Lib (packaging for RPM)

Tomas Matousek Tomas.Matousek at microsoft.com
Fri Feb 11 21:28:06 EST 2011


Yes, it is possible. You shouldn't need to change the config file. We don't have a config file in the Windows installation.

Tomas

-----Original Message-----
From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Andrew Jorgensen
Sent: Friday, February 11, 2011 5:07 PM
To: Discussion of IronPython
Cc: ironruby-core at rubyforge.org
Subject: Re: [IronPython] Contents of Lib (packaging for RPM)

Oh, nevermind, now I see this is configured in the .config files, I can probably fix this myself.

On Fri, Feb 11, 2011 at 5:59 PM, Andrew Jorgensen <andrew at jorgensenfamily.us> wrote:
> It still looks in the wrong place for the libraries, as you can see 
> from this strace log
>
>> grep date log
> read(0, "require 'date'\n", 1024)       = 15 
> stat("/usr/lib/Languages/Ruby/StdLib/ironruby/date.rb",
> 0x7fff01eb9510) = -1 ENOENT (No such file or directory) 
> lstat("/usr/lib/Languages/Ruby/StdLib/ironruby/date.rb",
> 0x7fff01eb9510) = -1 ENOENT (No such file or directory) 
> stat("/usr/lib/Languages/Ruby/StdLib/ironruby/date.dll",
> 0x7fff01eb9580) = -1 ENOENT (No such file or directory) 
> lstat("/usr/lib/Languages/Ruby/StdLib/ironruby/date.dll",
> 0x7fff01eb9580) = -1 ENOENT (No such file or directory) 
> stat("/usr/lib/Languages/Ruby/StdLib/ironruby/date.so",
> 0x7fff01eb9580) = -1 ENOENT (No such file or directory) 
> lstat("/usr/lib/Languages/Ruby/StdLib/ironruby/date.so",
> 0x7fff01eb9580) = -1 ENOENT (No such file or directory) 
> stat("/usr/lib/Languages/Ruby/StdLib/ironruby/date.exe",
> 0x7fff01eb9580) = -1 ENOENT (No such file or directory) 
> lstat("/usr/lib/Languages/Ruby/StdLib/ironruby/date.exe",
> 0x7fff01eb9580) = -1 ENOENT (No such file or directory) 
> stat("/usr/lib/Languages/Ruby/StdLib/ruby/site_ruby/1.9.1/date.rb",
> 0x7fff01eb9510) = -1 ENOENT (No such file or directory) 
> lstat("/usr/lib/Languages/Ruby/StdLib/ruby/site_ruby/1.9.1/date.rb",
> 0x7fff01eb9510) = -1 ENOENT (No such file or directory) 
> stat("/usr/lib/Languages/Ruby/StdLib/ruby/site_ruby/1.9.1/date.dll",
> 0x7fff01eb9580) = -1 ENOENT (No such file or directory) 
> lstat("/usr/lib/Languages/Ruby/StdLib/ruby/site_ruby/1.9.1/date.dll",
> 0x7fff01eb9580) = -1 ENOENT (No such file or directory) 
> stat("/usr/lib/Languages/Ruby/StdLib/ruby/site_ruby/1.9.1/date.so",
> 0x7fff01eb9580) = -1 ENOENT (No such file or directory) 
> lstat("/usr/lib/Languages/Ruby/StdLib/ruby/site_ruby/1.9.1/date.so",
> 0x7fff01eb9580) = -1 ENOENT (No such file or directory) 
> stat("/usr/lib/Languages/Ruby/StdLib/ruby/site_ruby/1.9.1/date.exe",
> 0x7fff01eb9580) = -1 ENOENT (No such file or directory) 
> lstat("/usr/lib/Languages/Ruby/StdLib/ruby/site_ruby/1.9.1/date.exe",
> 0x7fff01eb9580) = -1 ENOENT (No such file or directory) 
> stat("/usr/lib/Languages/Ruby/StdLib/ruby/1.9.1/date.rb",
> 0x7fff01eb9510) = -1 ENOENT (No such file or directory) 
> lstat("/usr/lib/Languages/Ruby/StdLib/ruby/1.9.1/date.rb",
> 0x7fff01eb9510) = -1 ENOENT (No such file or directory) 
> stat("/usr/lib/Languages/Ruby/StdLib/ruby/1.9.1/date.dll",
> 0x7fff01eb9580) = -1 ENOENT (No such file or directory) 
> lstat("/usr/lib/Languages/Ruby/StdLib/ruby/1.9.1/date.dll",
> 0x7fff01eb9580) = -1 ENOENT (No such file or directory) 
> stat("/usr/lib/Languages/Ruby/StdLib/ruby/1.9.1/date.so",
> 0x7fff01eb9580) = -1 ENOENT (No such file or directory) 
> lstat("/usr/lib/Languages/Ruby/StdLib/ruby/1.9.1/date.so",
> 0x7fff01eb9580) = -1 ENOENT (No such file or directory) 
> stat("/usr/lib/Languages/Ruby/StdLib/ruby/1.9.1/date.exe",
> 0x7fff01eb9580) = -1 ENOENT (No such file or directory) 
> lstat("/usr/lib/Languages/Ruby/StdLib/ruby/1.9.1/date.exe",
> 0x7fff01eb9580) = -1 ENOENT (No such file or directory) 
> stat("/home/ajorg/packages-provo/Mono/ironruby/date.rb",
> 0x7fff01eb9510) = -1 ENOENT (No such file or directory) 
> lstat("/home/ajorg/packages-provo/Mono/ironruby/date.rb",
> 0x7fff01eb9510) = -1 ENOENT (No such file or directory) 
> stat("/home/ajorg/packages-provo/Mono/ironruby/date.dll",
> 0x7fff01eb9580) = -1 ENOENT (No such file or directory) 
> lstat("/home/ajorg/packages-provo/Mono/ironruby/date.dll",
> 0x7fff01eb9580) = -1 ENOENT (No such file or directory) 
> stat("/home/ajorg/packages-provo/Mono/ironruby/date.so",
> 0x7fff01eb9580) = -1 ENOENT (No such file or directory) 
> lstat("/home/ajorg/packages-provo/Mono/ironruby/date.so",
> 0x7fff01eb9580) = -1 ENOENT (No such file or directory) 
> stat("/home/ajorg/packages-provo/Mono/ironruby/date.exe",
> 0x7fff01eb9580) = -1 ENOENT (No such file or directory) 
> lstat("/home/ajorg/packages-provo/Mono/ironruby/date.exe",
> 0x7fff01eb9580) = -1 ENOENT (No such file or directory)
>
> On Fri, Feb 11, 2011 at 5:43 PM, Andrew Jorgensen 
> <andrew at jorgensenfamily.us> wrote:
>> Yes, that should be fine, I'll give it a try and see if it can load anything.
>>
>> On Fri, Feb 11, 2011 at 10:23 AM, Tomas Matousek 
>> <Tomas.Matousek at microsoft.com> wrote:
>>> The expected layout is:
>>>
>>> /usr/lib/ironruby/bin
>>>   ir.exe
>>>   IronRuby.dll
>>>   IronRuby.Libraries.dll
>>>   IronRuby.Libraries.Yaml.dll
>>>   Microsoft.Scripting.dll
>>>   Microsoft.Dynamic.dll
>>>   Microsoft.scripting.Metadata.dll
>>>
>>> /usr/lib/ironruby/Lib -> StdLib directory
>>>  ironruby
>>>     digest
>>>     mathn
>>>     test
>>>     yaml
>>>     ...
>>>  ruby
>>>     1.9.1
>>>     gems
>>>     site_ruby
>>>
>>> It is indeed possible to change it but this is the simplest setup that requires no additional configuration.
>>> Would it work for you?
>>>
>>> Tomas
>>>
>>> -----Original Message-----
>>> From: users-bounces at lists.ironpython.com 
>>> [mailto:users-bounces at lists.ironpython.com] On Behalf Of Andrew 
>>> Jorgensen
>>> Sent: Friday, February 11, 2011 8:05 AM
>>> To: Discussion of IronPython
>>> Cc: ironruby-core at rubyforge.org
>>> Subject: Re: [IronPython] Contents of Lib (packaging for RPM)
>>>
>>> For now it looks like this:
>>> /usr/bin/ir # etc., wrapper scripts to call mono /usr/lib/ironruby/ir.exe # etc.
>>> /usr/lib/ironruby/IronRuby.dll # etc.
>>> /usr/lib/ironruby/Lib/ironruby # etc. contents pulled from 
>>> Languages/Ruby/StdLib
>>>
>>> When I strace'd running ir and typing require 'foo' it said it was looking in various directories that make sense if you're running from the source build.
>>>
>>> On Thu, Feb 10, 2011 at 4:01 PM, Tomas Matousek <Tomas.Matousek at microsoft.com> wrote:
>>>> What is your installation dir/file layout?
>>>>
>>>> -----Original Message-----
>>>> From: users-bounces at lists.ironpython.com
>>>> [mailto:users-bounces at lists.ironpython.com] On Behalf Of Andrew 
>>>> Jorgensen
>>>> Sent: Thursday, February 10, 2011 2:52 PM
>>>> To: Discussion of IronPython
>>>> Cc: ironruby-core at rubyforge.org
>>>> Subject: Re: [IronPython] Contents of Lib (packaging for RPM)
>>>>
>>>> Okay, we're making some great progress here now. Last issue I see 
>>>> immediately is that ir.exe crashes hard when trying to require a 
>>>> library, also it looks for it in all the wrong places on mono. 
>>>> Ideally
>>>> (IMHO) it would first look under a Lib directory under the directory ir.exe lives in.
>>>> _______________________________________________
>>>> Users mailing list
>>>> Users at lists.ironpython.com
>>>> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>>>>
>>>> _______________________________________________
>>>> Users mailing list
>>>> Users at lists.ironpython.com
>>>> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.ironpython.com
>>> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.ironpython.com
>>> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>>>
>>
>
_______________________________________________
Users mailing list
Users at lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com


More information about the Ironruby-core mailing list