...
Code Block |
---|
cd grib_api
CC=gcc FC=gfortran ./configure --prefix=$(pwd)/myinstall --enable-static --enable-pthread \
--disable-shared --disable-jpeg --disable-omp-packing --disable-vector |
Note the use of the backslash '\' to allow the command to use two lines.
A quick description of what these options are for:
...
which will send all the output from the make command to the file 'make.out' as well as the terminal. This is recommended as the output is lengthy.
Info | ||
---|---|---|
| ||
If your computer has multiple cores as many do these days, you can exploit this by using the -j flag to make to build grib_api faster. e.g.
would allow make to compile 3 files at once - appropriate on a 4 core machine. |
Next, to verify grib_api works correctly run:
...