我正在尝试在ubuntu20.04上安装CGNS。当在bin中运行./build-cgns.sh时,我会得到以下错误:对dlsym的未定义引用、对dlerror的未定义引用,有人能在这方面提供帮助吗?我在网络上搜索,发现在链接器选项中添加一个-ldl标志可以解决这个问题。但是,当我在config-cgns.sh文件中检查时,有以下几行
if [ $TRAVIS_OS_NAME = "linux" ]; then
export FLIBS="-Wl,--no-as-needed -ldl"
export LIBS="-Wl,--no-as-needed -ldl"
OPTS="--enable-parallel --enable-cgnstools --with-tcl=/usr/lib --with-tk=/usr/lib"
autoconf
elsehttps://askubuntu.com/questions/1323339
复制相似问题