public inbox for gentoo-science@lists.gentoo.org
 help / color / mirror / Atom feed
From: "François Bissey" <fbissey@slingshot.co.nz>
To: gentoo-science@lists.gentoo.org
Subject: Re: [gentoo-science] sage on gentoo -- only use system atlas
Date: Thu, 22 Aug 2013 12:39:44 +1200	[thread overview]
Message-ID: <d411aa6f8ce2645bcb5a918bf3f46bc0@slingshot.co.nz> (raw)
In-Reply-To: <20130821141942.7add4823@carl.erocal.org>

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. :)
> 
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


  reply	other threads:[~2013-08-22  0:39 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 [this message]
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

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=d411aa6f8ce2645bcb5a918bf3f46bc0@slingshot.co.nz \
    --to=fbissey@slingshot.co.nz \
    --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