问题描述
我正在 centos7 系统上使用命令 pip3 install mpi4py 使用 pip 安装 mpi4py。
我收到此错误:
/glade/u/apps/ch/opt/openmpi/4.0.5/intel/19.0.5/bin/mpicc _configtest.o -L/glade/u/apps/ch/opt/python/3.7.9/gnu/9.1.0/lib -Lbuild/temp.linux-x86_64-3.7 -Wl,--enable-new-dtags,-R/glade/u/apps/ch/opt/python/3.7.9/gnu/9.1.0/lib -o _configtest
/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: /opt/pbs/lib/libpbs.so.0: undefined reference to `sec_set_context'
failure.
removing: _configtest.c _configtest.o
error: Cannot link MPI programs. Check your configuration!!!
----------------------------------------
有人有什么建议吗?
解决方法
在这种情况下,在 Cheyenne 的 HPC 集群上,您可能需要将这些参数添加到编译/链接命令 -L/opt/pbs/lib -Wl,-rpath,/opt/pbs/lib -lsec
或重新加载 ncarcompilers
模块。
不过,如果您在我们的系统上遇到任何类似问题,我建议您联系 NCAR 的 CISL 帮助台,因为我们有专门的人员团队来帮助用户解决此类问题。