Forum OpenACS Q&A: Re: PostgreSQL installon Mac OS X -- readline library not found, compile wows

i'm running 10.2.6.

i've had no trouble compiling either 7.2.3 or 7.3x

the instructions on http://www.borkware.com/rants/openacs/ were helpful to me.

for readline specifically, you can either install it using fink (http://fink.sourceforge.net) or by compiling readline from scratch.

compiling readline:
% curl -O ftp://ftp.gnu.org/pub/gnu/readline/readline-4.3.tar.gz
% tar zxvf readline-4.3.tar.gz
% cd readline-4.3
% perl -i.bak -p -e \
    "s/SHLIB_LIBS=.*/SHLIB_LIBS='-lSystem -lncurses -lcc_dynamic'/g" \
    support/shobj-conf
% ./configure
% make
% make install

fink is probably easiest...

install fink then:
% sudo /sw/bin/fink install readline
and from your postgresql source dir:
% ./configure --with-includes=/sw/include/ --with-libraries=/sw/lib
% make
% install