pygrib
pygrib copied to clipboard
Trouble building setup.py
Hi, I am having difficulties building setup.py file. It seems that I am having trouble with the Jasper package. Below are the exact commands I executed to this point. Perhaps I have missed some steps?
Installing GFortran Compiler
sudo apt-get update sudo apt-get install gcc gfortran g++ build-essential
Installing Jasper Package
wget http://www.ece.uvic.ca/~frodo/jasper/software/jasper-1.900.1.zip unzip jasper-1.900.1.zip cd jasper-1.900.1 ./configure make make install
Installing GRIB Dependencies and GRIB API Package
sudo apt-get install libgrib-api-dev sudo apt-get build-dep libgrib-api-dev sudo apt-get install libgrib-api-tools sudo apt-get install python-numpy sudo apt-get install python-pyproj sudo apt-get install python2.7-dev
Building PyGrib Package
wget https://github.com/jswhit/pygrib/archive/master.zip unzip master.zip cd pygrib-master cp setup.cfg.template setup.cfg nano setup.cfg
The following was uncommented: #grib_api_dir=/usr/local/ #jasper_dir=/usr/local/ #png_dir=/usr #zlib_dir=/usr
python setup.py build
Either build Jasper as a shared library, or add '-fPIC' the the CFLAGS.