Installing PyHDF

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • teraom
    New Member
    • Apr 2010
    • 1

    Installing PyHDF

    Hi,

    I am working on porting an existing windows application to mac OS X and I am stuck. I am not able to install pyhdf on my mac. [OS X 10.5.8]

    I have HDF installed through macports.

    Easy_install does not work either

    Code:
    $ easy_install pyhdf
    Searching for pyhdf
    Reading http://pypi.python.org/simple/pyhdf/
    Reading ftp://nordet.qc.dfo-mpo.gc.ca/pub/soft/pyhdf
    error: (61, 'Connection refused')
    I tried installing from the source code, but I get this error message :

    Code:
    compile options: '-I/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/numpy/core/include -I/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c'
    gcc -Wl,-F. -bundle -undefined dynamic_lookup -arch i386 -arch ppc build/temp.macosx-10.5-i386-2.5/pyhdf/hdfext_wrap.o -lmfhdf -ldf -lsz -ljpeg -lz -o build/lib.macosx-10.5-i386-2.5/pyhdf/_hdfext.so 
    [B]ld: library not found for -lmfhdf[/B]
    [B]collect2: ld returned 1 exit status[/B]
    I am badly in need of help! Been stuck with this for days now.
    Would appreciate any pointers and suggestions.

    Thanks,
    B
Working...