[Gretl-devel] OS X build process

Allin Cottrell cottrell at wfu.edu
Tue Dec 18 09:40:38 EST 2007


On Tue, 18 Dec 2007, Sven Schreiber wrote:

> Am 18.12.2007 06:40, Allin Cottrell schrieb:
> > I've now added a fairly substantial document on building a self-contained
> > disk image of gretl for OS X...
> 
> I could build libgd ok, but ran into an error building gnuplot 
> (see below). And while we're at it, is it ok that the gnuplot 
> prefix is <gretl.app-skeleton-dir>/Gretl_Folder while the 
> "export PATH=..." line for building gretl is something different 
> (to my unknowledgeable eyes)?

Oops, no, it should be Gretl.app.  I've now fixed that in 
build.pdf.

> g++  -g -O2  -L/usr/X11R6/lib -o gnuplot...

> Undefined symbols:
> 
>  "_rl_forced_update_display", referenced from:

Urgh, I think I've read about this somewhere.  I believe what's 
happening is that current OS X installs some BSD thingy that's not 
really libreadline but that claims to be (via a symlink perhaps).  
So when you try to build a third-party program (such as gnuplot)
that wants to link against libreadline (if it's available) you get 
a mess of undefined symbols.

I think the options here are:

1) install readline and readline-shlibs via Fink; or

2) add the flag --with-readline=builtin when configuring gnuplot

Allin.


More information about the Gretl-devel mailing list