# Help! installing rubygems in ubuntu... problems with zlib

**URL:** <https://www.ruby-forum.com/t/help-installing-rubygems-in-ubuntu-problems-with-zlib/58179>\
**Category:** Rails\
**Created:** [April 19, 2006, 12:32pm UTC](https://www.ruby-forum.com/t/help-installing-rubygems-in-ubuntu-problems-with-zlib/58179 "2006-04-19T12:32:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Carlos\_Gershenson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/e36b37/32.png) [@Carlos\_Gershenson](https://www.ruby-forum.com/u/Carlos_Gershenson)\
**Post date:** [April 19, 2006, 12:32pm UTC](https://www.ruby-forum.com/t/help-installing-rubygems-in-ubuntu-problems-with-zlib/58179/1 "2006-04-19T12:32:43Z")

</div>

Hi,

I am trying to install Ruby on Rails on a Linux Ubuntu PC. I already  
installed manually ruby 1.8.4. But when I try to install rubygems, I get  
the error:

/usr/local/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:21:in  
`require__': no such file to load -- zlib (LoadError) from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in`require’  
from /usr/local/lib/ruby/site\_ruby/1.8/rubygems/package.rb:9  
from  
/usr/local/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:21:in  
`require' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/builder.rb:1 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in`require’  
from /usr/local/lib/ruby/site\_ruby/1.8/rubygems.rb:61:in  
`manage_gems' from /home/carlos/Desktop/rubygems-0.8.11/./post-install.rb:64:in`install\_sources’  
from  
/home/carlos/Desktop/rubygems-0.8.11/./post-install.rb:75:in  
`try_run_hook' from setup.rb:577:in`run\_hook’  
from setup.rb:1315:in `exec_task_traverse' from setup.rb:1168:in`exec\_install’  
from setup.rb:887:in `exec_install' from setup.rb:705:in`invoke’  
from setup.rb:674:in `invoke’  
from setup.rb:1352

I installed zlib with the package manager (libzlib-ruby) and manually,  
even recompiled ruby, but still I get this error… I searched for info  
on this problem, but all I found was that the problem should be solved  
with libzlib-ruby…

Help!

Thanks a lot,  
Carlos

---

<div class="post-metadata">

**Author:** ![Carlos\_Gershenson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/e36b37/32.png) [@Carlos\_Gershenson](https://www.ruby-forum.com/u/Carlos_Gershenson)\
**Post date:** [April 19, 2006, 1:54pm UTC](https://www.ruby-forum.com/t/help-installing-rubygems-in-ubuntu-problems-with-zlib/58179/2 "2006-04-19T13:54:11Z")

</div>

> Carlos Gershenson wrote:
> 
> I installed zlib with the package manager (libzlib-ruby) and manually,  
> even recompiled ruby, but still I get this error… I searched for info  
> on this problem, but all I found was that the problem should be solved  
> with libzlib-ruby…
> 
> Help!
> 
> Thanks a lot,  
> Carlos

Here’s a very terse howto I wrote not to long ago detailing a build from  
source

[http://mgreenly.metaspot.net/?p=37](http://mgreenly.metaspot.net/?p=37)

---

<div class="post-metadata">

**Author:** ![Carlos\_Gershenson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/e36b37/32.png) [@Carlos\_Gershenson](https://www.ruby-forum.com/u/Carlos_Gershenson)\
**Post date:** [April 19, 2006, 5:02pm UTC](https://www.ruby-forum.com/t/help-installing-rubygems-in-ubuntu-problems-with-zlib/58179/3 "2006-04-19T17:02:20Z")

</div>

Great! Thanks a lot! That did the works…  
I guess the main step was to install ruby-zlib, that is not mentioned on  
the places I checked…

Michael G. wrote:

> Here’s a very terse howto I wrote not to long ago detailing a build from  
> source
> 
> [http://mgreenly.metaspot.net/?p=37](http://mgreenly.metaspot.net/?p=37)

---

<div class="post-metadata">

**Author:** ![Carlos\_Gershenson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/e36b37/32.png) [@Carlos\_Gershenson](https://www.ruby-forum.com/u/Carlos_Gershenson)\
**Post date:** [December 4, 2006, 6:49am UTC](https://www.ruby-forum.com/t/help-installing-rubygems-in-ubuntu-problems-with-zlib/58179/4 "2006-12-04T06:49:25Z")

</div>

Michael G. wrote:

> > Carlos Gershenson wrote:
> > 
> > I installed zlib with the package manager (libzlib-ruby) and manually,  
> > even recompiled ruby, but still I get this error… I searched for info  
> > on this problem, but all I found was that the problem should be solved  
> > with libzlib-ruby…
> > 
> > Help!
> > 
> > Thanks a lot,  
> > Carlos
> 
> Here’s a very terse howto I wrote not to long ago detailing a build from  
> source
> 
> [http://mgreenly.metaspot.net/?p=37](http://mgreenly.metaspot.net/?p=37)

Too bad. Link is dead.  
Sounded promising.
