From: Paul Duncan Date: 2005-12-20T07:03:52+09:00 Subject: Re: Ruby and Debian --8MD1ZCO3r6aZNHwn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Hal Fulton (hal9000@hypermetrics.com) wrote: > I don't wish to open a can of worms here. I'm not even a Debian > user, I'm just trying to help a friend. >=20 > Please refrain if you can from digressing into discussions of politics, > licenses, package management, rubygems replacements, or "my distro can > beat up your distro." >=20 > I met with a friend at breakfast this morning. Coffee shop with killer > pastries and wi-fi, ahhhh. >=20 > He's a Debian guy. Our purpose in meeting was to install Ruby and rubygems > and one other library and then play with it a little. (He doesn't know > Ruby yet.) >=20 > He tried an apt-get before I got there. After fiddling a bit, I suggested > installing from source -- rubygems was complaining about zlib. >=20 > We installed from source, got no zlib, thus rubygems crashed. Tried an > apt-get of zlib-ruby, but no joy. Version conflict or something. If you're installing from source, you need zlib1g-dev (in Debianese,=20 "-dev" suffix =3D=3D header files). > Gave up, moved to a different server, did everything the "right" way. > Wasted over an hour. Never got ruby/zlib/rubygems all installed properly > on either box. Depending on the version of Debian (I'm using Sid, so the way things are for me are how they'll be for you eventually), it _should_ be this simple: # install ruby and ruby development packages sudo apt-get install ruby1.8{,-dev} libruby1.8 # install gems from source gem_url=3D'http://rubyforge.org/frs/download.php/5207/rubygems-0.8.11.tgz' wget $gem_url && tar zxf rubygems-0.8.11.tar.gz && \ cd rubygems-0.8.11 && sudo ruby setup.rb =20 If zlib wasn't listed as a dependency for libruby1.8 on the system in question, it is now (in the more recent versions): pabs@halcyon:~> ach libruby1.8 | grep Dep.*zlib Depends: libc6 (>=3D 2.3.5-1), libncurses5 (>=3D 5.4-5), zlib1g (>=3D 1:1.2.1) > Moved to a Red Hat server where it all "just worked." >=20 > What's the magic to get this going on Debian? --=20 Paul Duncan pabs in #ruby-lang (OPN IRC) http://www.pablotron.org/ OpenPGP Key ID: 0x82C29562 --8MD1ZCO3r6aZNHwn Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFDpy46zdlT34LClWIRApZIAKDJz7wApdOhWwcydXn2wtwFB5WdgwCcCMrB yJpligwwjNhUUxisNUrCIuk= =pp/f -----END PGP SIGNATURE----- --8MD1ZCO3r6aZNHwn--