Created
August 5, 2017 17:49
-
-
Save wxguy/e862e63ec70fb2ac6075d510cef7a48d to your computer and use it in GitHub Desktop.
Installing pygrib on Cent OS 7/ Redhat 7
This file contains 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
Cent OS does not ship with pygrib module by default. The only way to install is to run from source or using distributions such as | |
conda. I succeed installing pygrib using pip and here is the documentation for future reference. | |
# Install all required libraries. | |
sudo yum install grib_api-* *jasper* libpng *zlib* *gfortran* libpng-* python-pip pyproj jpeg python-grib_api | |
# Install pygrin using pip | |
sudo pip install pygrib | |
Please remember that if you get some xxxxxx.h is missing error, then you have install xxxxxx-devel package. |
This got me closer to a successful install, but mine still fails with:
/usr/bin/ld: cannot find -leccodes
collect2: error: ld returned 1 exit status
error: command 'gcc' failed with exit status 1
I am getting the same fail, have you managed to resolve it?
/usr/bin/ld: cannot find -leccodes
It appears that eccodes is missing from your install. I don't have Cent OS any more, but it appears that you have to install eccodes0
or eccodes
package installed before you try pip.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This got me closer to a successful install, but mine still fails with:
/usr/bin/ld: cannot find -leccodes
collect2: error: ld returned 1 exit status
error: command 'gcc' failed with exit status 1