[gradsusr] Installing grads from source
Jennifer M Adams
jadams21 at gmu.edu
Tue Oct 24 14:54:47 EDT 2017
You may be able to live without the gadap library, it is only needed for accessing station data via opendap. As for the error about M_PI, that is declared in the standard math library include file <math.h> which should be available on your system — the default location in /usr/include/math.h. If you get all the supplibs built, and still have trouble building GrADS, please send config.log as well as the output to the terminal when you run configure; all of that is helpful for debugging.
—Jennifer
> On Oct 24, 2017, at 4:16 AM, Zilore Mumba <zmumba at gmail.com> wrote:
>
> Hello once more. I am seeking help installing grads from source. I have been able to install 23 of the 25 libraries here http://cola.gmu.edu/grads/gadoc/supplibs2.html.
> The only ones I am yet to install are gadap and cairo only.
> When I try to install grads, I am encountering a problem of M_PI (pi) not being declared. I have tried to decalre but no success. I attach my config.log and and an extract of the make install output that shows on the screen. Somehow am not able to write to a makeinstall.log from the command make && make install.
>
> Assistance will be appreciated.
>
> output of "make && make install"
> make && make install
> Making all in src
> make[1]: Entering directory '/home/zmumba/grads/supplibs/src/grads-2.2.0/src'
> make all-am
> make[2]: Entering directory '/home/zmumba/grads/supplibs/src/grads-2.2.0/src'
> /bin/bash ../libtool --tag=CC --mode=compile gcc-7 -DHAVE_CONFIG_H -I. -I. -I/home/zmumba/grads/supplibs/include -I/home/zmumba/grads/supplibs/include/cairo -I/home/zmumba/grads/supplibs/include/freetype2 -I/home/zmumba/grads/supplibs/include -O -ansi -fPIC -rdynamic -c -o libgxpCairo_la-gxC.lo `test -f 'gxC.c' || echo './'`gxC.c
> libtool: compile: gcc-7 -DHAVE_CONFIG_H -I. -I. -I/home/zmumba/grads/supplibs/include -I/home/zmumba/grads/supplibs/include/cairo -I/home/zmumba/grads/supplibs/include/freetype2 -I/home/zmumba/grads/supplibs/include -O -ansi -fPIC -rdynamic -c gxC.c -fPIC -DPIC -o .libs/libgxpCairo_la-gxC.o
> gxC.c: In function 'gxCch':
> gxC.c:879:27: error: 'M_PI' undeclared (first use in this function); did you mean '__P'?
> if (rotate) rot = rot + M_PI/2;
> ^~~~
> __P
> gxC.c:879:27: note: each undeclared identifier is reported only once for each function it appears in
> Makefile:750: recipe for target 'libgxpCairo_la-gxC.lo' failed
> make[2]: *** [libgxpCairo_la-gxC.lo] Error 1
> make[2]: Leaving directory '/home/zmumba/grads/supplibs/src/grads-2.2.0/src'
> Makefile:543: recipe for target 'all' failed
> make[1]: *** [all] Error 2
> make[1]: Leaving directory '/home/zmumba/grads/supplibs/src/grads-2.2.0/src'
> Makefile:454: recipe for target 'all-recursive' failed
> make: *** [all-recursive] Error 1
>
> <config.log>_______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
--
Jennifer Miletta Adams
Center for Ocean-Land-Atmosphere Studies (COLA)
George Mason University
More information about the gradsusr
mailing list