# Problems with gems

**URL:** <https://www.ruby-forum.com/t/problems-with-gems/156652>\
**Category:** IronRuby\
**Created:** [December 31, 2008, 12:43pm UTC](https://www.ruby-forum.com/t/problems-with-gems/156652 "2008-12-31T12:43:20Z")\
**Posts on this page:** 2\
**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:** [December 31, 2008, 12:43pm UTC](https://www.ruby-forum.com/t/problems-with-gems/156652/1 "2008-12-31T12:43:20Z")

</div>

Hi

I tried to install the rails gem using igem. Is that supposed to work?

Â» igem install rails  
ERROR: Error installing rails:  
attempt to install file into  
“test/fixtures/test\_mailer/implicitly\_multipart\_example.text.html.erb~”  
under  
ools/ironruby/merlin/External/languages/ruby/ruby-1.8.6/lib/ironruby/gems/1.8/gems/actionmailer-2.2.2"

I then tried to install them one by one with --ignore-dependencies

Â» igem install --ignore-dependencies --verbose activesupport-2.2.2.gem  
Installing gem actionmailer-2.2.2  
Using local gem  
C:/tools/ironruby/merlin/main/Languages/Ruby/libs/…/…/…/…/External/languages/ruby/ruby-1.8.6//  
onruby/gems/1.8/cache/actionmailer-2.2.2.gem  
ERROR: While executing gem … (NoMethodError)  
undefined method `include?’ for nil:NilClass

When I copied the gem files, cache and specifications over from MRI they  
list properly but when I try to generate an application skeleton it  
seems  
like something is wrong in the way it handles the paths.

Â» irails test\_irails  
c:\tools\ironruby\merlin\main\Languages\Ruby\Libraries.LCA\_RESTRICTED\Builtins\KernelOps.cs:390:in  
`require': no such fi le to load -- C:/tools/ironruby/merlin/External/languages/ruby/ruby-1.8.6/lib/ironruby/gems/1.8/gems/-2.2.2/bin/../lib/r uby_version_check (LoadError) from custom_require.rb:26:in`require’  
from :0  
from  
c:\tools\ironruby\merlin\main\Languages\Ruby\Libraries.LCA\_RESTRICTED\Builtins\KernelOps.cs:374:in  
`load’  
from :0

I had a similar thing happen to me when I tried to install rake but then  
it  
created a folder -0.8.3 instead of rake-0.8.3 after some tinkering i did  
get  
rake working but rails doesn’t seem to be really happy atm.

---

<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:** [December 31, 2008, 5:39pm UTC](https://www.ruby-forum.com/t/problems-with-gems/156652/2 "2008-12-31T17:39:05Z")

</div>

Yes, this is supposed to work â€“ at least when using the MSâ„¢ CLR â˜º. I  
used both rake and sinatra as test cases when I was eliminating  
obstacles to making â€œigem installâ€ work. I wonder if the problem here  
might be that the path construction temporarily resulted in something  
greater than the permissible path length â€“ in particular, the  
â€œ…/…/…/…â€ may need to be resolved before we send it to a .NET API.  
Also, the paths on our internal sources still look somewhat different  
than those we push out.

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, December 31, 2008 3:43 AM  
To: removed\_email\_address@domain.invalid  
Subject: [Ironruby-core] problems with gems

Hi

I tried to install the rails gem using igem. Is that supposed to work?

Â» igem install rails  
ERROR: Error installing rails:  
attempt to install file into  
“test/fixtures/test\_mailer/implicitly\_multipart\_example.text.html.erb~”  
under  
ools/ironruby/merlin/External/languages/ruby/ruby-1.8.6/lib/ironruby/gems/1.8/gems/actionmailer-2.2.2"

I then tried to install them one by one with --ignore-dependencies

Â» igem install --ignore-dependencies --verbose activesupport-2.2.2.gem  
Installing gem actionmailer-2.2.2  
Using local gem  
C:/tools/ironruby/merlin/main/Languages/Ruby/libs/…/…/…/…/External/languages/ruby/ruby-1.8.6//  
onruby/gems/1.8/cache/actionmailer-2.2.2.gem  
ERROR: While executing gem … (NoMethodError)  
undefined method `include?’ for nil:NilClass

When I copied the gem files, cache and specifications over from MRI they  
list properly but when I try to generate an application skeleton it  
seems like something is wrong in the way it handles the paths.

Â» irails test\_irails  
c:\tools\ironruby\merlin\main\Languages\Ruby\Libraries.LCA\_RESTRICTED\Builtins\KernelOps.cs:390:in  
`require': no such fi le to load -- C:/tools/ironruby/merlin/External/languages/ruby/ruby-1.8.6/lib/ironruby/gems/1.8/gems/-2.2.2/bin/../lib/r uby_version_check (LoadError) from custom_require.rb:26:in `require’  
from :0  
from  
c:\tools\ironruby\merlin\main\Languages\Ruby\Libraries.LCA\_RESTRICTED\Builtins\KernelOps.cs:374:in  
`load’  
from :0

I had a similar thing happen to me when I tried to install rake but then  
it created a folder -0.8.3 instead of rake-0.8.3 after some tinkering i  
did get rake working but rails doesn’t seem to be really happy atm.
