安装:sudo make install 6.安装netcdf-c 下载地址https://www.unidata.ucar.edu/software/netcdf/ 解压tar -zxvf netcdf-c-4.8.0.tar.gz 配置安装信息 CPPFLAGS=-I/usr/local/netcdf4/include LDFLAGS=-L/usr/local/netcdf4/lib ./configure --prefix=/usr/local/netcdf4 --disable-dap 注:sudoapt-...
7. 编译netcdf-c,需要hdf5和zlib ./configure CC=mpicc --prefix=/home/ydn/opt/software/netcdf-c-4.9.0/build LDFLAGS="-L/home/ydn/opt/software/hdf5-1.10.6/build/lib -L/home/ydn/opt/software/zlib-1.2.11/build/lib" CPPFLAGS="-I/home/ydn/opt/software/hdf5-1.10.6/build/include -I/ho...
# wget https://github.com/Unidata/netcdf-c/archive/refs/tags/v4.7.4.tar.gz -O netcdf-c-4.7.4.tar.gz# tar zxvf netcdf-c-4.7.4.tar.gz # cd netcdf-c-4.7.4# mkdir build&&cd build # CFLAGS="-I/usr/local/hdf5/include -I/usr/local/pnetcdf/include"\ CPPFLAGS="-I/usr/local...
SET(CMAKE_BUILD_TYPE "Debug") add_executable(helloworld_cmake helloworld.cpp) 1. 2. 3. 4. 5. 6. 7. 其实就三个东西,一个build空文件夹,CMakeLists.txt,helloworld.cpp。然后在build里cmake ..再make(打开vscode的终端Ctrl +` ,cd build),最终生成可执行文件。工程文件结构简单。 2.2 写launch.j...
7、安装NetCDF-C # wget https://github.com/Unidata/netcdf-c/archive/refs/tags/v4.7.4.tar.gz -O netcdf-c-4.7.4.tar.gz# tar zxvf netcdf-c-4.7.4.tar.gz # cd netcdf-c-4.7.4# mkdir build&&cd build # CFLAGS="-I/usr/local/hdf5/include -I/usr/local/pnetcdf/include"\ ...
后面经过反复测试发现有些安装是没有必要的,比如pnetcdf这种并行文件读写依赖包,还有netcdf-c的安装也不对,加上了各种—enable,结果测试的时候abinit提示权限问题。于是在原来编译理解的基础上,进行了大量的瘦身,做出了这个快速安装的简化版本。 提前配置的并source使之生效的环境变量文件添加的内容...