From: Jose Marques Date: 2005-04-22T00:19:31+09:00 Subject: Re: Installing RubyGems as non-root user on MacOS X On Thu, 21 Apr 2005, Zach Dennis wrote: > Yeah, I can't get readline support to work in irb on my Mac either. If > anyone knows please let us know.... This may not be the best way but I used the following script to build my private copy of ruby _with_ readline support. Looking at the log file in the readline ext directory it seems it wasn't picking up my LDFLAGS settings. The readline library was already installed in /opt/local using DarwinPorts. -8<- cut here ---- #!/bin/sh PREFIX=${HOME}/tools export PREFIX LDFLAGS="-L${PREFIX}/lib -L/opt/local/lib" export LDFLAGS # For readline support DLDFLAGS=${LDFLAGS} export DLDFLAGS CFLAGS="-I${PREFIX}/include -I/opt/local/include" export CFLAGS VERSION=1.8.2 cd ruby-${VERSION} ../configure --prefix=${PREFIX} make make install -- Jose Marques