# Incorrect library paths in App.Config

**URL:** <https://www.ruby-forum.com/t/incorrect-library-paths-in-app-config/160266>\
**Category:** IronRuby\
**Created:** [February 13, 2009, 3:29pm UTC](https://www.ruby-forum.com/t/incorrect-library-paths-in-app-config/160266 "2009-02-13T15:29:15Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![cephas](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/e0b2c6/32.png) [@cephas](https://www.ruby-forum.com/u/cephas)\
**Post date:** [February 13, 2009, 3:29pm UTC](https://www.ruby-forum.com/t/incorrect-library-paths-in-app-config/160266/1 "2009-02-13T15:29:15Z")

</div>

Hi,

I just noticed that the App.Config that is generated in an in Unsigned  
build  
of IronRuby (i.e. rake compile) contains incorrect library paths. When  
I  
tried to run rake mspec:core it failed to require ‘fileutils’.

Currently (Git commit 6855c7c41ee2…) has the following in  
Merlin/Main/Config/Unsigned/App.Config:

But the repository has the following folder layout:

Merlin/External/Languages/Ruby/redist-libs/ruby/1.8

And

Merlin/External/Languages/Ruby/redist-libs/ruby/site\_ruby

So therefore this file should look like this:

I thought I must be wrong since this should have been picked up already  
but  
then I guess that most people who are building IR at the moment are  
either  
inside MSFT (and using signed builds) or running on Mono and having to  
rewrite this file anyway.

Am I right here?

Pete

---

<div class="post-metadata">

**Author:** ![cephas](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/e0b2c6/32.png) [@cephas](https://www.ruby-forum.com/u/cephas)\
**Post date:** [February 13, 2009, 5:13pm UTC](https://www.ruby-forum.com/t/incorrect-library-paths-in-app-config/160266/2 "2009-02-13T17:13:57Z")

</div>

I think so… I actually have an app.config.mine that I use to keep the  
paths  
correct.

On Fri, Feb 13, 2009 at 3:13 PM, Pete Bacon D. \<

---

<div class="post-metadata">

**Author:** ![cephas](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/e0b2c6/32.png) [@cephas](https://www.ruby-forum.com/u/cephas)\
**Post date:** [February 13, 2009, 5:58pm UTC](https://www.ruby-forum.com/t/incorrect-library-paths-in-app-config/160266/3 "2009-02-13T17:58:07Z")

</div>

Yep, you’re right. Will fix App.config by the next GIT push.  
BTW: What changes are needed for Mono?

Tomas

From: removed\_email\_address@domain.invalid  
[[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)] On Behalf Of Pete Bacon  
Darwin  
Sent: Friday, February 13, 2009 6:13 AM  
To: removed\_email\_address@domain.invalid  
Subject: [Ironruby-core] Incorrect library paths in App.Config

Hi,

I just noticed that the App.Config that is generated in an in Unsigned  
build of IronRuby (i.e. rake compile) contains incorrect library paths.  
When I tried to run rake mspec:core it failed to require ‘fileutils’.

Currently (Git commit 6855c7c41ee2…) has the following in  
Merlin/Main/Config/Unsigned/App.Config:

But the repository has the following folder layout:

Merlin/External/Languages/Ruby/redist-libs/ruby/1.8  
And  
Merlin/External/Languages/Ruby/redist-libs/ruby/site\_ruby

So therefore this file should look like this:

I thought I must be wrong since this should have been picked up already  
but then I guess that most people who are building IR at the moment are  
either inside MSFT (and using signed builds) or running on Mono and  
having to rewrite this file anyway.

Am I right here?

Pete

---

<div class="post-metadata">

**Author:** ![cephas](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/e0b2c6/32.png) [@cephas](https://www.ruby-forum.com/u/cephas)\
**Post date:** [February 13, 2009, 8:09pm UTC](https://www.ruby-forum.com/t/incorrect-library-paths-in-app-config/160266/4 "2009-02-13T20:09:44Z")

</div>

Actually I guess that since all the paths are relative, the shouldn’t  
need  
to be changed. I think I was assuming that mono users would  
automatically  
create their own App.config anyway, as a matter of course.

Pete

From: removed\_email\_address@domain.invalid  
[[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)] On Behalf Of Tomas M.  
Sent: Friday,13 February 13, 2009 16:57  
To: removed\_email\_address@domain.invalid  
Subject: Re: [Ironruby-core] Incorrect library paths in App.Config

Yep, you’re right. Will fix App.config by the next GIT push.

BTW: What changes are needed for Mono?

Tomas

From: removed\_email\_address@domain.invalid  
[[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)] On Behalf Of Pete Bacon  
Darwin  
Sent: Friday, February 13, 2009 6:13 AM  
To: removed\_email\_address@domain.invalid  
Subject: [Ironruby-core] Incorrect library paths in App.Config

Hi,

I just noticed that the App.Config that is generated in an in Unsigned  
build  
of IronRuby (i.e. rake compile) contains incorrect library paths. When  
I  
tried to run rake mspec:core it failed to require ‘fileutils’.

Currently (Git commit 6855c7c41ee2…) has the following in  
Merlin/Main/Config/Unsigned/App.Config:

But the repository has the following folder layout:

Merlin/External/Languages/Ruby/redist-libs/ruby/1.8

And

Merlin/External/Languages/Ruby/redist-libs/ruby/site\_ruby

So therefore this file should look like this:

I thought I must be wrong since this should have been picked up already  
but  
then I guess that most people who are building IR at the moment are  
either  
inside MSFT (and using signed builds) or running on Mono and having to  
rewrite this file anyway.

Am I right here?

Pete

---

<div class="post-metadata">

**Author:** ![cephas](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/e0b2c6/32.png) [@cephas](https://www.ruby-forum.com/u/cephas)\
**Post date:** [February 13, 2009, 8:14pm UTC](https://www.ruby-forum.com/t/incorrect-library-paths-in-app-config/160266/5 "2009-02-13T20:14:27Z")

</div>

This is from my app.config.mono

On Fri, Feb 13, 2009 at 5:56 PM, Tomas M. \<

---

<div class="post-metadata">

**Author:** ![cephas](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/e0b2c6/32.png) [@cephas](https://www.ruby-forum.com/u/cephas)\
**Post date:** [February 15, 2009, 3:15pm UTC](https://www.ruby-forum.com/t/incorrect-library-paths-in-app-config/160266/6 "2009-02-15T15:15:30Z")

</div>

Actually the offending bit is actually hard coded into context.rb!!

def transform\_config\_file(configuration, source\_path,  
target\_build\_path)

```
# signing is on for IronRuby in Merlin, off for SVN and Binary

layout = {'Merlin' => { :signing => false, :LibraryPaths =>

```

‘…..\Languages\Ruby\libs;…....\External\Languages\Ruby\Ruby-1.8.6\lib\r  
uby\site\_ruby\1.8;…....\External\Languages\Ruby\Ruby-1.8.6\lib\ruby\site\_  
ruby;…....\External\Languages\Ruby\Ruby-1.8.6\lib\ruby\1.8’ },

```
          'Binary' => { :signing => true, :LibraryPaths =>

```

‘…\lib\IronRuby;…\lib\ruby\site\_ruby\1.8;…\lib\ruby\site\_ruby;…\lib\ruby  
\1.8’ } }

```
transform_config source_path, target_build_path,

```

layout[configuration][:LibraryPaths]

end

Pete

From: removed\_email\_address@domain.invalid  
[[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)] On Behalf Of Tomas M.  
Sent: Friday,13 February 13, 2009 16:57  
To: removed\_email\_address@domain.invalid  
Subject: Re: [Ironruby-core] Incorrect library paths in App.Config

Yep, you’re right. Will fix App.config by the next GIT push.

BTW: What changes are needed for Mono?

Tomas

From: removed\_email\_address@domain.invalid  
[[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)] On Behalf Of Pete Bacon  
Darwin  
Sent: Friday, February 13, 2009 6:13 AM  
To: removed\_email\_address@domain.invalid  
Subject: [Ironruby-core] Incorrect library paths in App.Config

Hi,

I just noticed that the App.Config that is generated in an in Unsigned  
build  
of IronRuby (i.e. rake compile) contains incorrect library paths. When  
I  
tried to run rake mspec:core it failed to require ‘fileutils’.

Currently (Git commit 6855c7c41ee2…) has the following in  
Merlin/Main/Config/Unsigned/App.Config:

But the repository has the following folder layout:

Merlin/External/Languages/Ruby/redist-libs/ruby/1.8

And

Merlin/External/Languages/Ruby/redist-libs/ruby/site\_ruby

So therefore this file should look like this:

I thought I must be wrong since this should have been picked up already  
but  
then I guess that most people who are building IR at the moment are  
either  
inside MSFT (and using signed builds) or running on Mono and having to  
rewrite this file anyway.

Am I right here?

Pete

---

<div class="post-metadata">

**Author:** ![cephas](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/e0b2c6/32.png) [@cephas](https://www.ruby-forum.com/u/cephas)\
**Post date:** [February 15, 2009, 4:37pm UTC](https://www.ruby-forum.com/t/incorrect-library-paths-in-app-config/160266/7 "2009-02-15T16:37:34Z")

</div>

Yes I also found that out… I added a new one there in my branch.  
MonoDist

On Sun, Feb 15, 2009 at 3:03 PM, Pete Bacon D. \<
