|
From: Ethan A M. <sf...@us...> - 2011-03-09 20:07:50
|
Mojca Miklavec wrote:
> On Wed, Mar 9, 2011 at 19:24, Ethan A Merritt
> <sf...@us...> wrote:
> > On Wednesday, March 09, 2011 07:12:54 am Mojca Miklavec wrote:
> >> What happens?
> >> --------------------
> >> If I don't install AquaTerm manually, the version provided by MacPorts
> >> doesn't suffice to compile gnuplot with aquaterm terminal which is
> >> probably a flaw in gnuplot configuration. Priority number one would be
> >> to fix that one.
> >
> > This is not very helpful as a bug report.
> > What do you mean "doesn't suffice"?
>
> I wrote down most details, but I my explanation wasn't too clear.
>
> If I use
> CFLAGS=-I/opt/local/include LDFLAGS=-L/opt/local/lib ./configure
> --disable-wxwidgets
> then it works, but it would be much better if it wasn't required to
> manually set flags. (I didn't even come to the idea to do that until
> now.)
Your original post continued:
"My next question would be how to set which aquaterm to use
(in case there are multiple versions installed)"
One answer to that question is exactly what you have shown --
set the paths so that they are appropriate for the version of
aquaterm that you want to use.
> There is
> /opt/local/lib/libaquaterm.dylib
> but the folder /opt/local/ is not searched by default (without
> -L/opt/local/lib), so -laquaterm fails. The same is true for headers.
> There is
> /opt/local/include/aquaterm/aquaterm.h
> but it is not found without -I/opt/local/include/ either.
I would think that if you are relying on MacPorts for your software
installations, and if MacPorts keeps its libraries and header files in
/opt/local, then /opt/local should already be in your default paths.
In particular /opt/local/lib had better be in your library path because
otherwise even if you configure and build the program successfully
it will fail to run because it can't find the support libraries.
Is this really a problem specific to gnuplot and/or aquaterm,
or is it just a normal system configuration issue?
I would have thought setting up the correct paths for /opt/local
would be part of installing MacPorts.
[goes to look via Google...]
.. and indeed it is.
The instructions are in section 2.6 of the MacPorts Guide
http://guide.macports.org/
Ethan
|