-
-
Save jdriordan/31c5178a1449f448dea94e6ab0346a39 to your computer and use it in GitHub Desktop.
Install pyhdf on Ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| wget -c http://ufpr.dl.sourceforge.net/project/pysclint/pyhdf/0.8.3/pyhdf-0.8.3.tar.gz | |
| tar zxvf pyhdf-0.8.3.tar.gz | |
| cd pyhdf-0.8.3 | |
| sudo apt-get install libhdf4-dev | |
| sudo apt-get install python2.7-dev | |
| cd pyhdf | |
| sudo apt-get install swig | |
| swig -python hdfext.i | |
| cd .. | |
| export INCLUDE_DIRS=/usr/include/hdf | |
| export LIBRARY_DIRS=/usr/lib | |
| sed -i "s/\(szip_installed\ =\ \)/\1False\#/" setup.py | |
| sudo python setup.py install -i $INCLUDE_DIRS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment