|
From: Ethan A M. <merritt@u.washington.edu> - 2009-01-14 16:25:03
|
On Wednesday 14 January 2009, Mojca Miklavec wrote: > On Wed, Jan 14, 2009 at 11:48 AM, Timothée Lecomte > <tim...@lp...> wrote: > > Mojca Miklavec a écrit : > >> > > > >> I also got some problems with libreadline. I thought that configure > >> has been fixed to recognise the lack of proper libreadline, but well > >> ... I have compiled it now and it probably works, though I cannot > >> figure out how to build it statically into gnuplot. > >> > >> Thanks, > >> Mojca > >> > > > > Do you want MacOS libreadline to be built statically in gnuplot, or do you > > want gnuplot's built-in readline to be used instead of what configure has > > found ? > > The MacOS libreadline is apparently not powerful enough, so it > wouldn't help. (But it would be nice to detect that deficiency and > switch to built-in readline during configuration step instead of > throwing an error.) If you can figure out how to detect and configure around the OSX defective readline library, that would be great. So far, I have not seen a way to do this. It claims to be readline, but it isn't. > The built-in readline would be fine, but suboptimal (I've seen the > switch that forces usage of built-in readline.) I have been told that the OSX "libreadline" library is actually a disguised version of the BSD libedit. Since as of recently gnuplot can use libedit instead of libreadline, the best solution would be (if it works) would be to force the --with-readline=bsd on OSX configurations. Unfortunately, I do not know if OSX also provides an un-wrapped libedit that doesn't pretend to be libreadline. Could you please try ./configure --with-readline=bsd and see how it works? > I would like to compile readline myself and use that one, built in statically. > > I did: > > export PATH="$prefix/bin:$PATH" > export LDFLAGS="-L$prefix/lib" > export CPPFLAGS="-I$prefix/include" > > cd libs > wget -c -N http://ftp.gnu.org/gnu/readline/readline-5.2.tar.gz > tar xzf readline-5.2.tar.gz > cd readline-5.2 > ./configure --prefix="$prefix" --disable-shared > make && make install || exit 1 > ... > ./configure --prefix="$prefix" \ > --with-png="$prefix" --with-gd="$prefix" --without-x > --without-cairo --disable-wxwidgets > make > > but otool still reports (among other dependencies) the dependency on > libreadline: > > > otool -L src/gnuplot > src/gnuplot: > /Users/mojca/gnuplot/git/gnuplot-static/support_libs/lib/libreadline.5.2.dylib > (compatibility version 5.0.0, current version 5.2.0) > > The png and gd libraries do not work properly, but that's yet another > issue that I need to inspect. > > Thanks, > Mojca -- Ethan A Merritt Biomolecular Structure Center University of Washington, Seattle 98195-7742 |