|
From: Ethan M. <eam...@gm...> - 2014-07-17 18:46:32
|
I suspect that the --program-suffix option was not taken into account when putting together the gnuplot build system. I assume the reason for adding a suffix is so that you can have multiple versions. The build system assumes that this is handled by placing a file with a fixed name in a version-specific directory, not by placing alternatively named files in a single directory. If you really need this capability, I think the build system would have to be modified so that selection of the --program-suffix option actually modifies the source of .../term/x11.trm to call the outboard driver using a different name. But I honestly don't see why this is desirable. Meanwhile your original observation that the "make check" can break if x11 is not used remains true, so I am inclined to remove the symlink generation from the demo Makefile. I would expect that anyone who understands this well enough to select --program-suffix also knows enough to create a symlink themself if necessary. Ethan On Wed, Jul 16, 2014 at 4:28 PM, Jun T. <tak...@kb...> wrote: > > 2014/07/17 06:26、Ethan A Merritt <sf...@us...> のメール: > >>> 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 > |