1 |
On Fri, 18 Oct 2013 20:21:25 -0300 |
2 |
José Romildo Malaquias <j.romildo@×××××.com> wrote: |
3 |
|
4 |
> Hello. |
5 |
> |
6 |
> I want to try the development version of GNU Octave[1] on my ~amd64 |
7 |
> gentoo linux system. |
8 |
> |
9 |
> After cloning the repository[2], reading the instructions at [3], |
10 |
> bootstrapping, changing to directory .build and running ./configure, I |
11 |
> am getting the error messages: |
12 |
> |
13 |
> [...] |
14 |
> checking for sgemm_ in -lblas... (cached) no |
15 |
> ../configure: line 32516: test: =: unary operator expected |
16 |
> ../configure: line 34026: test: =: unary operator expected |
17 |
> ../configure: line 35581: test: =: unary operator expected |
18 |
> configure: error: BLAS and LAPACK libraries are required |
19 |
> |
20 |
> |
21 |
> Any clues? |
22 |
> |
23 |
> [1] http://www.gnu.org/software/octave/get-involved.html |
24 |
> [2] http://www.octave.org/hg/octave |
25 |
> [3] http://www.octave.org/hg/octave/file/tip/etc/HACKING |
26 |
> |
27 |
> Romildo |
28 |
> |
29 |
|
30 |
I appears you have to configure octave with the output of pkg-config --libs |
31 |
{blas/lapack}. Here I have |
32 |
|
33 |
$ pkg-config --libs blas |
34 |
-lrefblas |
35 |
|
36 |
$ pkg-config --libs lapack |
37 |
-lreflapack -lrefblas |
38 |
|
39 |
So the following configure works here |
40 |
|
41 |
../configure --with-blas=refblas --with-lapack=reflapack |
42 |
|
43 |
Or you may get something like this (all on one line) to work |
44 |
|
45 |
../configure --with-blas=`pkg-config --libs blas | sed 's:-l::g' | sed |
46 |
's:[[:space:]].*$::g'` --with-lapack=`pkg-config --libs lapack | sed 's:-l::g' |
47 |
| sed 's:[[:space:]].*$::g'` |
48 |
|
49 |
There may be other things that are missing but I'm able to generate the |
50 |
makefiles with the above. |