wiki:HintTricks

Version 2 (modified by rodrigo, 13 years ago) (diff)

--

Hint and Tricks

This page is for Bonmin users to share their experience in installing and using (hopefully successfully) the software.

You will find here instructions on how to edit this page and add your comments.


Compiling Bonmin in Ubuntu with the Pardiso Linear Solver

I had problems compiling Bonmin with Pardiso in my Ubuntu machine. After running

$ ../configure -C --with-pardiso="/home/rush/lib/libpardiso_GNU_IA32.so"

I got the following error

checking whether user-supplied Pardiso library "/home/rush/lib/libpardiso_GNU_IA32.so" works... configure: error: Pardiso library /home/rush/lib/libpardiso_GNU_IA32.so does not seem to work
configure: error: /bin/bash '../../Ipopt/configure' failed for Ipopt

But finally I've figured out how to get it to work. First, install the atlas3 packages which will install some required and optimized blas and lapack libraries. To do so, type (if you prefer apt-get, substitute aptitude with it)

$  sudo aptitude install atlas3-base atlas3-sse atlas3-sse2 altas3-headers

Once installed, follow the instructions from the GettingStarted page, but use the following arguments for the configure script:

$  ../configure -C --with-pardiso="$HOME/lib/libpardiso_GNU_IA32.so"    \
                   --with-blas="/usr/lib/atlas/sse2/libblas.so.3.0"     \
                   --with-lapack="/usr/lib/atlas/sse2/liblapack.so.3.0"

That did it for me, and I hope it helps someone else too.

Cheers,

Rodrigo Lopez-Negrete