Hi together, I'm trying to install pyhdf to work with NASA's HDF-EOS
files. Unfortunately it does not work, if I follow these instructions:
http://pysclint.sourceforge.net/pyhdf/install.html

So I compiled szlib and hdf4 succesfully and did in the sage shell (I
have sage 4.3.3 and Suse 11.1):

$ export LIBRARY_DIRS=/usr/local/hdf4-4.2.5/lib/
$ export INCLUDE_DIRS=/usr/local/hdf4-4.2.5/include/
$ python setup.py install

and got:
running install
running bdist_egg
running egg_info
running build_src
building extension "pyhdf._hdfext" sources
writing pyhdf.egg-info/PKG-INFO
writing top-level names to pyhdf.egg-info/top_level.txt
writing dependency_links to pyhdf.egg-info/dependency_links.txt
reading manifest file 'pyhdf.egg-info/SOURCES.txt'
writing manifest file 'pyhdf.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
running build_ext
customize UnixCCompiler
customize UnixCCompiler using build_ext
building 'pyhdf._hdfext' extension
compiling C sources
C compiler: gcc -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-
prototypes -fPIC

compile options: '-I/usr/local/hdf4-4.2.5/include/ -I/home/max/
sage-4.3.3-linux-64bit-opensuse_11.1_x86_64-x86_64-Linux/local/lib/
python2.6/site-packages/numpy/core/include -I/home/max/sage-4.3.3-
linux-64bit-opensuse_11.1_x86_64-x86_64-Linux/local/include/python2.6 -
c'
extra options: '-DNOSZIP'
gcc -pthread -shared build/temp.linux-x86_64-2.6/pyhdf/hdfext_wrap.o -
L/usr/local/hdf4-4.2.5/lib/ -lmfhdf -ldf -ljpeg -lz -o build/lib.linux-
x86_64-2.6/pyhdf/_hdfext.so
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/
ld: /usr/local/hdf4-4.2.5/lib//libmfhdf.a(mfsd.o): relocation
R_X86_64_32 against `a local symbol' can not be used when making a
shared object; recompile with -fPIC
/usr/local/hdf4-4.2.5/lib//libmfhdf.a: could not read symbols: Bad
value
collect2: ld returned 1 exit status
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/
ld: /usr/local/hdf4-4.2.5/lib//libmfhdf.a(mfsd.o): relocation
R_X86_64_32 against `a local symbol' can not be used when making a
shared object; recompile with -fPIC
/usr/local/hdf4-4.2.5/lib//libmfhdf.a: could not read symbols: Bad
value
collect2: ld returned 1 exit status
error: Command "gcc -pthread -shared build/temp.linux-x86_64-2.6/pyhdf/
hdfext_wrap.o -L/usr/local/hdf4-4.2.5/lib/ -lmfhdf -ldf -ljpeg -lz -o
build/lib.linux-x86_64-2.6/pyhdf/_hdfext.so " failed with exit status
1

Thanks, Max

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to