# Can't require any of the libs

**URL:** <https://www.ruby-forum.com/t/cant-require-any-of-the-libs/140228>\
**Category:** IronRuby\
**Created:** [June 12, 2008, 2:00am UTC](https://www.ruby-forum.com/t/cant-require-any-of-the-libs/140228 "2008-06-12T02:00:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![barby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/c57346/32.png) [@barby](https://www.ruby-forum.com/u/barby)\
**Post date:** [June 12, 2008, 2:00am UTC](https://www.ruby-forum.com/t/cant-require-any-of-the-libs/140228/1 "2008-06-12T02:00:25Z")

</div>

Hi

I tried requiring any of the libs that are included in the ironruby  
source.

I tried putting the libs folder in different places but to no avail.  
So far i’ve put the libs in.

irdir\libs  
irdir\build\libs  
irdir\build\debug  
irdir\build\debug\libs  
irdir\build\release  
irdir\build\release\libs

where do I have to copy the libs folder to so that IronRuby picks it up?  
I can require them when i put them in the same folder where I call the  
ir  
command.

- C:\tools\IronRuby\build\debug  
Â» ir  
IronRuby 1.0.0.0 on .NET 2.0.50727.1434  
Copyright © Microsoft Corporation. All rights reserved.

Note that local variables do not work today in the console.  
As a workaround, use globals instead (eg $x = 42 instead of x = 42).

> > > require ‘yaml’  
> > > =\> true

Somehow this doesn’t seem right to me… but that’s probably because I’m  
putting my stuff in the wrong place.

also when I compile with rake compile config=release  
it will just compile a debug version

---

<div class="post-metadata">

**Author:** ![barby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/c57346/32.png) [@barby](https://www.ruby-forum.com/u/barby)\
**Post date:** [June 12, 2008, 2:05am UTC](https://www.ruby-forum.com/t/cant-require-any-of-the-libs/140228/2 "2008-06-12T02:05:41Z")

</div>

We donâ€™t do anything auto-magic as far as the path is concerned. I  
specify the include directories on the command-line by running the  
now-notorious â€œir.cmdâ€. My version of the file looks like this:

%MERLIN\_ROOT%\bin\debug\ir.exe -I  
%MERLIN\_ROOT%..\External\Languages\Ruby\ruby-1.8.6\lib\ruby\1.8;%MERLIN\_ROOT%..\External\Languages\Ruby\ruby-1.8.6\lib\ruby\site\_ruby\1.8;%MERLIN\_ROOT%\Languages\Ruby\Libs  
%\*

Youâ€™d obviously need to change the paths to suit your file system  
layout.

From: removed\_email\_address@domain.invalid  
[[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)] On Behalf Of Ivan Porto  
Carrero  
Sent: Wednesday, June 11, 2008 5:00 PM  
To: removed\_email\_address@domain.invalid  
Subject: [Ironruby-core] can’t require any of the libs

Hi

I tried requiring any of the libs that are included in the ironruby  
source.

I tried putting the libs folder in different places but to no avail.  
So far i’ve put the libs in.

irdir\libs  
irdir\build\libs  
irdir\build\debug  
irdir\build\debug\libs  
irdir\build\release  
irdir\build\release\libs

where do I have to copy the libs folder to so that IronRuby picks it up?  
I can require them when i put them in the same folder where I call the  
ir command.

- C:\tools\IronRuby\build\debug  
Â» ir  
IronRuby 1.0.0.0[http://1.0.0.0](http://1.0.0.0) on .NET 2.0.50727.1434  
Copyright (c) Microsoft Corporation. All rights reserved.

Note that local variables do not work today in the console.  
As a workaround, use globals instead (eg $x = 42 instead of x = 42).

> > > require ‘yaml’  
> > > =\> true

Somehow this doesn’t seem right to me… but that’s probably because I’m  
putting my stuff in the wrong place.

also when I compile with rake compile config=release  
it will just compile a debug version

---

<div class="post-metadata">

**Author:** ![barby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/c57346/32.png) [@barby](https://www.ruby-forum.com/u/barby)\
**Post date:** [June 12, 2008, 2:12am UTC](https://www.ruby-forum.com/t/cant-require-any-of-the-libs/140228/3 "2008-06-12T02:12:43Z")

</div>

ok thanks that does work.

On Thu, Jun 12, 2008 at 12:05 PM, Curt H. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
