# Re: Seems like it is loading from the Ruby	libraries instead of IronRuby gems

**URL:** <https://www.ruby-forum.com/t/re-seems-like-it-is-loading-from-the-ruby-libraries-instead-of-ironruby-gems/176019>\
**Category:** IronRuby\
**Created:** [September 23, 2009, 6:39pm UTC](https://www.ruby-forum.com/t/re-seems-like-it-is-loading-from-the-ruby-libraries-instead-of-ironruby-gems/176019 "2009-09-23T18:39:38Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![raker\_t](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ecae2f/32.png) [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Post date:** [September 23, 2009, 6:39pm UTC](https://www.ruby-forum.com/t/re-seems-like-it-is-loading-from-the-ruby-libraries-instead-of-ironruby-gems/176019/1 "2009-09-23T18:39:38Z")

</div>

Can you start a new cmd process, run dev.bat, and then run “set” and  
paste that output?

Thanks  
JD

* * *

From: Mohammad A. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Sent: September 23, 2009 9:15 AM  
To: removed\_email\_address@domain.invalid [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Subject: Re: [Ironruby-core] Seems like it is loading from the Ruby  
libraries instead of IronRuby gems

I am running this from command line shell of windows (cmd.exe)

Thanks,  
Azam

On Wed, Sep 23, 2009 at 11:00 AM, John L. (TC)  
\<removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)\> wrote:

Are you running from a Powershell prompt? It seems so, because your  
output tells me that youâ€™re creating a sub-shell where the environment  
variables do get set, but then that sub-shell goes away.

To fix this youâ€™ll need a Powershell version of dev.bat. We have several  
floating around â€“ am sure folks can point you to the right one.

Thanks,

-John

From:  
removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
[[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)]  
On Behalf Of Mohammad A.  
Sent: Wednesday, September 23, 2009 8:58 AM

To: removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Subject: Re: [Ironruby-core] Seems like it is loading from the Ruby  
libraries instead of IronRuby gems

I have ran dev.bat several times but it does not do anything. No entries  
were made in the environment variables so I had to manually go and do  
the entries.

Also, as soon as I uninstall the MRI spec it all started working fine!

On Tue, Sep 22, 2009 at 9:21 PM, Jimmy S.  
\<removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)\>  
wrote:

> > > Seems like when spec gem is installed on IronRuby and Ruby then IronRuby looks in the Ruby folder for the gem.

No, that’s not a correct assumption. 🙂 RubyGems will look for gems in a  
path relative to itself if the GEM\_PATH environment variable isn’t set.  
If it is set (which dev.bat sets it), then RubyGems will always look on  
that path, regardless of what Ruby implementation you use.

Are you running IronRuby from a dev.bat prompt, or some other way? If  
that’s not the behavior you want, make sure to unset that variable at  
the command line (set GEM\_PATH=) or from your Ruby scripts themselves  
(ENV[‘GEM\_PATH’] = nil), but the latter is preferred.

~js

* * *

From:  
removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
[removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)]  
on behalf of Mohammad A.  
[removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)]  
Sent: Tuesday, September 22, 2009 9:08 PM

To: removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

Subject: Re: [Ironruby-core] Seems like it is loading from the Ruby  
libraries instead of IronRuby gems

I uninstall Ruby spec gem and it worked fine. Seems like when spec gem  
is installed on IronRuby and Ruby then IronRuby looks in the Ruby folder  
for the gem.

On Tue, Sep 22, 2009 at 8:47 PM, Jim D.  
\<removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)\> wrote:

More info please 🙂

From:  
removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
[[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)]  
On Behalf Of Mohammad A.  
Sent: Tuesday, September 22, 2009 2:33 PM  
To: removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Subject: [Ironruby-core] Seems like it is loading from the Ruby  
libraries instead of IronRuby gems

