Install h5py in Mac OS X 10.6.3

Posted by zyq524 on Stack Overflow See other posts from Stack Overflow or by zyq524
Published on 2010-05-19T22:04:53Z Indexed on 2010/05/19 22:10 UTC
Read the original article Hit count: 238

Filed under:
|

I'm trying to install h5py in Mac OS X 10.6.3.

First I installed HDF5 1.8, which used the following commands:

./configure \
--prefix=/Library/Frameworks/Python.framework/Versions/Current \
--enable-shared \
--enable-production \
--enable-threadsafe \
CPPFLAGS=-I/Library/Frameworks/Python.framework/Versions/Current/include \
LDFLAGS=-L/Library/Frameworks/Python.framework/Versions/Current/lib

make
make check
sudo make install

Then install h5py:

/Library/Frameworks/Python.framework/Versions/Current/bin/python \
setup.py \
build \
--api=18 \
--hdf5=/Library/Frameworks/Python.framework/Versions/Current

Then I got the errors:


Configure: Autodetecting HDF5 settings... Custom HDF5 dir: /Library/Frameworks/Python.framework/Versions/Current Custom API level: (1, 8) ld: warning: in detect/vers.o, file was built for unsupported file format which is not the architecture being linked (i386)

ld: warning: in /Library/Frameworks/Python.framework/Versions/Current/lib/libhdf5.dylib, file was built for unsupported file format which is not the architecture being linked (i386)

Undefined symbols: "_main", referenced from: start in crt1.10.5.o

ld: symbol(s) not found

collect2: ld returned 1 exit status

Failed to compile HDF5 test program.  Please check to make sure:

* You have a C compiler installed
* A development version of Python is installed (including header files)
* A development version of HDF5 is installed (including header files)
* If HDF5 is not in a default location, supply the argument --hdf5=<path>

error: command 'cc' failed with exit status 1

I just updated my Xcode, I don't know whether this is because my gcc's default setting. If so, how can I get rid of this error?

Thanks.

© Stack Overflow or respective owner

Related posts about python

Related posts about hdf5

  • Optimising speeds in HDF5 using Pytables

    as seen on Stack Overflow - Search for 'Stack Overflow'
    The problem is with respect to the writing speed of the computer (10 * 32 bit machine) and the postgresql query performance.I will explain the scenario in detail. I have data about 80 Gb (along with approprite database indexes in place). I am trying to read it from Postgresql database and writing… >>> More

  • HDF5 .Net wrapper

    as seen on Stack Overflow - Search for 'Stack Overflow'
    I'm getting ( http://www.hdfgroup.org/projects/hdf.net/) The specified module could not be found. (Exception from HRESULT: 0x8007007E) from the dependency walker i'm seeing that SZLIBDLL.DLL is missing i tried to download it from random place but then i got another error. Does any one had… >>> More

  • Install h5py in Mac OS X 10.6.3

    as seen on Stack Overflow - Search for 'Stack Overflow'
    I'm trying to install h5py in Mac OS X 10.6.3. First I installed HDF5 1.8, which used the following commands: ./configure \ --prefix=/Library/Frameworks/Python.framework/Versions/Current \ --enable-shared \ --enable-production \ --enable-threadsafe \ CPPFLAGS=-I/Library/Frameworks/Python.framework/Versions/Current/include… >>> More

  • Error mpicc command not found [closed]

    as seen on Programmers - Search for 'Programmers'
    I want to compile hdf5 but I find the following error: /hdf5/hdf5-1.6.9CC=/usr/local/openmpi/bin/mpicc ./configure /home/sknandi/Research/ Simulation/hdf5/parallel_fdf5 CC=/usr/local/openmpi/bin/mpicc: Command not found. The result of echo $PATH is /hdf5/hdf5-1.6.9echo $PATH /priv/myriad3/ayw/research/COALA/visit/bin:/usr/local/bin:/usr/bin:/bin:/pkg/linux/intel/composerxe-2011… >>> More

  • Storage for large gridded datasets

    as seen on Stack Overflow - Search for 'Stack Overflow'
    I am looking for a good storage format for large, gridded datasets. The application is meteorology, and we would prefer a format that is common within this field (to help exchange data with others). I don't need to deal with special data structures, and there should be a Fortran API. I am currently… >>> More