PyNIO install and libjpeg

From: David B. Reusch <dreusch_at_nyahnyahspammersnyahnyah>
Date: Fri Sep 09 2011 - 13:15:26 MDT

Hello,

I'm trying to install PyNIO from source for the first time on a 64-but
Mac 10.6.8 system. I have libjpeg installed under fink (in /sw64/lib)
but have not been able to get the setup.py script to find it. The key
error output appears to be:
> g++-4.2 -Wl,-F. -bundle -undefined dynamic_lookup -arch i386 -arch ppc
> -arch x86_64 build/temp.macosx-10.6-universal-2.6/niomodule.o
> -Llibsrc -Lbuild/temp.macosx-10.6-universal-2.6 -lnio -ljpeg -lpng -lz
> -lnetcdf -o build/lib.macosx-10.6-universal-2.6/PyNIO/nio.so
> ld: library not found for -ljpeg
The script I'm using to drive my install (to keep things simpler) is:
> #!/bin/tcsh
> setenv HAS_GRIB2 0
> setenv HAS_HDFEOS 1
> setenv HAS_NETCDF4 1
> setenv NETCDF4_PREFIX /usr/local/netcdf-4.1.1
> setenv HDFEOS_PREFIX /usr/local/hdf5
>
> setenv F2CLIBS gfortran
> setenv F2CLIBS_PREFIX /sw64/lib
>
> sudo python setup.py install
Note that the lines with F2CLIBS didn't change anything after I added
them (presumably because gfortran wasn't having any problems...).

I tried using setenv LDFLAGS "-L/sw64/lib -ljpeg" but that hasn't helped
either.

In short, my guess is I need another setenv so that the script finds
/sw64/lib but I haven't been able to find the right one.

Thanks,
Dave

-- 
Associate Research Professor of Climatology
Dept of Earth and Environmental Science
MSEC 304; 801 Leroy Place
New Mexico Tech
Socorro, NM 87801
_______________________________________________
pyngl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/pyngl-talk
Received on Fri Sep 9 13:15:51 2011

This archive was generated by hypermail 2.1.8 : Mon Sep 12 2011 - 16:03:35 MDT