|
From: François S. <sch...@un...> - 2014-09-20 16:48:24
|
Hello,
I am a regular user of gnuplot 4.4 on a MacBook Pro Retina, OSX 10.8.5.
I just tried to update to gnuplot 4.6.5 and got the following error message output during the 'make' step :
Undefined symbols for architecture x86_64:
"_gdImagePng", referenced from:
_PNG_text in term.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [gnuplot] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Does anyone know how to solve this problem ?
Francois
|
|
From: Ethan A M. <EAM...@gm...> - 2014-09-20 17:19:29
|
On Saturday, 20 September 2014 06:48:41 PM François Schosseler wrote: > Hello, > I am a regular user of gnuplot 4.4 on a MacBook Pro Retina, OSX 10.8.5. > I just tried to update to gnuplot 4.6.5 and got the following error message output during the 'make' step : > > Undefined symbols for architecture x86_64: > "_gdImagePng", referenced from: > _PNG_text in term.o > ld: symbol(s) not found for architecture x86_64 > clang: error: linker command failed with exit code 1 (use -v to see invocation) > make[3]: *** [gnuplot] Error 1 > make[2]: *** [all-recursive] Error 1 > make[1]: *** [all-recursive] Error 1 > make: *** [all] Error 2 > > Does anyone know how to solve this problem ? > Francois Just guessing - The autoconfigure tool found an installed version of libgd, but it was a 32-bit version rather than a 64-bit version. So the test for gd support in "./configure" succeeded, but the actual "make" command failed. If you do have a 64-bit libgd installed, you can probably rescue things by hand-editing the Makefile so that instead of TERMLIBS = ... -lreadline -lz -lgd ... it says TERMLIBS = ... -lreadline -lz -lgd64 ... or TERMLIBS = ... -lreadline -lz -L/some-64bit-lib-dir/ -lgd ... It may also work to say instead ./configure --with-gd=/some-64bit-lib-directory/ but I don't know if that is sufficient on OSX. -- |
|
From: François S. <sch...@un...> - 2014-09-20 18:05:53
|
Ethan, Thanks for the advices. Unfortunately I tried both suggestions but I get either: ld: library not found for -lgd64 or: ld: warning: directory not found for option '-L/some-64bit-lib-dir/' I tried also "./configure --with-gd=/some-64bit-lib-directory/" but this did not work too. I'm lost. François Le 20 sept. 2014 à 19:00, Ethan A Merritt <EAM...@gm...> a écrit : > On Saturday, 20 September 2014 06:48:41 PM François Schosseler wrote: > > Hello, > > I am a regular user of gnuplot 4.4 on a MacBook Pro Retina, OSX 10.8.5. > > I just tried to update to gnuplot 4.6.5 and got the following error message output during the 'make' step : > > > > Undefined symbols for architecture x86_64: > > "_gdImagePng", referenced from: > > _PNG_text in term.o > > ld: symbol(s) not found for architecture x86_64 > > clang: error: linker command failed with exit code 1 (use -v to see invocation) > > make[3]: *** [gnuplot] Error 1 > > make[2]: *** [all-recursive] Error 1 > > make[1]: *** [all-recursive] Error 1 > > make: *** [all] Error 2 > > > > Does anyone know how to solve this problem ? > > Francois > > Just guessing - > The autoconfigure tool found an installed version of libgd, but it > was a 32-bit version rather than a 64-bit version. So the test for > gd support in "./configure" succeeded, but the actual "make" command > failed. If you do have a 64-bit libgd installed, you can probably > rescue things by hand-editing the Makefile so that instead of > > TERMLIBS = ... -lreadline -lz -lgd ... > > it says > > TERMLIBS = ... -lreadline -lz -lgd64 ... > or > TERMLIBS = ... -lreadline -lz -L/some-64bit-lib-dir/ -lgd ... > > > It may also work to say instead > ./configure --with-gd=/some-64bit-lib-directory/ > but I don't know if that is sufficient on OSX. > > > > -- |
|
From: François S. <sch...@un...> - 2014-09-21 07:12:30
|
Hello, Just to end the thread, I finally used MacPorts to install this gnuplot version and it works. I only had to redefine the default terminal because MacPorts sets the Aqua terminal as default. Thanks to Ethan for his input. François |
|
From: Dave H. <da...@ho...> - 2014-09-21 07:19:08
|
On Sun, 21 Sep 2014, François Schosseler wrote: > I only had to redefine the default terminal because MacPorts sets the > Aqua terminal as default. I wish it would set "aqua enhanced" by default, or, better still, allow something like "set terminal +enhanced" i.e. set "enhanced" on whatever the terminal is, if it can do it. -- Dave |
|
From: François S. <sch...@un...> - 2014-09-21 07:37:23
|
1. Find where is located your gnuplotrc file by typing: gnuplot show loadpath exit 2. Then edit this gnuplotrc file to include these lines set term aqua set termoption enhanced 3. Save this new version You should be done. François Le 21 sept. 2014 à 09:18, Dave Horsfall <da...@ho...> a écrit : > On Sun, 21 Sep 2014, François Schosseler wrote: > >> I only had to redefine the default terminal because MacPorts sets the >> Aqua terminal as default. > > I wish it would set "aqua enhanced" by default, or, better still, allow > something like "set terminal +enhanced" i.e. set "enhanced" on whatever > the terminal is, if it can do it. > > -- Dave------------------------------------------------------------------------------ > Slashdot TV. Video for Nerds. Stuff that Matters. > http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk_______________________________________________ > gnuplot-info mailing list > gnu...@li... > Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info |
|
From: Dave H. <da...@ho...> - 2014-09-21 07:55:13
|
On Sun, 21 Sep 2014, François Schosseler wrote: [...] > 2. Then edit this gnuplotrc file to include these lines > set term aqua > set termoption enhanced Aha! Many thanks. I do have the PDF for the manual, but it's a bit tedious browsing through it, so I'll be ordering the book. -- Dave |
|
From: Dave H. <da...@ho...> - 2014-09-21 08:12:34
|
On Sun, 21 Sep 2014, Dave Horsfall wrote:
[ On getting "enhanced" by default ]
> On Sun, 21 Sep 2014, François Schosseler wrote:
>
> [...]
>
> > 2. Then edit this gnuplotrc file to include these lines
> > set term aqua
> > set termoption enhanced
And for the benefit of the archives, even better is to put
set termoption enhanced
into your $HOME/.gnuplot file; that way, you don't have to modify the
global file.
-- Dave |
|
From: Ethan A M. <EAM...@gm...> - 2014-09-21 15:32:10
|
On Sunday, 21 September 2014 06:12:19 PM Dave Horsfall wrote: > On Sun, 21 Sep 2014, Dave Horsfall wrote: > > [ On getting "enhanced" by default ] > > > On Sun, 21 Sep 2014, François Schosseler wrote: > > > > [...] > > > > > 2. Then edit this gnuplotrc file to include these lines > > > set term aqua > > > set termoption enhanced > > And for the benefit of the archives, even better is to put > > set termoption enhanced > > into your $HOME/.gnuplot file; that way, you don't have to modify the > global file. > > -- Dave For what it's worth, in gnuplot version 5 all terminals default to enhanced text mode. Also they default to allowing dashed lines. Version 5 currently exists as a 2nd release candidate, with the formal release projected for the end of the year. Ethan |