help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Compiling from Source on Mint and adding ATLAS


From: louis scott
Subject: Re: Compiling from Source on Mint and adding ATLAS
Date: Wed, 3 Apr 2013 18:25:06 +0100

[SOLVED] 

Instructions for an ATLAS build are relatively straightforward now as it takes the LAPACK tar file as an input to configure, based on this post:

Building most other packages is as easy as downloading and for instance:
# Fast light toolkit
tar zxvf ../Downloads/fltk-1.3.2-source.tar.gz
cd fltk-1.3.2
./configure --prefix=/usr/local/fltk-1.3.2 CFLAGS="-fPIC" CXXFLAGS="-fPIC"
make -j 4 # -if 4 cores
su
make install

I did learn a few things:
1. installing multiple versions of the c,gcc and gfortran compilers is best done with update-alternatives for the c and slaves for the gcc, gfortran
2. Screw up on a virtual machine that you can roll back
3. Use checkinstall. At least on Ubuntu, it will show up on you package manager making for easy uninstall when you wish to rebuild
4. Don't believe John Eaton (>.-) at least on April 1.

Remaining issues:
Installing ARPACK (and QRUPDATE).
It seems to build fine but does not get into octave. I am told to edit the UTIL/second.f file from EXTERNAL ETIME to INTRINSIC ETIME.  Can anyone confirm as this was offered without explanation.

For ~/.bash_profile or .bashrc
#
# export PATH=/usr/local/octave-3.6.3/bin:${PATH}
# export MANPATH=/usr/local/octave-3.6.3/share/man:${MANPATH}
# export INFOPATH=/usr/local/octave-3.6.3/share/info:${INFOPATH}
#


./configure --prefix=/usr/local/octave-3.6.4                    \
  --with-fltk-prefix=/usr/local/fltk-1.3.2                      \
  --with-arpack-libdir=/usr/local/arpack-ng-3.1.3               \
  --with-qrupdate-libdir=/usr/lib/qrupdate                      \
  --enable-readline                                             \
  --with-blas="-lptcblas -lptf77blas -latlas" `: IF APPLICABLE` \
  CPPFLAGS="-I/usr/local/atlas-3.10.1/include"                  \
  LDFLAGS="-L/usr/local/atlas-3.10.1/lib -L/usr/local/arpack-ng-3.1.3"

make -j 4 2>&1 | tee output.txt
make check
checkinstall



On Fri, Dec 28, 2012 at 8:47 PM, Jordi Gutiérrez Hermoso <address@hidden> wrote:
On 28 December 2012 12:34, lascott <address@hidden> wrote:
> The goal is to get it to run with the ATLAS libraries.  I will post the
> solution once it happens.

The default Ubuntu binaries are already compiled against ATLAS. It's
the default dependency, but you can choose another BLAS implementation
if you wish.

The Debian binaries already give you a couple of choices for your
BLAS, so this alone is not a sufficient reason to want to compile from
source.

- Jordi G. H.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]