in reply to Anyone have problem with PGPlot under Knoppix?
Hi,
There has recently been a discussion on PGPLot in the PDL mailing list. As in that case I post my installation notes (ammended with the help of several users of the PDL mailing list) in case you fin them useful useful:
download, uncompress and untar in: /usr/local/src
create a directory /usr/local/pgplot
open the drivers.list file and select drivers
copy the drivers.list file to /usr/local/pgplot
change directory to /usr/local/pgplot
execute the makemake:
/usr/local/src/pgplot/makemake /usr/local/src/pgplot linux g77_gcc
Now comes the tricky part ...
In openSUSE 10.3 modify the make file to point to gfortran:
FCOMPL=gfortran
FFLAGC=-ffixed-form -ffixed-line-length-none -u -Wall -fPIC -O
Also the png driver will not compile if the following line:
pndriv.o : ./png.h ./pngconf.h ./zlib.h ./zconf.h
is not replaced by:
pndriv.o : /usr/include/png.h /usr/include/pngconf.h /usr/include/zlib.h /usr/include/zconf.h
# if the drivers.list file includes /(V)GIF, /(V)PPM, or /(V)WD,
# the source code for these drivers must be edited. Add these three steps:
cd drivers
grep -n 64-bit *
edit the listed files at the lines specified.
make
make cpg
add to bash.bashrc.local export PGPLOT_DIR=/usr/local/pgplot
export PATH=$PATH:/usr/local/pgplot
add to ld.conf.so /usr/local/pgplot
run ldconfig
In the CPAN shell, install the PGPLOT module.