–  
Mohammad A.  
MVP (Microsoft Valuable Professional)  
[www.highoncoding.com](http://www.highoncoding.com)[http://www.highoncoding.com](http://www.highoncoding.com)  
[www.azamsharp.com](http://www.azamsharp.com)[http://www.azamsharp.com](http://www.azamsharp.com)

* * *

Ironruby-core mailing list  
removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
[http://rubyforge.org/mailman/listinfo/ironruby-core](http://rubyforge.org/mailman/listinfo/ironruby-core)

–  
Mohammad A.  
MVP (Microsoft Valuable Professional)  
[www.highoncoding.com](http://www.highoncoding.com)[http://www.highoncoding.com](http://www.highoncoding.com)  
[www.azamsharp.com](http://www.azamsharp.com)[http://www.azamsharp.com](http://www.azamsharp.com)

* * *

Ironruby-core mailing list  
removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
[http://rubyforge.org/mailman/listinfo/ironruby-core](http://rubyforge.org/mailman/listinfo/ironruby-core)

–  
Mohammad A.  
MVP (Microsoft Valuable Professional)  
[www.highoncoding.com](http://www.highoncoding.com)[http://www.highoncoding.com](http://www.highoncoding.com)  
[www.azamsharp.com](http://www.azamsharp.com)[http://www.azamsharp.com](http://www.azamsharp.com)

* * *

Ironruby-core mailing list  
removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
[http://rubyforge.org/mailman/listinfo/ironruby-core](http://rubyforge.org/mailman/listinfo/ironruby-core)

–  
Mohammad A.  
MVP (Microsoft Valuable Professional)  
[www.highoncoding.com](http://www.highoncoding.com)[http://www.highoncoding.com](http://www.highoncoding.com)  
[www.azamsharp.com](http://www.azamsharp.com)[http://www.azamsharp.com](http://www.azamsharp.com)

---

<div class="post-metadata">

**Author:** ![raker\_t](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ecae2f/32.png) [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Post date:** [September 23, 2009, 6:41pm UTC](https://www.ruby-forum.com/t/re-seems-like-it-is-loading-from-the-ruby-libraries-instead-of-ironruby-gems/176019/2 "2009-09-23T18:41:59Z")

</div>

Here is the output:  
C:\DevTools\IronRuby\ironruby\Merlin\Main\Languages\Ruby\Scripts\>set  
ALLUSERSPROFILE=C:\ProgramData  
APPDATA=C:\Users\azamsharp\AppData\Roaming  
CommonProgramFiles=C:\Program Files\Common Files  
COMPUTERNAME=AZAMSHARP-PC  
ComSpec=C:\Windows\system32\cmd.exe  
DevEnvDir=c:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE  
FP\_NO\_HOST\_CHECK=NO  
Framework35Version=v3.5  
FrameworkDir=c:\Windows\Microsoft.NET\Framework  
FrameworkVersion=v2.0.50727  
GEM\_PATH=C:\DevTools\IronRuby\ironruby\Merlin\Main..\External.LCA\_RESTRICTED\La  
nguages\Ruby\ruby-1.8.6p368\lib\ruby\gems\1.8  
HOMEDRIVE=C:  
HOMEPATH=\Users\azamsharp  
HOME\_FOR\_MSPECRC=C:\Users\azamsharp  
INCLUDE=c:\Program Files\Microsoft Visual Studio  
9.0\VC\ATLMFC\INCLUDE;c:\Progra  
m Files\Microsoft Visual Studio 9.0\VC\INCLUDE;C:\Program  
Files\Microsoft  
SDKs  
Windows\v6.0A\include;  
LIB=c:\Program Files\Microsoft Visual Studio  
9.0\VC\ATLMFC\LIB;c:\Program  
Files  
Microsoft Visual Studio 9.0\VC\LIB;C:\Program Files\Microsoft  
SDKs\Windows\v6.0  
A\lib;  
LIBPATH=c:\Windows\Microsoft.NET\Framework\v3.5;c:\Windows\Microsoft.NET\Framewo  
rk\v2.0.50727;c:\Program Files\Microsoft Visual Studio  
9.0\VC\ATLMFC\LIB;c:\Prog  
ram Files\Microsoft Visual Studio 9.0\VC\LIB;  
LOCALAPPDATA=C:\Users\azamsharp\AppData\Local  
LOGONSERVER=\AZAMSHARP-PC  
MERLIN\_ROOT=C:\DevTools\IronRuby\ironruby\Merlin\Main  
NUMBER\_OF\_PROCESSORS=2  
OS=Windows\_NT  
Path=c:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE;c:\Program  
Files\M  
icrosoft Visual Studio 9.0\VC\BIN;c:\Program Files\Microsoft Visual  
Studio  
9.0\C  
ommon7\Tools;c:\Windows\Microsoft.NET\Framework\v3.5;c:\Windows\Microsoft.NET\Fr  
amework\v2.0.50727;c:\Program Files\Microsoft Visual Studio  
9.0\VC\VCPackages;C:  
\Program Files\Microsoft  
SDKs\Windows\v6.0A\bin;c:\ruby\bin;C:\Windows\system32  
;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0  
;c:\Program Files\Microsoft SQL Server\90\Tools\binn;C:\Program  
Files\TortoiseS  
VN\bin;C:\DevTools\IronRuby\ironruby\Merlin\Main\bin\Debug;C:\DevTools\IronRuby  
ironruby\Merlin\Main\Languages\lib\ironruby\gems\1.8\bin;C:\Windows\Microsoft.NE  
T\Framework\v3.5;C:\DevTools\IronRuby\ironruby\Merlin\Main\Languages\Ruby\Script  
s;C:\DevTools\IronRuby\ironruby\Merlin\Main\Languages\Ruby\Scripts\bin;;C:\DevTo  
ols\IronRuby\ironruby\Merlin\Main..\External.LCA\_RESTRICTED\Languages\IronRuby  
mspec\mspec\bin  
[PATHEXT=.COM](http://PATHEXT=.COM);.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.RB;.RBW  
PROCESSOR\_ARCHITECTURE=x86  
PROCESSOR\_IDENTIFIER=x86 Family 6 Model 15 Stepping 13, GenuineIntel  
PROCESSOR\_LEVEL=6  
PROCESSOR\_REVISION=0f0d  
ProgramData=C:\ProgramData  
ProgramFiles=C:\Program Files  
PROGRAM\_FILES\_32=C:\Program Files  
PROGRAM\_FILES\_64=C:\Program Files  
PROMPT=$P$G  
PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules  
PUBLIC=C:\Users\Public  
RUBY18\_EXE=ruby.exe  
RUBY19\_EXE=c:\ruby19\bin\ruby.exe  
RUBY\_SCRIPTS=C:\DevTools\IronRuby\ironruby\Merlin\Main\Languages\Ruby\Scripts  
SESSIONNAME=Console  
SystemDrive=C:  
SystemRoot=C:\Windows  
TEMP=C:\Users\AZAMSH~1\AppData\Local\Temp  
TMP=C:\Users\AZAMSH~1\AppData\Local\Temp  
USERDOMAIN=azamsharp-PC  
USERNAME=azamsharp  
USERPROFILE=C:\Users\azamsharp  
VCINSTALLDIR=c:\Program Files\Microsoft Visual Studio 9.0\VC  
VS90COMNTOOLS=c:\Program Files\Microsoft Visual Studio  
9.0\Common7\Tools  
VSINSTALLDIR=c:\Program Files\Microsoft Visual Studio 9.0  
windir=C:\Windows  
WindowsSdkDir=C:\Program Files\Microsoft SDKs\Windows\v6.0A\

C:\DevTools\IronRuby\ironruby\Merlin\Main\Languages\Ruby\Scripts\>

---

<div class="post-metadata">

**Author:** ![raker\_t](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ecae2f/32.png) [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Post date:** [September 23, 2009, 6:46pm UTC](https://www.ruby-forum.com/t/re-seems-like-it-is-loading-from-the-ruby-libraries-instead-of-ironruby-gems/176019/3 "2009-09-23T18:46:05Z")

</div>

After running the dev.bat and set my ICucumber is failing:  
C:\Projects\ILoveIronRuby\ILoveIronRuby\testing\>icucumber features  
–no-color  
no such file to load – spec/expectations  
Failed to load features/step\_definitons/calculator\_steps.rb (LoadError)  
C:\DevTools\IronRuby\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA\_RESTRICTE  
D\Builtins\KernelOps.cs:1341:in `require' custom_require.rb:30:in`require’  
polyglot.rb:69:in `require' ./features/step_definitons/calculator_steps.rb:3 C:\DevTools\IronRuby\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTE D\Builtins\KernelOps.cs:1341:in`require’  
c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.101/bin/…/lib/cucumber/rb\_support/r  
b\_language.rb:101:in `load_code_file' custom_require.rb:30:in`require’  
c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.101/bin/…/lib/cucumber/rb\_support/r  
b\_language.rb:46:in `step_definitions_for' polyglot.rb:69:in`require’  
c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.101/bin/…/lib/cucumber/step\_mother.  
rb:118:in `load_code_file' c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.101/bin/../lib/cucumber/step_mother. rb:110:in`load\_code\_files’  
c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.101/bin/…/lib/cucumber/step\_mother.  
rb:109:in `load_code_files' c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.101/bin/../lib/cucumber/cli/main.rb: 48:in`execute!’  
c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.101/bin/…/lib/cucumber/cli/main.rb:  
23:in `execute' C:\DevTools\IronRuby\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTE D\Extensions\IListOps.cs:810:in`each’  
c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.101/bin/cucumber:9  
c:/ruby/bin/cucumber:19  
C:\DevTools\IronRuby\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA\_RESTRICTE  
D\Builtins\KernelOps.cs:1326:in `load’

C:\Projects\ILoveIronRuby\ILoveIronRuby\testing\>

---

<div class="post-metadata">

**Author:** ![raker\_t](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ecae2f/32.png) [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Post date:** [September 23, 2009, 7:00pm UTC](https://www.ruby-forum.com/t/re-seems-like-it-is-loading-from-the-ruby-libraries-instead-of-ironruby-gems/176019/4 "2009-09-23T19:00:08Z")

</div>

## “technically” both of them need to be in same console session for it to work as the changes you make are scoped to the console session. 😉 to make them persistent across console sessions use system properties - environment variables

Met vriendelijke groeten - Best regards - Salutations  
Ivan Porto C.  
Blog: [http://flanders.co.nz](http://flanders.co.nz)  
Twitter: [http://twitter.com/casualjim](http://twitter.com/casualjim)  
Author of IronRuby in Action ([http://manning.com/carrero](http://manning.com/carrero))

---

<div class="post-metadata">

**Author:** ![raker\_t](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ecae2f/32.png) [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Post date:** [September 23, 2009, 6:57pm UTC](https://www.ruby-forum.com/t/re-seems-like-it-is-loading-from-the-ruby-libraries-instead-of-ironruby-gems/176019/5 "2009-09-23T18:57:12Z")

</div>

I forgot to exit the dev.bat which is different console.  
I restarted the cmd again and Cucumber works fine.

---

<div class="post-metadata">

**Author:** ![raker\_t](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ecae2f/32.png) [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Post date:** [September 23, 2009, 8:01pm UTC](https://www.ruby-forum.com/t/re-seems-like-it-is-loading-from-the-ruby-libraries-instead-of-ironruby-gems/176019/6 "2009-09-23T20:01:37Z")

</div>

Mohammad,

Can you try running a dev.bat console (run cmd, then run dev.bat) then  
install cucumber and rspec from there, and then try running your tests?  
I have a feeling dev.bat has a different GEM\_PATH than your normal ruby  
install.

JD

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, September 23, 2009 9:59 AM  
To: removed\_email\_address@domain.invalid  
Subject: Re: [Ironruby-core] Seems like it is loading from the Ruby  
libraries instead of IronRuby gems

## “technically” both of them need to be in same console session for it to work as the changes you make are scoped to the console session. 😉 to make them persistent across console sessions use system properties - environment variables

Met vriendelijke groeten - Best regards - Salutations  
Ivan Porto C.  
Blog: [http://flanders.co.nz](http://flanders.co.nz)  
Twitter: [http://twitter.com/casualjim](http://twitter.com/casualjim)  
Author of IronRuby in Action ([http://manning.com/carrero](http://manning.com/carrero))

On Wed, Sep 23, 2009 at 6:51 PM, Mohammad A.  
\<removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)\> wrote:  
I forgot to exit the dev.bat which is different console.

I restarted the cmd again and Cucumber works fine.

On Wed, Sep 23, 2009 at 11:44 AM, Mohammad A.  
\<removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)\> wrote:  
After running the dev.bat and set my ICucumber is failing:

C:\Projects\ILoveIronRuby\ILoveIronRuby\testing\>icucumber features  
–no-color  
no such file to load – spec/expectations  
Failed to load features/step\_definitons/calculator\_steps.rb (LoadError)  
C:\DevTools\IronRuby\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA\_RESTRICTE  
D\Builtins\KernelOps.cs:1341:in `require' custom_require.rb:30:in `require’  
polyglot.rb:69:in `require' ./features/step_definitons/calculator_steps.rb:3 C:\DevTools\IronRuby\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTE D\Builtins\KernelOps.cs:1341:in `require’  
c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.101/bin/…/lib/cucumber/rb\_support/r  
b\_language.rb:101:in `load_code_file' custom_require.rb:30:in `require’  
c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.101/bin/…/lib/cucumber/rb\_support/r  
b\_language.rb:46:in `step_definitions_for' polyglot.rb:69:in `require’  
c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.101/bin/…/lib/cucumber/step\_mother.  
rb:118:in `load_code_file' c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.101/bin/../lib/cucumber/step_mother. rb:110:in `load\_code\_files’  
c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.101/bin/…/lib/cucumber/step\_mother.  
rb:109:in `load_code_files' c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.101/bin/../lib/cucumber/cli/main.rb: 48:in `execute!’  
c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.101/bin/…/lib/cucumber/cli/main.rb:  
23:in `execute' C:\DevTools\IronRuby\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTE D\Extensions\IListOps.cs:810:in `each’  
c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.101/bin/cucumber:9  
c:/ruby/bin/cucumber:19  
C:\DevTools\IronRuby\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA\_RESTRICTE  
D\Builtins\KernelOps.cs:1326:in `load’

C:\Projects\ILoveIronRuby\ILoveIronRuby\testing\>

On Wed, Sep 23, 2009 at 9:38 AM, Jim D.  
\<removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)\> wrote:  
Can you start a new cmd process, run dev.bat, and then run “set” and  
paste that output?

Thanks  
JD

* * *

From: Mohammad A. \<removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)\>  
Sent: September 23, 2009 9:15 AM  
To: removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
\<removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)\>

Subject: Re: [Ironruby-core] Seems like it is loading from the Ruby  
libraries instead of IronRuby gems  
I am running this from command line shell of windows (cmd.exe)

Thanks,  
Azam  
On Wed, Sep 23, 2009 at 11:00 AM, John L. (TC)  
\<removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)\> wrote:

Are you running from a Powershell prompt? It seems so, because your  
output tells me that youâ€™re creating a sub-shell where the environment  
variables do get set, but then that sub-shell goes away.

To fix this youâ€™ll need a Powershell version of dev.bat. We have several  
floating around â€“ am sure folks can point you to the right one.

Thanks,

-John

From:  
removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
[[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)]  
On Behalf Of Mohammad A.  
Sent: Wednesday, September 23, 2009 8:58 AM

To: removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Subject: Re: [Ironruby-core] Seems like it is loading from the Ruby  
libraries instead of IronRuby gems

I have ran dev.bat several times but it does not do anything. No entries  
were made in the environment variables so I had to manually go and do  
the entries.

Also, as soon as I uninstall the MRI spec it all started working fine!

On Tue, Sep 22, 2009 at 9:21 PM, Jimmy S.  
\<removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)\>  
wrote:

> > > Seems like when spec gem is installed on IronRuby and Ruby then IronRuby looks in the Ruby folder for the gem.

No, that’s not a correct assumption. 🙂 RubyGems will look for gems in a  
path relative to itself if the GEM\_PATH environment variable isn’t set.  
If it is set (which dev.bat sets it), then RubyGems will always look on  
that path, regardless of what Ruby implementation you use.

Are you running IronRuby from a dev.bat prompt, or some other way? If  
that’s not the behavior you want, make sure to unset that variable at  
the command line (set GEM\_PATH=) or from your Ruby scripts themselves  
(ENV[‘GEM\_PATH’] = nil), but the latter is preferred.

~js

* * *

From:  
removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
[removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)]  
on behalf of Mohammad A.  
[removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)]  
Sent: Tuesday, September 22, 2009 9:08 PM

To: removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

Subject: Re: [Ironruby-core] Seems like it is loading from the Ruby  
libraries instead of IronRuby gems

I uninstall Ruby spec gem and it worked fine. Seems like when spec gem  
is installed on IronRuby and Ruby then IronRuby looks in the Ruby folder  
for the gem.

On Tue, Sep 22, 2009 at 8:47 PM, Jim D.  
\<removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)\> wrote:

More info please â˜º

From:  
removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
[[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)]  
On Behalf Of Mohammad A.  
Sent: Tuesday, September 22, 2009 2:33 PM  
To: removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Subject: [Ironruby-core] Seems like it is loading from the Ruby  
libraries instead of IronRuby gems

–  
Mohammad A.  
MVP (Microsoft Valuable Professional)  
[www.highoncoding.com](http://www.highoncoding.com)[http://www.highoncoding.com](http://www.highoncoding.com)  
[www.azamsharp.com](http://www.azamsharp.com)[http://www.azamsharp.com](http://www.azamsharp.com)

* * *

Ironruby-core mailing list  
removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
[http://rubyforge.org/mailman/listinfo/ironruby-core](http://rubyforge.org/mailman/listinfo/ironruby-core)

–  
Mohammad A.  
MVP (Microsoft Valuable Professional)  
[www.highoncoding.com](http://www.highoncoding.com)[http://www.highoncoding.com](http://www.highoncoding.com)  
[www.azamsharp.com](http://www.azamsharp.com)[http://www.azamsharp.com](http://www.azamsharp.com)

* * *

Ironruby-core mailing list  
removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
[http://rubyforge.org/mailman/listinfo/ironruby-core](http://rubyforge.org/mailman/listinfo/ironruby-core)

–  
Mohammad A.  
MVP (Microsoft Valuable Professional)  
[www.highoncoding.com](http://www.highoncoding.com)[http://www.highoncoding.com](http://www.highoncoding.com)  
[www.azamsharp.com](http://www.azamsharp.com)[http://www.azamsharp.com](http://www.azamsharp.com)

* * *

Ironruby-core mailing list  
removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
[http://rubyforge.org/mailman/listinfo/ironruby-core](http://rubyforge.org/mailman/listinfo/ironruby-core)

–  
Mohammad A.  
MVP (Microsoft Valuable Professional)  
[www.highoncoding.com](http://www.highoncoding.com)[http://www.highoncoding.com](http://www.highoncoding.com)  
[www.azamsharp.com](http://www.azamsharp.com)[http://www.azamsharp.com](http://www.azamsharp.com)

* * *

Ironruby-core mailing list  
removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
[http://rubyforge.org/mailman/listinfo/ironruby-core](http://rubyforge.org/mailman/listinfo/ironruby-core)

–  
Mohammad A.  
MVP (Microsoft Valuable Professional)  
[www.highoncoding.com](http://www.highoncoding.com)[http://www.highoncoding.com](http://www.highoncoding.com)  
[www.azamsharp.com](http://www.azamsharp.com)[http://www.azamsharp.com](http://www.azamsharp.com)

–  
Mohammad A.  
MVP (Microsoft Valuable Professional)  
[www.highoncoding.com](http://www.highoncoding.com)[http://www.highoncoding.com](http://www.highoncoding.com)  
[www.azamsharp.com](http://www.azamsharp.com)[http://www.azamsharp.com](http://www.azamsharp.com)

* * *

Ironruby-core mailing list  
removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
[http://rubyforge.org/mailman/listinfo/ironruby-core](http://rubyforge.org/mailman/listinfo/ironruby-core)
