1 |
On 2013-08-22 00:19, Burcin Erocal wrote: |
2 |
> Hi, |
3 |
> |
4 |
> On Wed, 21 Aug 2013 20:02:02 +0800 |
5 |
> P Purkayastha <ppurka@×××××.com> wrote: |
6 |
> |
7 |
>> I need to have a personal installation of Sage to do development |
8 |
>> work. However, I also want to reduce my upgrade times by installing a |
9 |
>> system atlas. |
10 |
>> |
11 |
>> To do so, I added the science overlay and emerged |
12 |
>> sci-libs/atlas[lapack,fortran,threads]. Thereafter, I added the |
13 |
>> environment variable |
14 |
>> |
15 |
>> SAGE_ATLAS_LIB=/usr/lib |
16 |
>> |
17 |
>> and proceeded to compile sage in my home directory. Atlas fails with |
18 |
>> the error that it can not find liblapack. The exact error message is |
19 |
>> given below: |
20 |
>> |
21 |
>> Cannot find liblapack.* in /usr/lib |
22 |
>> Unable to find one of liblapack, libcblas, libatlas or libf77blas |
23 |
>> in the directory None |
24 |
>> Set SAGE_ATLAS_LIB to the directory containing liblapack, libcblas, |
25 |
>> libatlas and libf77blas (either .a, .so, .dylib extensions) if |
26 |
>> you wish to use existing ATLAS libraries. For more details, see |
27 |
>> http://sagemath.org/doc/installation/source.html#environment-variables |
28 |
>> Unset SAGE_ATLAS_LIB to build ATLAS from source. |
29 |
> |
30 |
> if you make Sage believe that the atlas package was installed properly, |
31 |
> the installation proceeds without trouble. So as a quick workaround, |
32 |
> just do |
33 |
> |
34 |
> touch spkg/installed/atlas-<version_number> |
35 |
> |
36 |
> I always do this on my system. It would be good to find out the proper |
37 |
> solution of course. :) |
38 |
> |
39 |
The main problem here is that Gentoo support the installation of |
40 |
multiple BLAS/LAPACK at once. |
41 |
For that reason there is no libraries on the system installed with the |
42 |
names: |
43 |
libcblas.* |
44 |
libf77blas.* |
45 |
liblapack.* |
46 |
|
47 |
My recommendation for you is to create a folder in your home directory |
48 |
and |
49 |
link all the libraries you need with the appropriate name in a lib |
50 |
subfolder |
51 |
and pass the parent directory to SAGE_ATLAS_LIB. |
52 |
|
53 |
Francois |