From: Steven Trogdon <strogdon@d.umn.edu>
To: gentoo-science@lists.gentoo.org
Subject: Re: [gentoo-science] Compiling the development version of GNU Octave
Date: Fri, 18 Oct 2013 20:15:10 -0500 [thread overview]
Message-ID: <20131018201510.0ee6c20f@ledaig.d.umn.edu> (raw)
In-Reply-To: <20131018232125.GA21649@jrm>
[-- 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 --]
prev parent reply other threads:[~2013-10-19 1:15 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
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=20131018201510.0ee6c20f@ledaig.d.umn.edu \
--to=strogdon@d.umn.edu \
--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