|
From: Reiner S. <rei...@im...> - 2006-10-04 14:41:13
|
Hi,
I tried to install gnuplot-4.2.rc1 on GNU/Linux (SUSE 9.2) on both
i686 and x86_64.
I want to install gnuplot to /usr/local which is shared between i686
and x86_64 machines. Therefore, I compile and install it using
"--program-suffix" as follows:
--8<---------------cut here---------------start------------->8---
#!/bin/sh
conf_1="--enable-history-file --with-readline=gnu --enable-mouse"
suffix="4-2-rc1-`uname -m`"
set -e
./configure --program-suffix=-"$suffix" --prefix=${SOFT:-/usr/local} $conf_1
rm src/*.o
make
make install
--8<---------------cut here---------------end--------------->8---
I get:
,----
| /usr/local/libexec/gnuplot/4.2$ ls
| gnuplot_x11-4-2-rc1-i686 gnuplot_x11-4-2-rc1-x86_64
|
| /usr/local/bin$ ls gnuplot-4-2-rc1-*
| gnuplot-4-2-rc1-i686 gnuplot-4-2-rc1-x86_64
`----
In /usr/local/bin, I have the following tiny wrapper:
,----[ gnuplot-4-2-rc1 ]
| #!/bin/sh
| exec "$0-`uname -m`" "$@"
`----
When I run gnuplot under X11, I get:
,----
| /usr/local/bin$ ./gnuplot-4-2-rc1-x86_64
| Expected X11 driver: /usr/local/libexec/gnuplot/4.2/gnuplot_x11
| Exec failed: No such file or directory
| See 'help x11' for more details
`----
,----
| $ ./gnuplot-4-2-rc1-i686
|
| G N U P L O T
| Version 4.2 patchlevel rc1
| last modified Wed Oct 4 15:32:29 CEST 2006
| System: Linux 2.6.8-24.25-smp
| [...]
| Send bug reports and suggestions to <gnu...@li...>
|
| Expected X11 driver: /usr/local/libexec/gnuplot/4.2/gnuplot_x11
| Exec failed: No such file or directory
| See 'help x11' for more details
| Applying settings from ~/.gnuplot:
| encoding, samples, zero
|
|
| Terminal type set to 'x11'
| gnuplot> test
| Expected X11 driver: /usr/local/libexec/gnuplot/4.2/gnuplot_x11
| Exec failed: No such file or directory
| See 'help x11' for more details
`----
I'd say this is a bug: Either the installation routine should install
gnuplot_x11 as libexec/gnuplot/4.2-${program_suffix}/gnuplot_x11 or
the main program should search for
/usr/local/libexec/gnuplot/4.2/gnuplot_x11-4-2-${program_suffix} as
well.
BTW, I can work around this problem with...
,----
| cd /usr/local/libexec/gnuplot/4.2
| ln -s gnuplot_x11-4-2-rc1-i686 gnuplot_x11
`----
... but this only works accidentally for i686 and x86_64.
Bye, Reiner.
--
,,,
(o o)
---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/
|