# Zlib::Inflate error when installing gems

**URL:** <https://www.ruby-forum.com/t/zlib-inflate-error-when-installing-gems/158395>\
**Category:** IronRuby\
**Created:** [January 22, 2009, 9:43pm UTC](https://www.ruby-forum.com/t/zlib-inflate-error-when-installing-gems/158395 "2009-01-22T21:43:02Z")\
**Posts on this page:** 4\
**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:** [January 22, 2009, 9:43pm UTC](https://www.ruby-forum.com/t/zlib-inflate-error-when-installing-gems/158395/1 "2009-01-22T21:43:02Z")

</div>

I think you are aware of the error… but I’d like to mention on the list  
that you can get around it by first installing the gem in MRI that seems  
to  
make it go away.

Â» igem install bacon  
ERROR: While executing gem … (TypeError)  
allocator undefined for Zlib::Inflate

- C:\Users\Ivan Porto C.  
Â» gem install bacon  
Successfully installed bacon-1.1.0  
1 gem installed  
Installing ri documentation for bacon-1.1.0…  
Installing RDoc documentation for bacon-1.1.0…
- C:\Users\Ivan Porto C.  
Â» igem install bacon  
Successfully installed bacon-1.1.0  
1 gem installed  
Installing ri documentation for bacon-1.1.0…  
Installing RDoc documentation for bacon-1.1.0…  
ERROR: While executing gem … (TypeError)  
can’t convert Array into String

To install the rails gem there is only one issue remaining and that has  
to  
do with a file in the actionmailer test fixtures. The name of the file  
ends  
in a ~ and apparently ironruby doesn’t like that.

---

<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:** [January 22, 2009, 10:33pm UTC](https://www.ruby-forum.com/t/zlib-inflate-error-when-installing-gems/158395/2 "2009-01-22T22:33:06Z")

</div>

/USUALLY/ filenames ending in ~ are backup files… are you sure the file  
causes issues is a critical file?

---

<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:** [January 22, 2009, 11:25pm UTC](https://www.ruby-forum.com/t/zlib-inflate-error-when-installing-gems/158395/3 "2009-01-22T23:25:23Z")

</div>

The file may be an accidental checkin, but the bug is real. I should be  
able to handle a file with ~ in the filename.

JD

From: removed\_email\_address@domain.invalid  
[[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)] On Behalf Of Michael  
Letterle  
Sent: Thursday, January 22, 2009 1:32 PM  
To: removed\_email\_address@domain.invalid  
Subject: Re: [Ironruby-core] Zlib::Inflate error when installing gems

/USUALLY/ filenames ending in ~ are backup files… are you sure the file  
causes issues is a critical file?  
On Thu, Jan 22, 2009 at 3:19 PM, Ivan Porto C.  
\<removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)\> wrote:  
I think you are aware of the error… but I’d like to mention on the list  
that you can get around it by first installing the gem in MRI that seems  
to make it go away.

> igem install bacon  
> ERROR: While executing gem … (TypeError)  
> allocator undefined for Zlib::Inflate

- C:\Users\Ivan Porto C.

> gem install bacon  
> Successfully installed bacon-1.1.0  
> 1 gem installed  
> Installing ri documentation for bacon-1.1.0…  
> Installing RDoc documentation for bacon-1.1.0…

- C:\Users\Ivan Porto C.

> igem install bacon  
> Successfully installed bacon-1.1.0  
> 1 gem installed  
> Installing ri documentation for bacon-1.1.0…  
> Installing RDoc documentation for bacon-1.1.0…  
> ERROR: While executing gem … (TypeError)  
> can’t convert Array into String

To install the rails gem there is only one issue remaining and that has  
to do with a file in the actionmailer test fixtures. The name of the  
file ends in a ~ and apparently ironruby doesn’t like that.

---

<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:** [January 22, 2009, 11:44pm UTC](https://www.ruby-forum.com/t/zlib-inflate-error-when-installing-gems/158395/4 "2009-01-22T23:44:45Z")

</div>

Please open a bug in rubyforge against me, I’ll take a look at it.

From: removed\_email\_address@domain.invalid  
[[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)] On Behalf Of Jim D.  
Sent: Thursday, January 22, 2009 1:59 PM  
To: removed\_email\_address@domain.invalid  
Subject: Re: [Ironruby-core] Zlib::Inflate error when installing gems

The file may be an accidental checkin, but the bug is real. I should be  
able to handle a file with ~ in the filename.

JD

From: removed\_email\_address@domain.invalid  
[[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)] On Behalf Of Michael  
Letterle  
Sent: Thursday, January 22, 2009 1:32 PM  
To: removed\_email\_address@domain.invalid  
Subject: Re: [Ironruby-core] Zlib::Inflate error when installing gems

/USUALLY/ filenames ending in ~ are backup files… are you sure the file  
causes issues is a critical file?  
On Thu, Jan 22, 2009 at 3:19 PM, Ivan Porto C.  
\<removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)\> wrote:  
I think you are aware of the error… but I’d like to mention on the list  
that you can get around it by first installing the gem in MRI that seems  
to make it go away.

> igem install bacon  
> ERROR: While executing gem … (TypeError)  
> allocator undefined for Zlib::Inflate

- C:\Users\Ivan Porto C.

> gem install bacon  
> Successfully installed bacon-1.1.0  
> 1 gem installed  
> Installing ri documentation for bacon-1.1.0…  
> Installing RDoc documentation for bacon-1.1.0…

- C:\Users\Ivan Porto C.

> igem install bacon  
> Successfully installed bacon-1.1.0  
> 1 gem installed  
> Installing ri documentation for bacon-1.1.0…  
> Installing RDoc documentation for bacon-1.1.0…  
> ERROR: While executing gem … (TypeError)  
> can’t convert Array into String

To install the rails gem there is only one issue remaining and that has  
to do with a file in the actionmailer test fixtures. The name of the  
file ends in a ~ and apparently ironruby doesn’t like that.
