- 积分
- 3200
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2012-5-10
- 最后登录
- 1970-1-1
|
楼主 |
发表于 2014-7-23 09:58:46
|
显示全部楼层
[root@mgmt ncview-2.1.2]# ./configure --with-nc-config=/usr/local/GEOS-Chem-Libraries/bin/nc-config
----------- Configure Summary ----------
Compiler:
CC = gcc
Runtime path flags = -Wl,-rpath,/usr/local/GEOS-Chem-Libraries/lib -Wl,-rpath,/usr/local/GEOS-Chem-Libraries/lib
UDUNITS:
not found. Specify --with-udunits2_incdir=... and --with-udunits2_libdir=... flags to enable
NETCDF:
VERSION = netCDF 4.2
COMPILER USED = gcc
NETCDF_CPPFLAGS = -I/usr/local/GEOS-Chem-Libraries/include -I/usr/local/GEOS-Chem-Libraries/include
NETCDF_LDFLAGS = -L/usr/local/GEOS-Chem-Libraries/lib -L/usr/local/GEOS-Chem-Libraries/lib -lnetcdf -lhdf5_hl -lhdf5 -lm -lz
NETCDF_V4 = yes
X:
X_CFLAGS =
X11_LIBS = -lX11
XAW_LIBS = -lXaw -lXt
X_PRE_LIBS = -lSM -lICE
X_LIBS =
X_EXTRA_LIBS =
PNG:
not found. Install libpng, or specify --with-png_incdir=... and --with-png_libdir=... flags to enable
把nc-config的路径改好之后(重新安装的netcdf 4.2中的nc-config路径),这是回复的一部分,也不知道是不是正确的。然后是 make 回复有错误(部分如下):
mv -f .deps/handle_rc_file.Tpo .deps/handle_rc_file.Po
gcc -g -O2 -L/usr/local/GEOS-Chem-Libraries/lib -L/usr/local/GEOS-Chem-Libraries/lib -lnetcdf -lhdf5_hl -lhdf5 -lm -lz -lSM -lICE -lX11 -Wl,-rpath,/usr/local/GEOS-Chem-Libraries/lib -Wl,-rpath,/usr/local/GEOS-Chem-Libraries/lib -o ncview ncview.o file.o util.o do_buttons.o file_netcdf.o view.o do_print.o epic_time.o interface.o x_interface.o dataedit.o display_info.o plot_xy.o utils.o range.o printer_options.o overlay.o filesel.o set_options.o plot_range.o udu.o SciPlot.o RadioWidget.o cbar.o utCalendar2_cal.o calcalcs.o colormap_funcs.o make_tc_data.o stringlist.o handle_rc_file.o -lm -L/usr/local/GEOS-Chem-Libraries/lib -L/usr/local/GEOS-Chem-Libraries/lib -lnetcdf -lhdf5_hl -lhdf5 -lm -lz -lXaw -lXt -lSM -lICE -lX11 -lpng
/usr/bin/ld: cannot find -lpng
collect2: ld returned 1 exit status
make[2]: *** [ncview] Error 1
make[2]: Leaving directory `/usr/local/ncview-2.1.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/ncview-2.1.2'
make: *** [all] Error 2
这又是哪里出现了问题?? |
|