[Pkg-exppsy-pynifti] 回复: installation problem

Michael Hanke michael.hanke at gmail.com
Wed Apr 29 18:24:58 UTC 2009


Hi,

On Thu, Apr 30, 2009 at 01:42:32AM +0800, Shengwei Zhang wrote:
> Hi Micheal,
> 
> Linux version is 2.6.9-5.ELsmp (bhcompile at thor.perf.redhat.com) (gcc version 3.4.3 20041212 (Red Hat 3.4.3-9.EL4)). Hope this helps. Thank you!

Oh, that is ancient!

> On Wed, Apr 29, 2009 at 05:32:24AM +0800, Shengwei Zhang wrote:
> > Hi, I'm new to pynifti, and I'm trying to use a software that
> > requires it. When I'm trying to compile it from source, there're
> > some problems. 
> > 
> > First, how can I specify --include-dirs and --library-dirs options
> > to build the command like :python setup.py build ? Do I need to
> > specify them when using 'sudo python ... install'?
> > 
> > I've downloaded the python 2.5, swig 1.3.39, nifticlib and numpy,
> > the first three are installed. But the numpy seems to need a fortran
> > compiler and I'm not sure if it is installed successfully. Also I
> > type 'python setup.py build' and 'sudo python ... install' to build
> > the file, but when I fire up python and 'import nifti', the error
> > message below appears:

It is critical to have NumPy installed before PyNIfTI, since it depends
on it being available. However, getting numpy to run on RH EL4 might be
a tricky task. -- which I have never done before and probably never will
(given the age of that release).

Seriously, I'd consider upgrading the system to something more recent
before wasting time to figure out how to get NumPy running on it. There
are binary packages for numpy and pynifti for RH EL5 (or CentOS5, ...)
that you can simply install and use.

If you want to, or have to stick to EL4 you probably have to seek for
help on the NumPy user list -- although I'm not confident that many
people are still using that system.


Sorry,

Michael

-- 
GPG key:  1024D/3144BE0F Michael Hanke
http://apsy.gse.uni-magdeburg.de/hanke
ICQ: 48230050



More information about the Pkg-exppsy-pynifti mailing list