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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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
?
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
Is liblapack.a or liblapack.so present in your /usr/lib directory ?
No, I installed lblapack-dev (which also calls libblas-dev) and now configure runs
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?
Yes I did. It looks like the sequence in the manual does not cause the liblapack-dev library to be installed
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.
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.
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.