|
From: Daniel J S. <dan...@ie...> - 2006-07-28 05:45:49
|
Dmitri A. Sergatskov wrote:
> Today's cvs on Fedora Core 5 (x86_64).
> ./prepare
> CFLAGS="-O3 -m64 -pipe"
> ./configure --with-readline=gnu
> make
> make[2]: Leaving directory `/home/dima/src/gnuplot/demo'
> Making all in tutorial
> make[2]: Entering directory `/home/dima/src/gnuplot/tutorial'
> Expected X11 driver: /usr/local/libexec/gnuplot/4.1/gnuplot_x11
> Exec failed: No such file or directory
> See 'help x11' for more details
> make[2]: *** [eg1.tex] Error 141
> make[2]: Leaving directory `/home/dima/src/gnuplot/tutorial'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/dima/src/gnuplot'
> make: *** [all] Error 2
>
> (Of course it worked on the computer that had an older version
> installed in /usr/local ...)
[I think this is one for Hans...]
Right. I suppose developers have had a /usr/local/libexec/gnuplot/4.1/gnuplot_x11 always present. I've replicated the bug. Running as su will install gnuplot_x11 and things will be fine.
So, this error message "Expected X11 driver:" is coming from gnuplot, the x11.trm file. Gnuplot must be run in order to build the files eg1.tex, eg2.tex, etc. Here is the command that fails:
fprintf(stderr,"Expected X11 driver: %s\n",X11_full_command_path);
and this X11_full_command_path is gotten from an environment variable:
/* HBB 20020214: new code to prepend the environment X11_DRIVER_DIR
* to the command name, if it doesn't contain any slashes yet */
if (!strchr(optvec[0],'/')) {
char *dir = getenv("GNUPLOT_DRIVER_DIR");
If GNUPLOT_DRIVER_DIR is not defined, then apparently the default is used which you've discovered contains no executable.
Hans, is the best solution here to simply define GNUPLOT_CRIVER_DIR as a relative path when running this tutorial Makefile?
Really, the gnuplot x11 driver is not needed for the purpose of this tutorial. Perhaps there should be a command line option to indicate that the default window environment driver should not be launched? Or better yet, an option to indicate the default terminal:
gnuplot -term postscript
Dan
|