使用conda安装openmpi编译nwchem

编程入门 行业动态 更新时间:2024-10-09 00:50:16

使用<a href=https://www.elefans.com/category/jswz/34/1764671.html style=conda安装openmpi编译nwchem"/>

使用conda安装openmpi编译nwchem

1 遇到如下错误:找不到libpthread.so.0

configure:20418: checking whether FLIBS needs -lgcc_s
configure:20443: cc -o conftest -m64 -Wall -O3 -funroll-loops -ffast-math  -fopenmp -g  -I.  -I/home/apps/jinrf/nwchem-conda/nwchem/src/include -I/home/apps/jinrf/nwchem-conda/nwchem/src/tools/install/include -DGFORTRAN -DCHKUNDFLW -DGCC4 -DGCC46 -DEXT_INT -DLINUX -DLINUX64 -DUSE_OPENMP -DPARALLEL_DIAG -DTCE_CUDA -DOPENBLAS  -fopenmp -L/home/apps/jinrf/nwchem-conda/nwchem/lib/LINUX64 -L/home/apps/jinrf/nwchem-conda/nwchem/src/tools/install/lib  conftest.c -lm   -L/home/apps/jinrf/nwchem-conda/nwchem/lib/LINUX64 -L/home/apps/jinrf/nwchem-conda/nwchem/src/tools/install/lib -L/home/apps/jinrf/tools/anaconda3/envs/ompi/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0 -L/home/apps/jinrf/tools/anaconda3/envs/ompi/bin/../lib/gcc -L/home/apps/jinrf/tools/anaconda3/envs/ompi/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/lib/../lib -L/home/apps/jinrf/tools/anaconda3/envs/ompi/bin/../x86_64-conda-linux-gnu/sysroot/lib/../lib -L/home/apps/jinrf/tools/anaconda3/envs/ompi/bin/../x86_64-conda-linux-gnu/sysroot/usr/lib/../lib -L/home/apps/jinrf/tools/anaconda3/envs/ompi/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/lib -L/home/apps/jinrf/tools/anaconda3/envs/ompi/bin/../x86_64-conda-linux-gnu/sysroot/lib -L/home/apps/jinrf/tools/anaconda3/envs/ompi/bin/../x86_64-conda-linux-gnu/sysroot/usr/lib -lgfortran -lm -lgomp -lquadmath -lpthread >&5
/usr/bin/ld: cannot find /lib64/libpthread.so.0
/usr/bin/ld: cannot find /usr/lib64/libpthread_nonshared.a
collect2: error: ld returned 1 exit status
configure:20443: $? =

使用find命令在anaconda中查找.当前用的conda环境是ompi

apps@dgx-a100:~/jinrf/tools$ find ./ -name "*libpthread*"
./anaconda3/envs/gcc9/x86_64-conda_cos6-linux-gnu/sysroot/usr/lib/libpthread_nonshared.a
./anaconda3/envs/gcc9/x86_64-conda_cos6-linux-gnu/sysroot/usr/lib/libpthread.so
./anaconda3/envs/gcc9/x86_64-conda_cos6-linux-gnu/sysroot/usr/lib/libpthread.a
./anaconda3/envs/gcc9/x86_64-conda_cos6-linux-gnu/sysroot/lib/libpthread.so.0
./anaconda3/envs/gcc9/x86_64-conda_cos6-linux-gnu/sysroot/lib/libpthread-2.12.2.so
./anaconda3/envs/ompi/x86_64-conda-linux-gnu/sysroot/usr/lib64/libpthread_nonshared.a
./anaconda3/envs/ompi/x86_64-conda-linux-gnu/sysroot/usr/lib64/libpthread.so
./anaconda3/envs/ompi/x86_64-conda-linux-gnu/sysroot/lib64/libpthread.so.0
./anaconda3/envs/ompi/x86_64-conda-linux-gnu/sysroot/lib64/libpthread-2.12.so
./anaconda3/pkgs/gcc_impl_linux-64-7.3.0-habb00fd_1/x86_64-conda_cos6-linux-gnu/sysroot/usr/lib/libpthread_nonshared.a
./anaconda3/pkgs/gcc_impl_linux-64-7.3.0-habb00fd_1/x86_64-conda_cos6-linux-gnu/sysroot/usr/lib/libpthread.so
./anaconda3/pkgs/gcc_impl_linux-64-7.3.0-habb00fd_1/x86_64-conda_cos6-linux-gnu/sysroot/usr/lib/libpthread.a
./anaconda3/pkgs/gcc_impl_linux-64-7.3.0-habb00fd_1/x86_64-conda_cos6-linux-gnu/sysroot/lib/libpthread.so.0
./anaconda3/pkgs/gcc_impl_linux-64-7.3.0-habb00fd_1/x86_64-conda_cos6-linux-gnu/sysroot/lib/libpthread-2.12.2.so
./anaconda3/pkgs/gcc_impl_linux-64-7.3.0-hd420e75_5/x86_64-conda_cos6-linux-gnu/sysroot/usr/lib/libpthread_nonshared.a
./anaconda3/pkgs/gcc_impl_linux-64-7.3.0-hd420e75_5/x86_64-conda_cos6-linux-gnu/sysroot/usr/lib/libpthread.so
./anaconda3/pkgs/gcc_impl_linux-64-7.3.0-hd420e75_5/x86_64-conda_cos6-linux-gnu/sysroot/usr/lib/libpthread.a
./anaconda3/pkgs/gcc_impl_linux-64-7.3.0-hd420e75_5/x86_64-conda_cos6-linux-gnu/sysroot/lib/libpthread.so.0
./anaconda3/pkgs/gcc_impl_linux-64-7.3.0-hd420e75_5/x86_64-conda_cos6-linux-gnu/sysroot/lib/libpthread-2.12.2.so
./anaconda3/pkgs/sysroot_linux-64-2.12-h77966d4_13/x86_64-conda-linux-gnu/sysroot/usr/lib64/libpthread_nonshared.a
./anaconda3/pkgs/sysroot_linux-64-2.12-h77966d4_13/x86_64-conda-linux-gnu/sysroot/usr/lib64/libpthread.so
./anaconda3/pkgs/sysroot_linux-64-2.12-h77966d4_13/x86_64-conda-linux-gnu/sysroot/lib64/libpthread.so.0
./anaconda3/pkgs/sysroot_linux-64-2.12-h77966d4_13/x86_64-conda-linux-gnu/sysroot/lib64/libpthread-2.12.so

可以看到其中的一行为

/anaconda3/envs/ompi/x86_64-conda-linux-gnu/sysroot/lib64/libpthread.so.0

这表明,在ompi环境中是有libthread.so.0的,只不过是在sysroot/lib64/目录下,而从出错信息中可以看到,编译器的哭文件搜索路径只有sysroot/lib

更多推荐

使用conda安装openmpi编译nwchem

本文发布于:2024-03-23 21:50:39,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1743244.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:conda   openmpi   nwchem

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!