theochem / horton

HORTON: Helpful Open-source Research TOol for N-fermion systems
http://theochem.github.io/horton/
GNU General Public License v3.0
92 stars 40 forks source link

An ERROR in CentOS7 #237

Closed LZ0211 closed 7 years ago

LZ0211 commented 7 years ago

compile failed and the error info is /bin/ld: cannot find -latlas I search the atlas directory ld -latlas --verbose

attempt to open /usr/x86_64-redhat-Linux/lib64/libatlas.so failed
attempt to open /usr/x86_64-redhat-linux/lib64/libatlas.a failed
attempt to open /usr/lib64/libatlas.so failed
attempt to open /usr/lib64/libatlas.a failed
attempt to open /usr/local/lib64/libatlas.so failed
attempt to open /usr/local/lib64/libatlas.a failed
attempt to open /lib64/libatlas.so failed
attempt to open /lib64/libatlas.a failed
attempt to open /usr/x86_64-redhat-linux/lib/libatlas.so failed
attempt to open /usr/x86_64-redhat-linux/lib/libatlas.a failed
attempt to open /usr/local/lib/libatlas.so failed
attempt to open /usr/local/lib/libatlas.a failed
attempt to open /lib/libatlas.so failed
attempt to open /lib/libatlas.a failed
attempt to open /usr/lib/libatlas.so failed
attempt to open /usr/lib/libatlas.a failed
ld: cannot find -latlas

I found that atlas package was installed in /usr/lib64/atlas/ directory and no file named libatlas.so

lrwxrwxrwx. 1 root root       17 6月  20 22:31 libsatlas.so -> libsatlas.so.3.10
lrwxrwxrwx. 1 root root       17 6月  20 22:31 libsatlas.so.3 -> libsatlas.so.3.10
-rwxr-xr-x. 1 root root 10852104 11月 20 2015 libsatlas.so.3.10
lrwxrwxrwx. 1 root root       17 6月  20 22:31 libtatlas.so -> libtatlas.so.3.10
lrwxrwxrwx. 1 root root       17 6月  20 22:31 libtatlas.so.3 -> libtatlas.so.3.10
-rwxr-xr-x. 1 root root 10959464 11月 20 2015 libtatlas.so.3.10

From the offical infomation https://www.centos.org/forums/viewtopic.php?f=14&t=48543

Names and content of atlas libraries have changed recently. Try -L/usr/lib64/atlas -lsatlas or -L/usr/lib64/atlas -ltatlas instead of -lcblas.

Solution: create a file link from /usr/lib64/atlas/libsalas.so.3 to /usr/lib64/libatlas.so sudo ln -sf /usr/lib64/atlas/libsalas.so.3 /usr/lib64/libatlas.so

tovrstra commented 7 years ago

Can you post the output of ./setup.py without any arguments? Thanks.

tovrstra commented 7 years ago

I'll test on a recent CentOS 7 to see what the problem is.