|
From: Jun T. <tak...@kb...> - 2014-07-17 11:02:32
|
(I'm resending this because I've forgot to include gnuplot-beta in To:) 2014/07/17 06:26, Ethan A Merritt <sf...@us...> wrote: >> 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. Yes, I know. Please notice that I added --program-suffix='-5' to the configure options. After I run 'make install', gnuplot-5 is installed in $prefix/bin/, and gnuplot_qt-5 is installed in $prefix/libexec/gnuplot/5.0/gnuplot_qt-5. But If I start $prefix/bin/gnuplot-5, it tries to start $prefix/libexec/gnuplot/5.0/gnuplot_qt, which does not exists. I guess in the case of x11 terminal $prefix/bin/gnuplot will start $prefix/libexec/gnuplot/5.0/gnuplot_x11-5 (NOT gnuplot_x11) to avoid this problem. > .../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). In the case of qt terminal, src/gnuplot (not yet installed; run while make check) tries to start $GNUPLOT_DRIVER_DIR/gnuplot_qt, which exists. I guess (just a guess) that, in the case of x11 terminal, src/gnuplot will try to start $GNUPLOT_DRIVER_DIR/gnuplot_x11-5, which does NOT exist. So 'make check' will make a symlink in src/ (i.e., in GNUPLOT_DRIVER_DIR) as ln -s gnuplot_x11 gnuplot_x11-5 |