如何在安装degrib NOAA时解决clang错误?

时间:2018-12-28 01:17:00

标签: macos clang noaa nws

我正在尝试在Macbook Pro上安装degrib软件。但是,在编译时,出现以下错误:

gcc cstart.c -O3 -Wall -fsigned-char -pedantic -DSIZEOF_LONG_INT=8 -D_UNIX_ -D_DWML_ -I../emapf-c -I../mdl_g2c -I../libaat -I../netcdf/libsrc -I../gd -I../zlib/contrib/minizip -I../zlib -I../degrib -I../libxml/include -I../dwmllib myutil.o clock.o mymapf.o myerror.o myassert.o tendian.o scan.o metaname.o metaparse.o hazard.o weather.o grib1tab.o metaprint.o writeflt.o chain.o writecsv.o writeshp.o writegra.o writenc.o readnc.o interp.o inventory.o probe.o userparse.o tdlpack.o degrib1.o degrib2.o pack.o cube.o drawgrib.o commands.o database.o mapini.o drawlib.o genprobe.o solar.o grpprobe.o sector.o writekml.o split.o myzip.o -L../gd -lgd -L../dwmllib -ldwml -L../libxml/.libs/ -lxml2 -L../mdl_g2c -lmdl_g2c -L../emapf-c/ -lemapf -L../netcdf/libsrc/ -lnetcdf -L../jpeg2000/src/libjasper/jpc/.libs/ -ljpc -L../jpeg2000/src/libjasper/base/.libs/ -lbase -L../libpng -lpng -L../zlib/contrib/minizip -lminizip -L../zlib -lz -L../libaat -laat -L/usr/lib -lm -o degrib Undefined symbols for architecture x86_64: "_lzma_auto_decoder", referenced from: _xz_make in libxml2.a(xzlib.o) "_lzma_code", referenced from: _xz_decomp in libxml2.a(xzlib.o) "_lzma_end", referenced from: ___libxml2_xzclose in libxml2.a(xzlib.o) "_lzma_properties_decode", referenced from: _xz_make in libxml2.a(xzlib.o) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[1]: *** [degrib] Error 1 make: *** [degrib/degrib] Error 2

有关安装的更多详细信息,请参见:https://www.weather.gov/mdl/degrib_compile_unix

如果有人可以提供帮助,我将非常感谢。我已经向作者发送了电子邮件,但由于联邦政府关闭,他们无法回复。

0 个答案:

没有答案