Having problem with gmt

i got this error gmt: symbol lookup error: /home/billi/miniconda3/bin/…/lib/libgmt.so.5: undefined symbol: GDALGetRasterCount and i dont know how to about it. i am new to gmt

That is an error/dependency conflict in your GMT conda installation. Not your fault and don’t really know what to tell you to do. I never used a GMT conda build.

okay sir.

sir i tried to build it from source but also encounter the following error
[ 3%] Building C object src/CMakeFiles/pthreads_example.dir/pthreads_example.c.o
[ 3%] Linking C executable pthreads_example
[ 3%] Built target pthreads_example
[ 3%] Generating gmt_colornames.h, gmt_color_rgb.h
[ 3%] Generating gmt_datums.h
[ 3%] Generating gmt_ellipsoids.h
[ 3%] Generating gmt_keycases.h, gmt_keywords.h
[ 3%] Generating gmtmath.h, gmtmath_op.h, gmtmath_explain.h
[ 3%] Generating grdmath.h, grdmath_op.h, grdmath_explain.h
[ 6%] Generating gmt_dimensions.h
[ 6%] Built target gen_gmt_headers
[ 6%] Building C object src/CMakeFiles/pslib.dir/postscriptlight.c.o
[ 6%] Linking C shared library libpostscriptlight.so
[ 10%] Built target pslib
[ 10%] Building C object src/CMakeFiles/gmtlib.dir/common_sighandler.c.o
/usr/local/gmt-5.4.5/src/common_sighandler.c: In function ‘sig_handler’:
/usr/local/gmt-5.4.5/src/common_sighandler.c:190:73: error: ‘sys_siglist’ undeclared (first use in this function)
/usr/local/gmt-5.4.5/src/common_sighandler.c:190:73: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [src/CMakeFiles/gmtlib.dir/build.make:130: src/CMakeFiles/gmtlib.dir/common_sighandler.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:610: src/CMakeFiles/gmtlib.dir/all] Error 2
make: *** [Makefile:156: all] Error 2

Regarding sig_handler we will need to know your exact Linux (?) OS type and version since it is hardware dependent. Otherwise that check can be turned off in cmake configs.

ubuntu linux 22.04

Looks like you’re using gmt 5.4.5. Please upgrade your gmt and then try to build!

Alright sir

After install gmt 6.1.1 it work. thank you all

Very good! Note that latest release is gmt 6.4.0. There are very very few downsides of using the latest and greatest…