Menu

Installing acousto 1.5 on Ubuntu 12.04 or 13.04, lscalapack not found config error

Help
2013-07-01
2013-07-19
  • David Pearce

    David Pearce - 2013-07-01

    I am trying to install acousto 1.5 on Ubuntu 12.04 and 13.04 (all 64 bit)
    I followed the instructions in the manual on Linux installation and configure fails with the following:

    checking for Cblacs_pinfo in -lblacsCinit-openmpi... yes
    checking for sl_init_ in -lscalapack... no
    configure: error: Cannot find scalapack. Re-run the configure script providing the path to working scalapack

    I have tried the --with-libconfig=/usr/lib/libscalapack.a option
    Ubuntu is using Scalapack 1.8.x

     
  • Vincenzo Marchese

    Hi David,
    the option --with-libconfig is just for the libconfig library.
    The configure script needs to know where the math libraries are (Lapack, blacs, scalapack)
    Can you try with the following:
    ./configure --with-libconfig=[YOUR LIBCONFIG DIR] --with-libs=/usr/lib
    ?

     
  • David Pearce

    David Pearce - 2013-07-01

    No change.
    This is from config.log:
    configure:4306: checking for sl_init_ in -lscalapack
    configure:4331: /usr/bin/mpicc -o conftest -g -O2 -L/usr/lib -L/usr/lib conftest.c -lscalapack -L/usr/lib -L/usr/lib -lscalapack -lblacsCinit-openmpi -lblacs-openmpi -lblacsCinit-openmpi -llapack -lgfortran -lm -lmpi_f77 >&5
    /usr/bin/ld: cannot find -llapack
    collect2: error: ld returned 1 exit status
    configure:4331: $? = 1
    configure: failed program was:
    | / confdefs.h /
    I notice that it is actually llapack, not lscalapack that is missing

     
  • Vincenzo Marchese

    Is liblapack.a or liblapack.so present in your /usr/lib directory ?

     
  • David Pearce

    David Pearce - 2013-07-01

    No, I installed lblapack-dev (which also calls libblas-dev) and now configure runs

     
  • Umberto Iemma

    Umberto Iemma - 2013-07-01

    David,
    actually, when installing on Ubuntu, Acousto needs the "full" lapack/blas installation, including also the development packages which are those including the statis libraries.
    Did you follow the Ubuntu installation procedure from section F.1.1 of the manual?

     
  • David Pearce

    David Pearce - 2013-07-01

    Yes I did. It looks like the sequence in the manual does not cause the liblapack-dev library to be installed

     
    • Umberto Iemma

      Umberto Iemma - 2013-07-19

      Mmmh, this is strange. At least when I've tried on my ubuntu system, the installation of libblacs-mpi1-dev and libscalapack-mpi1-dev caused the lapack-dev package to be installed automatically.
      I have to check it carefully again on a newer system.
      Thanks for your help David.
      Let us know about your experience with acousto.

       
  • WatchOCR

    WatchOCR - 2017-06-16

    For anyone trying to install AcouSTO on ubuntu 16.04. I had to edit the .configure file and replace all references to -lscalapack to -lscalapack-openmpi to get it to configure properly.

     
  • Umberto Iemma

    Umberto Iemma - 2017-06-16

    Actually you don't need to change the name in the configure files. One of the configuration options allows you to provide special names for the libraries.
    Anyway, thanks for posting your experience.

     

Log in to post a comment.

MongoDB Logo MongoDB