在 Ubuntu 18.04 上安装 Cantera 1.8.0

在 Ubuntu 18.04 上安装 Cantera 1.8.0

我正在尝试安装 cantera 1.8.0。这是一个较旧的版本,但我需要在我的 Ubuntu 18.04 上安装它。我 在此处输入图片描述

错误代码为

/usr/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
 #warning "Using deprecated NumPy API, disable it by " \
  ^
g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -O3 -Wall -fPIC build/temp.linux-x86_64-2.6/src/pycantera.o -L/home/anirudh/Downloads/Cantera/cantera-1.8.0-beta/build/lib/x86_64-unknown-linux-gnu -L/home/anirudh/Downloads/Cantera/cantera-1.8.0-beta/build/lib/x86_64-unknown-linux-gnu -L/usr/local/lib -lclib -luser -loneD -lzeroD -lequil -lkinetics -ltransport -lthermo -lctnumerics -lctmath -ltpx -lctspectra -lconverters -lctbase -lsundials_cvodes -lsundials_nvecserial -lctlapack -lctblas -lctf2c -lctf2c -lctf2c -lm -o build/lib.linux-x86_64-2.6/Cantera/_cantera.so -L/usr/local/lib
/usr/bin/ld: /usr/local/lib/libsundials_cvodes.a(cvodes.o): relocation R_X86_64_PC32 against symbol `stderr@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
error: command 'g++' failed with exit status 1
Makefile:53: recipe for target '_build' failed
make[1]: *** [_build] Error 1
make[1]: Leaving directory '/home/anirudh/Downloads/Cantera/cantera-1.8.0-beta/Cantera/python'
Makefile:138: recipe for target 'python' failed
make: *** [python] Error 2

相关内容