From: Aaron Kulbe Date: 2006-08-08T01:11:15+09:00 Subject: Re: Problem with Ruby Installation ------=_Part_162201_9408141.1154967071287 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline You may have done some of this already, so disregard the parts that already apply: Me personally, I get the latest stable-snapshot. It is Ruby 1.8.5. Extract the source somewhere. cd into that directory where you extracted the source. Edit ext/Setup uncomment zlib, ssl, readline apt-get the following packages: build-essential zlib1g-dev readline5-dev ncurses-dev and when I install Ruby from source, I want it to go into /usr/bin rather than /usr/local/bin, so I set ./configure --prefix=/usr in the first stage then make then sudo make install Cheers, Aaron Kulbe On 8/6/06, Michael Satterwhite wrote: > > Erik Veenstra wrote: > > What's the output of this?: > > > > $ find `ruby -r rbconfig -e 'puts Config::CONFIG["archdir"]'` | grep > > -wie zlib > > I think you've put your finger on the problem. The above command has no > output. Looking closer, I see that ruby is apparently looking for > zlib.so under /usr/local/lib/ruby/1.8/i686-linux. > > The library is actually under /usr/lib/ruby/1.8/i486-linux/zlib.so (as > placed by my distribution). This, of course, brings up the question of > how to correct this. I need to either (a) Tell ruby where the libraries > are, (b) Move the libraries to where ruby thinks they are, or (c) > Recompile ruby to be in /usr/bin - which is where the distribution put > it. To me, (c) looks the least error prone - but I'm sure willing to > listen to other suggestions. Almost everyone here knows more about ruby > than I do. > > Thanks - and all help is appreciated > ---Michael > > -- > Posted via http://www.ruby-forum.com/. > > ------=_Part_162201_9408141.1154967071287--