Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I want to install or compile from source octave 3.6.4 in Ubuntu 12.04 (64 bit) that uses the ATLAS library (to make it fast when executing vectorized code).

Did anybody ever do that? Can somebody put together instructions how to do that?

I tried the following:

  • Get Octave sources
  • Get Atlas using apt-get install
  • Get Lapack sources (3.4.2)
  • edit the Lapack makefile to use /usr/lib/atlas-base/atlas/libblas.so.3gf as LIBBLAS
  • add /usr/atlas-base and /usr/atlas-base/atlas to /etc/ld.so.conf.d/libc.conf
  • in the octave sources directory ./configure, make
  • waiting waiting waiting
  • start octave and benchmark a matrix inversion: Still it is ~2 - 4 times slower than Matlab running on the same computer and actually not faster than it was before

Was my approach correct or should Octave be compiled differently?

Can I find out whether it is using Atlas correctly other than by a benchmark?

Thanks! Niels

share|improve this question
The following command shows you which dynamic libraries are used by octave. ldd which octave –  Gürsoy Dec 9 '14 at 21:52

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.