Skip to main content
 首页 » 编程设计

python之undefined symbol : __intel_sse2_strcpy

2025年02月15日8freeliver54

我正在尝试按照此处使用 setup.py 构建 部分下的说明在我们 super 计算机的登录节点上安装 phonopy https://atztogo.github.io/phonopy/install.html .

基本上,只有两个命令:

tar xvfz phonopy-1.11.2.tar.gz 
python setup.py install --user 

安装没问题;但是,当我使用它时,出现以下错误,提示 undefined symbol: __intel_sse2_strcpy。这是完整的错误消息:

/home/syuan43/.local/bin/bandplot  
Traceback (most recent call last): 
  File "/home/syuan43/.local/bin/bandplot", line 4, in <module> 
    __import__('pkg_resources').run_script('phonopy==1.11.8.5', 'bandplot') 
  File "/software/CentOS-6/tools/python-2.7.9/lib/python2.7/site-packages/pkg_resources/__init__.py", line 726, in run_script 
    self.require(requires)[0].run_script(script_name, ns) 
  File "/software/CentOS-6/tools/python-2.7.9/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1491, in run_script 
    exec(script_code, namespace, namespace) 
  File "/home/syuan43/.local/lib/python2.7/site-packages/phonopy-1.11.8.5-py2.7-linux-x86_64.egg/EGG-INFO/scripts/bandplot", line 52, in <module> 
 
  File "build/bdist.linux-x86_64/egg/phonopy/__init__.py", line 37, in <module> 
  File "build/bdist.linux-x86_64/egg/phonopy/api_phonopy.py", line 39, in <module> 
  File "build/bdist.linux-x86_64/egg/phonopy/structure/symmetry.py", line 37, in <module> 
  File "build/bdist.linux-x86_64/egg/phonopy/structure/spglib.py", line 35, in <module> 
  File "build/bdist.linux-x86_64/egg/phonopy/_spglib.py", line 7, in <module> 
  File "build/bdist.linux-x86_64/egg/phonopy/_spglib.py", line 6, in __bootstrap__ 
ImportError: /home/syuan43/.python-eggs/phonopy-1.11.8.5-py2.7-linux-x86_64.egg-tmp/phonopy/_spglib.so: undefined symbol: __intel_sse2_strcpy 

不确定这是否有帮助,这是我正在使用的模块:

$ module list 
Currently Loaded Modules: 
  1) ifort_icc/15.0   2) intel_mpi/5.0.1   3) python/2.7.9 

知道如何解决上述问题吗?或者有什么建议可能是什么原因造成的?

请您参考如下方法:

(老问题,但我会为下一个我添加一个答案。)

对我来说,这是一个编译器问题。正在做:

export CC=gcc 

在进行 pip 安装之前为我解决了这个问题。

另请参阅:https://github.com/jswhit/pyproj/issues/76