








(1)
Your rating: Now say why...




| Downloads:17,610 |
| Version Downloads:2,749 |
| Type:Education : Mathematics |
| License:Free |
| Date:15 Nov 2011 |
| Platform:PPC / Intel |
| Price:Free |
Overall (Version 4.x):![]() ![]() ![]() ![]() ![]() |
Features:![]() ![]() ![]() ![]() ![]() |
Ease of Use:![]() ![]() ![]() ![]() ![]() |
Value:![]() ![]() ![]() ![]() ![]() |
Stability:![]() ![]() ![]() ![]() ![]() |
+480
+2
+2
Here is an additional comment to JIMCLARK01's tips to compile gnuplot 4.4.2 under Snow Leopard (Mac OS X.6) with PNG, JPEG output available :
X11 should be installed on your computer (From Mac OSX install DVD).
gnuplot needs libgd library to support graphics output formats like PNG.
You have to install libgd first and to link gnuplot with it.
1 - Download libraries JPEG (jpegsrc.v6b.tar.gz), FreeType 2.4.3, and GD 2.0.35 (Find them on the Web, copy the .tar.gz file in a directory , uncompact them with the Finder)
Then in a terminal window :
2 - Install lib jpeg-6b :
cd jpeg-6b
cp /usr/share/libtool/config/config.sub .
cp /usr/share/libtool/config/config.guess .
./configure --enable-static --x-include=/usr/include/X11 --x-libraries=/usr/X11/lib
make
sudo make install
sudo ranlib /usr/local/lib/libjpeg.a
Library will be put be in /usr/local : /usr/local/lib/libjpeg.a
Remarks :
--enable-shared don't work
make install produce an error with doc, ignore it.
3 - Install freetype-2.4.3
cd freetype-2.4.3
./configure
make
sudo make install
4 - Install libgd
cd gd-2.0.35
sudo ln -s /usr/X11R6/include/fontconfig /usr/local/include
sudo cp -r /usr/X11/include/*png* /usr/local/include
./configure --with-x --x-include=/usr/include/X11 --x-libraries=/usr/X11/lib --with-png=/usr/X11
make
sudo make install
5 - rebuild gnuplot
./configure --with-readline=bsd --x-include=/usr/include/X11 --x-libraries=/usr/X11/lib
Verify here that png terminals are detected in configure's output
make
sudo make install
6 - To make libgd support fonts
export GDFONTPATH=$HOME/Library/Fonts:/Library/Fonts:/System/Library/Fonts
before you launch gnuplot or put GDFONTPATH initialization in your ~/.bash_profile
At point 2. I've had to download and install the jpeg-8c version because the 6b didn't copy the libjpeg.a file.
At point 4. I don't know why but when I run the configure, it prompts me the error:
$ ./configure
checking build system type... i386-apple-darwin10.6.0
checking host system type... i386-apple-darwin10.6.0
checking target system type... i386-apple-darwin10.6.0
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... configure: error: ls -t appears to fail. Make sure there is not a broken
alias in your environment
configure: error: newly created file is older than distributed files!
Check your system clock
My system clock is ok and I've disabled every alias I had on bashrc. ¿Any idea to solve that?
BTW, thank you for the step-by-step post.
+3
+3
./configure --with-readline=bsd --x-include=/usr/include/X11 --x-libraries=/usr/X11/lib
make
sudo make install
installs by default under /usr/local
dieguico rated on 20 Jan 2011