[MMTK] Trouble installing MMTK on Linux

Jaroslaw Kalinowski jak at biogeo.uw.edu.pl
Mon Oct 24 23:30:27 CEST 2005


The problem seems to be with local instalation of NetCDF - compiler can 
not find includes (netcdf.h: No such file or directory). You can either 
copy netcdf includes and libraries to system locations or fix setup.py:

    Extension('MMTK_DCD',
              ['Src/MMTK_DCD.c', 'Src/ReadDCD.c'],
              include_dirs=['Include','(path to your netcdf.h)'],
              libraries=libraries,
              library_dirs=['(path to your libnetcdf.a)']
              define_macros=macros),



On Mon, 24 Oct 2005 vanitha at cs.wisc.edu wrote:

> I installed Python 2.4.2, Numeric Python 24.0b2, Scientific Python 2.4.9,
> NetCDF 3.6.0 (all from source) in my home directory and I ran "python
> setup.py build" in the MMTK directory (version 2.4.2). I got the following
> errors when I did this:-
>
> running build
> running build_py
> running build_ext
> building 'MMTK_DCD' extension
> gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall
> -Wstrict-prototypes -fPIC -DEXTENDED_TYPES -IInclude
> -I/afs/cs.wisc.edu/u/v/a/vanitha/include/python2.4 -c Src/MMTK_DCD.c -o
> build/temp.linux-i686-2.4/Src/MMTK_DCD.o
> In file included from Src/MMTK_DCD.c:9:
> Include/MMTK/trajectory.h:14:20: netcdf.h: No such file or directory
> Include/MMTK/universe.h:109: warning: 'PyUniverse_API' defined but not used
> /afs/cs.wisc.edu/u/v/a/vanitha/include/python2.4/Scientific/netcdfmodule.h:242:
> warning: 'PyNetCDF_API' defined but not used
> error: command 'gcc' failed with exit status 1
>
> Earlier, when I installed NETCDF I got the following warning - "Not making
> 'f90/all' because no FORTRAN-90 compiler". Could this be the source of the
> problem? And when I try importing Scientific.IO.NetCDF I get an error.
>
> Looks like I have a bunch of different problems here... wondering if you
> have any idea what the source of the problem could be??
>
> FYI.. my home directory has /bin and a /lib folders and the python, sci
> py, num py and net cdf executables are all in the bin folder.
>
> Thanks in advance for your help,
>
> - Vanitha
>
>
>
>
>
> _______________________________________________
> mmtk maillist  -  mmtk at starship.python.net
> http://starship.python.net/mailman/listinfo/mmtk
>



More information about the mmtk mailing list