Forum: Ruby on Rails Rails Install on Linux (SuSE 9.3) Fails

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
1e949d1573a80b0dbd00d01f954ca00f?d=identicon&s=25 Jim Harris (jim-harris)
on 2006-02-12 07:35

I'm just getting started with RoR, and I'm none too good at Linux
either.   :-)

But anyway, I got ruby-1.8.4.tar.gz and rubygems-0.8.11 and unpacked
them in separate directories under my normal user (jim) home and went
there and did

./configure, then make, then make test (test succeeded), then su - and
make install, and then in the unpacked RubyGems folder, ruby setup.rb,
all with no obvious errors.

Now I go to the RubyGems folder and try to install Rails and I get:

RubyGems/rubygems-0.8.11/bin # gem install rails --include-dependencies
`require__': no such file to load -- zlib (LoadError)
        from /usr/local/lib/ruby/site_ruby/1.8/rubygems/package.rb:9
        from /usr/local/lib/ruby/site_ruby/1.8/rubygems/builder.rb:1
        from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:61:in
        from /usr/local/bin/gem:4

so then when I type

rails /home/jim/railsApp1

I get

bash: rails: command not found

Sorry if this is a stupid Linux error on my part, but hey, I gotta start
somewhere, right?

Thanks for any help on Rails _or_ Linux _or_ SuSE 9.3 (which, I
understand, is not just any Linux. :-)

91d00b2e1d76029cb9175053a846051b?d=identicon&s=25 Michael Johnston (Guest)
on 2006-02-12 14:01
(Received via mailing list)
It appears you need to install zlib. This is a unix lib, not a ruby
one, so you need to install it with your package manager (i think
yast on Suse??) not gem.

But search the archives for suse + zlib, seems some people have
trouble with zlib bindings and have to install it manually.

Michael Johnston
1e949d1573a80b0dbd00d01f954ca00f?d=identicon&s=25 Jim Harris (jim-harris)
on 2006-02-13 03:02
Thanks, Michael.

I will try this ASAP (probably Wednesday).

Another question I should have asked but did not think of soon enough:

Where is the detailed, step-by-step "Getting Started" manual for us
newbies, to include helpful ways to avoid known problems such as you
just pointed out, as well as something like what I described in my
original post (he asks hopefully)?

Thanks again.

1e949d1573a80b0dbd00d01f954ca00f?d=identicon&s=25 Jim Harris (jim-harris)
on 2006-02-13 03:14
OK, I tried to install zlib and my system seems to already have it:

jim@QL1:~> su -
QL1:~ # apt-get install zlib
Reading Package Lists... Done
Building Dependency Tree... Done
zlib is already the newest version.
0 upgraded, 0 newly installed, 0 removed and 169 not upgraded.
QL1:~ #

This is starting to sound like a "path" issue in Windows.

Note that I issue the "gem install" command at

QL1:/home/jim/source/Ruby_Rails_etc/RubyGems/rubygems-0.8.11/bin #

and my Ruby is in


Does this matter?

Thanks for any help.

1e949d1573a80b0dbd00d01f954ca00f?d=identicon&s=25 Jim Harris (jim-harris)
on 2006-02-13 03:29

QL1:/home/jim/source/Ruby_Rails_etc/ruby-1.8.4/ext/zlib # ls
.  ..  .cvsignore  Makefile  doc  extconf.rb  mkmf.log  zlib.c
QL1:/home/jim/source/Ruby_Rails_etc/ruby-1.8.4/ext/zlib # make
make: Nothing to be done for `all'.

This topic is locked and can not be replied to.