You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On both Fedora 29 and CentOS 7, the configure script is unable to find atlas. It seems that the installation process assumes that atlas will be installed in a specific location, but that location is the same across different versions of linux.
On both, I have the standard atlas and atlas-devel packages installed. These packages install the atlas library into /usr/lib64/atlas, in contrast to the /usr/lib/atlas-base/atlas on Ubuntu and Debian.
I think the problem that I encountered is due to hardcoded paths in on lines 56 and 59 in the configure.ac file. The surrounding code uses AC_CHECK_LIB, but reading the autotools documentation, it seems that one should be using AC_SEARCH_LIBS instead to maximize portability.
In any case, I was able to get the configure script to work after changing the hardcoded: /usr/lib/atlas-base/atlas and /usr/lib/atlas-base/atlas -llapack to /usr/lib64/atlas and /usr/lib64/atlas -lsatlas on lines 73 and 76 of configure.ac. The latter change, /usr/lib64/atlas -lsatlas, which replaces the -llapack flag, is needed because atlas changed library names (see here). The lapack on line 75 also needs to be substituted for satlas and finally, one also needs to replace the -llapack on line 128 with -lsatlas.
Perhaps a simple solution is to provide both a configure.ac.debian and configure.ac.redhat and then as part of the installation instructions tell the use which to use?
At the very least, hopefully reporting this issue helps others install necpp on redhat-based linux distros. Cheers!
The text was updated successfully, but these errors were encountered:
Edit: For necpp v1.6.1
On both Fedora 29 and CentOS 7, the configure script is unable to find atlas. It seems that the installation process assumes that atlas will be installed in a specific location, but that location is the same across different versions of linux.
On both, I have the standard
atlas
andatlas-devel
packages installed. These packages install the atlas library into/usr/lib64/atlas
, in contrast to the/usr/lib/atlas-base/atlas
on Ubuntu and Debian.I think the problem that I encountered is due to hardcoded paths in on lines 56 and 59 in the
configure.ac
file. The surrounding code usesAC_CHECK_LIB
, but reading the autotools documentation, it seems that one should be usingAC_SEARCH_LIBS
instead to maximize portability.In any case, I was able to get the configure script to work after changing the hardcoded:
/usr/lib/atlas-base/atlas
and/usr/lib/atlas-base/atlas -llapack
to/usr/lib64/atlas
and/usr/lib64/atlas -lsatlas
on lines 73 and 76 ofconfigure.ac
. The latter change,/usr/lib64/atlas -lsatlas
, which replaces the-llapack
flag, is needed because atlas changed library names (see here). Thelapack
on line 75 also needs to be substituted forsatlas
and finally, one also needs to replace the-llapack
on line 128 with-lsatlas
.Perhaps a simple solution is to provide both a
configure.ac.debian
andconfigure.ac.redhat
and then as part of the installation instructions tell the use which to use?At the very least, hopefully reporting this issue helps others install necpp on redhat-based linux distros. Cheers!
The text was updated successfully, but these errors were encountered: