# Unable to gem install rails

**URL:** <https://www.ruby-forum.com/t/unable-to-gem-install-rails/189366>\
**Category:** Rails\
**Created:** [May 29, 2010, 9:02pm UTC](https://www.ruby-forum.com/t/unable-to-gem-install-rails/189366 "2010-05-29T21:02:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yarrgh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/b9e5f3/32.png) [@yarrgh](https://www.ruby-forum.com/u/yarrgh)\
**Post date:** [May 29, 2010, 9:02pm UTC](https://www.ruby-forum.com/t/unable-to-gem-install-rails/189366/1 "2010-05-29T21:02:33Z")

</div>

I am unable to install rails via the CLI, Fedora 13. This is a new  
installation and I am not certain why I am receiving this error.

ERROR: Loading command: install (LoadError)  
no such file to load – zlib  
ERROR: While executing gem … (NameError)  
uninitialized constant Gem::Commands::InstallCommand

ubyGems Environment:

- RUBYGEMS VERSION: 1.3.7
- RUBY VERSION: 1.9.1 (2009-12-07 patchlevel 376) [x86\_64-linux]
- INSTALLATION DIRECTORY: /usr/local/lib/ruby/gems/1.9.1
- RUBY EXECUTABLE: /usr/local/bin/ruby
- EXECUTABLE DIRECTORY: /usr/local/bin
- RUBYGEMS PLATFORMS:
  - ruby
  - x86\_64-linux

- GEM PATHS:
  - /usr/local/lib/ruby/gems/1.9.1
  - /root/.gem/ruby/1.9.1

- GEM CONFIGURATION:
  - :update\_sources =\> true
  - :verbose =\> true
  - :benchmark =\> false
  - :backtrace =\> false
  - :bulk\_threshold =\> 1000

- REMOTE SOURCES:
  - [http://rubygems.org/](http://rubygems.org/)

---

<div class="post-metadata">

**Author:** ![yarrgh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/b9e5f3/32.png) [@yarrgh](https://www.ruby-forum.com/u/yarrgh)\
**Post date:** [May 29, 2010, 9:08pm UTC](https://www.ruby-forum.com/t/unable-to-gem-install-rails/189366/2 "2010-05-29T21:08:35Z")

</div>

On Sat, May 29, 2010 at 12:02 PM, Rc Bl [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I am unable to install rails via the CLI, Fedora 13. This is a new  
> installation and I am not certain why I am receiving this error.
> 
> ERROR: Loading command: install (LoadError)  
> no such file to load – zlib

You would get a pretty good idea by googling that last line.

## Just sayin’ …

Hassan S. ------------------------ removed\_email\_address@domain.invalid  
twitter: @hassan

---

<div class="post-metadata">

**Author:** ![yarrgh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/b9e5f3/32.png) [@yarrgh](https://www.ruby-forum.com/u/yarrgh)\
**Post date:** [May 29, 2010, 9:46pm UTC](https://www.ruby-forum.com/t/unable-to-gem-install-rails/189366/3 "2010-05-29T21:46:09Z")

</div>

Hassan S. wrote:

> On Sat, May 29, 2010 at 12:02 PM, Rc Bl [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > I am unable to install rails via the CLI, Fedora 13. This is a new  
> > installation and I am not certain why I am receiving this error.
> > 
> > ERROR: ï¿½Loading command: install (LoadError)  
> > ï¿½ ï¿½no such file to load – zlib
> 
> You would get a pretty good idea by googling that last line.
> 
> ## Just sayin’ …
> 
> Hassan S. ------------------------ removed\_email\_address@domain.invalid  
> twitter: @hassan

Thanks for the smack in the noggen. My laptop blew up mid installation  
and I have been rebuilding everything all day.

zlib wasn’t found so I had to re-make so to speak. Rails is humming  
along, back to the project.

cheers
