From: P Purkayastha <ppurka@gmail.com>
To: gentoo-science <gentoo-science@lists.gentoo.org>
Subject: Re: [gentoo-science] sage on gentoo -- only use system atlas
Date: Thu, 22 Aug 2013 16:11:44 +0800 [thread overview]
Message-ID: <CADZU3Nb7rt+hw64WCi+nQJa0ga++v85cgrP2ZJRRJKdFCVv2xA@mail.gmail.com> (raw)
In-Reply-To: <d411aa6f8ce2645bcb5a918bf3f46bc0@slingshot.co.nz>
[-- Attachment #1: Type: text/plain, Size: 2969 bytes --]
On Thu, Aug 22, 2013 at 8:39 AM, François Bissey <fbissey@slingshot.co.nz>wrote:
> On 2013-08-22 00:19, Burcin Erocal wrote:
>
>> Hi,
>>
>> On Wed, 21 Aug 2013 20:02:02 +0800
>> P Purkayastha <ppurka@gmail.com> wrote:
>>
>> 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.
>>>
>>
>> if you make Sage believe that the atlas package was installed properly,
>> the installation proceeds without trouble. So as a quick workaround,
>> just do
>>
>> touch spkg/installed/atlas-<version_number>
>>
>> I always do this on my system. It would be good to find out the proper
>> solution of course. :)
>>
>
Thanks! This makes the compilation proceed further. FYI, in sage-git, the
corresponding directory is SAGE_ROOT/local/var/lib/sage/installed
One question though: can this trick be used with the other packages such as
R, givaro, etc. If this can be done, then it will be so much easier to
upgrade sage! I wouldn't have to rely on luck on whether the build finishes
in some finite time. :-)
>> The main problem here is that Gentoo support the installation of
> multiple BLAS/LAPACK at once.
> For that reason there is no libraries on the system installed with the
> names:
> libcblas.*
> libf77blas.*
> liblapack.*
>
> My recommendation for you is to create a folder in your home directory and
> link all the libraries you need with the appropriate name in a lib
> subfolder
> and pass the parent directory to SAGE_ATLAS_LIB.
>
> Francois
Actually I do have those libraries. Only missing one is liblapack.*. It is
probably one of the similarly named libraries, except I don't know which. I
don't want to find out by hit and trial given how finicky atlas is.
~» ll /usr/lib/{libcblas.so,libf77blas.so,libatlas.so}
lrwxrwxrwx 1 root root 13 Aug 20 19:39 /usr/lib/libatlas.so -> libatlas.so.3
lrwxrwxrwx 1 root root 14 Sep 15 2012 /usr/lib/libcblas.so -> libgslcblas.so
lrwxrwxrwx 1 root root 15 Aug 20 19:39 /usr/lib/libf77blas.so ->
libf77blas.so.3
[-- Attachment #2: Type: text/html, Size: 4247 bytes --]
next prev parent reply other threads:[~2013-08-22 8:11 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CADZU3Nb7rt+hw64WCi+nQJa0ga++v85cgrP2ZJRRJKdFCVv2xA@mail.gmail.com \
--to=ppurka@gmail.com \
--cc=gentoo-science@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox