* [gentoo-science] Compiling the development version of GNU Octave
@ 2013-10-18 23:21 José Romildo Malaquias
2013-10-19 1:15 ` Steven Trogdon
0 siblings, 1 reply; 2+ messages in thread
From: José Romildo Malaquias @ 2013-10-18 23:21 UTC (permalink / raw
To: gentoo-science
Hello.
I want to try the development version of GNU Octave[1] on my ~amd64
gentoo linux system.
After cloning the repository[2], reading the instructions at [3],
bootstrapping, changing to directory .build and running ./configure, I
am getting the error messages:
[...]
checking for sgemm_ in -lblas... (cached) no
../configure: line 32516: test: =: unary operator expected
../configure: line 34026: test: =: unary operator expected
../configure: line 35581: test: =: unary operator expected
configure: error: BLAS and LAPACK libraries are required
Any clues?
[1] http://www.gnu.org/software/octave/get-involved.html
[2] http://www.octave.org/hg/octave
[3] http://www.octave.org/hg/octave/file/tip/etc/HACKING
Romildo
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [gentoo-science] Compiling the development version of GNU Octave
2013-10-18 23:21 [gentoo-science] Compiling the development version of GNU Octave José Romildo Malaquias
@ 2013-10-19 1:15 ` Steven Trogdon
0 siblings, 0 replies; 2+ messages in thread
From: Steven Trogdon @ 2013-10-19 1:15 UTC (permalink / raw
To: gentoo-science
[-- Attachment #1: Type: text/plain, Size: 1542 bytes --]
On Fri, 18 Oct 2013 20:21:25 -0300
José Romildo Malaquias <j.romildo@gmail.com> wrote:
> Hello.
>
> I want to try the development version of GNU Octave[1] on my ~amd64
> gentoo linux system.
>
> After cloning the repository[2], reading the instructions at [3],
> bootstrapping, changing to directory .build and running ./configure, I
> am getting the error messages:
>
> [...]
> checking for sgemm_ in -lblas... (cached) no
> ../configure: line 32516: test: =: unary operator expected
> ../configure: line 34026: test: =: unary operator expected
> ../configure: line 35581: test: =: unary operator expected
> configure: error: BLAS and LAPACK libraries are required
>
>
> Any clues?
>
> [1] http://www.gnu.org/software/octave/get-involved.html
> [2] http://www.octave.org/hg/octave
> [3] http://www.octave.org/hg/octave/file/tip/etc/HACKING
>
> Romildo
>
I appears you have to configure octave with the output of pkg-config --libs
{blas/lapack}. Here I have
$ pkg-config --libs blas
-lrefblas
$ pkg-config --libs lapack
-lreflapack -lrefblas
So the following configure works here
../configure --with-blas=refblas --with-lapack=reflapack
Or you may get something like this (all on one line) to work
../configure --with-blas=`pkg-config --libs blas | sed 's:-l::g' | sed
's:[[:space:]].*$::g'` --with-lapack=`pkg-config --libs lapack | sed 's:-l::g'
| sed 's:[[:space:]].*$::g'`
There may be other things that are missing but I'm able to generate the
makefiles with the above.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-10-19 1:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-18 23:21 [gentoo-science] Compiling the development version of GNU Octave José Romildo Malaquias
2013-10-19 1:15 ` Steven Trogdon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox