|
想用setup.py安装phono3py, 按照该网址(https://atztogo.github.io/phono3 ... ding-using-setup-py)给出的步骤,出现以下错误提示。已经安装过phonopy,也是用的setup.py。可以正常使用,再安装phono3py就出现这个问题了,不知道是不是因为安装了phonopy,我想计算拉曼,phonopy和phono3py都要用。它提示gcc failed with exist status, 意思是之前的gcc不对吗?我看我的gcc版本是4.4.7,是版本问题吗? 哪位大神帮我解答一下,十分感谢!!
输入 python setup.py install ~user 的时候出现以下问题:
distutils is used.
/home/zhaolei/phonopy/anaconda2/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'test_suite'
warnings.warn(msg)
/home/zhaolei/phonopy/anaconda2/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'tests_require'
warnings.warn(msg)
running install
running build
running build_py
running build_ext
building 'phono3py._lapackepy' extension
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ic/harmonic_h -I/home/zhaolei/phonopy/anaconda2/lib/python2.7/site-packages/numpy/core/include -I/home/zhaolei/phonopy/anaconda2/include/python2.7 -c c/_lapackepy.c -o build/temp.linux-x86_64-2.7/c/_lapackepy.o -fopenmp
In file included from /home/zhaolei/phonopy/anaconda2/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1777,
from /home/zhaolei/phonopy/anaconda2/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:18,
from /home/zhaolei/phonopy/anaconda2/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
from c/_lapackepy.c:38:
/home/zhaolei/phonopy/anaconda2/lib/python2.7/site-packages/numpy/core/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"
In file included from c/_lapackepy.c:39:
c/harmonic_h/lapack_wrapper.h:45:21: error: lapacke.h: No such file or directory
In file included from c/_lapackepy.c:39:
c/harmonic_h/lapack_wrapper.h:49: error: expected declaration specifiers or '...' before 'lapack_complex_double'
In file included from c/_lapackepy.c:40:
c/harmonic_h/phonon.h:43: error: expected declaration specifiers or '...' before 'lapack_complex_double'
c/harmonic_h/phonon.h:67: error: expected declaration specifiers or '...' before 'lapack_complex_double'
In file included from c/_lapackepy.c:41:
c/harmonic_h/phonoc_array.h:57: error: expected specifier-qualifier-list before 'lapack_complex_double'
c/_lapackepy.c: In function 'py_phonopy_zheev':
c/_lapackepy.c:137: error: 'lapack_complex_double' undeclared (first use in this function)
c/_lapackepy.c:137: error: (Each undeclared identifier is reported only once
c/_lapackepy.c:137: error: for each function it appears in.)
c/_lapackepy.c:137: error: 'a' undeclared (first use in this function)
c/_lapackepy.c:150: error: expected expression before ')' token
c/_lapackepy.c:153: warning: implicit declaration of function 'lapack_make_complex_double'
c/_lapackepy.c:156: error: too many arguments to function 'phonopy_zheev'
c/_lapackepy.c:159: warning: implicit declaration of function 'lapack_complex_double_real'
c/_lapackepy.c:160: warning: implicit declaration of function 'lapack_complex_double_imag'
error: command 'gcc' failed with exit status 1
|
|