public inbox for gentoo-science@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-science] sage on gentoo -- only use system atlas
@ 2013-08-21 12:02 P Purkayastha
  2013-08-21 12:19 ` Burcin Erocal
  0 siblings, 1 reply; 9+ messages in thread
From: P Purkayastha @ 2013-08-21 12:02 UTC (permalink / raw
  To: gentoo-science

[-- Attachment #1: Type: text/plain, Size: 2344 bytes --]

Hi all,

  I need to have a personal installation of Sage to do development work.
However, I also want to reduce my upgrade times by installing a system
atlas.

  To do so, I added the science overlay and emerged
sci-libs/atlas[lapack,fortran,threads]. Thereafter, I added the environment
variable

SAGE_ATLAS_LIB=/usr/lib

and proceeded to compile sage in my home directory. Atlas fails with the
error that it can not find liblapack. The exact error message is given
below:

Cannot find liblapack.* in /usr/lib
Unable to find one of liblapack, libcblas, libatlas or libf77blas
in the directory None
Set SAGE_ATLAS_LIB to the directory containing liblapack, libcblas,
libatlas and libf77blas (either .a, .so, .dylib extensions) if
you wish to use existing ATLAS libraries. For more details, see
http://sagemath.org/doc/installation/source.html#environment-variables
Unset SAGE_ATLAS_LIB to build ATLAS from source.

I looked at the dependencies of sci-mathematics/sage in the sage-on-gentoo
overlay, and I see that virtual/cblas and virtual/lapack is pulled in by
sci-libs/fflas-ffpack. This ebuild is pulled in by sci-libs/linbox, and
finally linbox is pulled in by sage.

However, the following command only pulls in the virtual packages, which
means that I already have lapack installed, but probably under a different
library name.

~/tmp/sage-on-gentoo» emerge -pvq virtual/cblas virtual/lapack
[ebuild N ] virtual/cblas-2.0
[ebuild N ] virtual/lapack-3.4 USE="-doc"

Can anyone tell me which library name corresponds to liblapack.so? I can
then make a symlink and proceed with building my personal copy of sage.
Here is an output of equery files:

~/tmp/sage-on-gentoo» equery files atlas | grep '/usr/lib.*lapack'
/etc/env.d/alternatives/lapack/atlas-threads/usr/lib64/pkgconfig/lapack.pc
/etc/env.d/alternatives/lapack/atlas/usr/lib64/pkgconfig/lapack.pc
/usr/lib64/libatlclapack.so
/usr/lib64/libatlclapack.so.3
/usr/lib64/libatllapack.so
/usr/lib64/libatllapack.so.3
/usr/lib64/libptclapack.so
/usr/lib64/libptclapack.so.3
/usr/lib64/libptlapack.so
/usr/lib64/libptlapack.so.3
/usr/lib64/pkgconfig/atlas-clapack-threads.pc
/usr/lib64/pkgconfig/atlas-clapack.pc
/usr/lib64/pkgconfig/atlas-lapack-threads.pc
/usr/lib64/pkgconfig/atlas-lapack.pc

Thanks and regards,
    basu.

[-- Attachment #2: Type: text/html, Size: 2817 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2013-08-25  9:52 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-21 12:02 [gentoo-science] sage on gentoo -- only use system atlas P Purkayastha
2013-08-21 12:19 ` Burcin Erocal
2013-08-22  0:39   ` François Bissey
2013-08-22  8:11     ` P Purkayastha
2013-08-22 15:36       ` Sébastien Fabbro
2013-08-22 21:17         ` François Bissey
2013-08-23 15:30           ` P Purkayastha
2013-08-24 10:57             ` François Bissey
2013-08-25  9:52               ` P Purkayastha

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox