From: Robert Klemme Date: 2009-06-10T23:01:01+09:00 Subject: Re: centos and ruby 1.9.1 - possible? 2009/6/10 Älphä Blüë : > James Britt wrote: >> �lph� Bl�� wrote: >>> I hate even typing the question but my vps template has centos >>> unfortunately.  So, I'm looking for instructions on how to install ruby >>> with centos and yum... >>> >>> Anyone have some solutions for me - advice? >> >> Build from source? > > Again, my problem is there's very little documentation out there for > centos and how to accomplish this. > > For instance, on Ubuntu if I need to do this I know which apts I'll need > to get before compiling from source.  On Centos, those same apts don't > appear to apply. Might be because CentOS uses a different package manager... :-) > Unless someone can provide me a link to a detailed step-by-step that > shows me how to accomplish a build from source, then I can't use centos. Did you try the steps provided in README (in the source directory of the source distribution package you get from ruby-lang). > It really comes down to familiarity and I spent 12 hours scouring and > searching the web yesterday for anything centos related. That must have been frustrating. > My VPS template uses Centos 4.5 (final), most other people are using > Centos 5.x.  That's problem number 1. > > My VPS uses yum and I'm not all that familiar with yum.  I installed apt > and couldn't get going with that on centos either.  That's problem > number 2. "man yum" or "yum --help" did not work? yum has worked pretty well for me so far so I never felt the need to install another package manager. > When I attempted a compile it failed because much of the dependencies > were not already built on the distro.  I compiled from 1.9.1 source but > zlib, openssl, etc. - all of those failed.  When I tried to update zlib > it said I had the latest available already but I noticed that the > version was "old".  So, where do I get the latest zlib? Can you post the errors you got from "configure" or "make"? On my CentOS 5 (and also earlier on 4 IIRC) I did not have any issues compiling. Note that yum can tell you which package contains a specific file if your error announces that a file (e.g. library) is missing (see "whatprovides" in the man page). > If someone wants to open my eyes to something I haven't yet discovered > and help me out - great!  But, saying it's a great distro is just an > opinion that doesn't help me out with the issues I'm facing. But it might tell you that others do not have that problem and it's probably not something about the distribution but your particular installation. This can be a crucial bit of information at times. Cheers robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/