|
From: Ethan A M. <sf...@us...> - 2014-07-16 21:28:23
|
On Thursday, 17 July, 2014 04:48:22 Jun T. wrote: > > 2014/07/17 02:26, Ethan A Merritt <sf...@us...> wrote: > > > Does anyone know what was the original intent of creating a symlink? > > The following is just my guess; not tested on Linux with x11 terminal. > I can test only on Mac now, but: > > $ ./configure --prefix=$HOME --program-suffix='-5' --with-qt ... > $ make > > then gnuplot and gnuplot_qt are built in src/, and > > $ make install > > this will install gnuplot as $HOME/bin/gnuplot-5, and gnuplot_qt as > $HOME/libexec/gnuplot/5.0/gnuplot_qt-5 (they are renamed when installed). > But qt terminal doesn't work: > > $ $HOME/bin/gnuplot-5 > gnuplot> set term qt > gnuplot> plot sin(x) > Could not start gnuplot_qt with path "$HOME/libexec/gnuplot/5.0/gnuplot_qt" > > i.e., gnuplot-5 tries to start gnuplot_qt but in $HOME/libexec there is > gnuplot_qt-5 but not gnuplot_qt (assuming I haven't installed gnuplot > with --prefix=$HOME but without --program-suffix before). That is the purpose of the environment variable GNUPLOT_DRIVER_DIR. .../demo/Makefile sets this to GNUPLOT_DRIVER_DIR=$$bdir/../src so that gnuplot_x11 and gnuplot_qt are correctly found in the build directory rather than in the system install directory (since "make check" can be run before installation). Ethan |