[Minotaur] Minotaur help
Ashutosh Mahajan
mahajan at mcs.anl.gov
Tue Jun 26 23:48:39 CDT 2012
Dear Cristina
You will have to tell cmake to look into that third-party lib folder for the libraries.
I have put up instructions on the wiki now:
https://wiki.mcs.anl.gov/minotaur/index.php/Compiling_MINOTAUR#Missing_BLAS_and_LAPACK_Libraries
Here's a copy:
The error messages "cannot find -llapack" and "cannot find -lblas" will be
seen after the "make" command if blas and lapack libraries are not available
in your system. There are two ways around it.
1. Install blas and lapack in the system. On Debian or Ubuntu, it means doing
"apt-get install libblas-dev".
2. Use blas and lapack libraries available in the third-party directory
of the Minotaur Libraries and Header Files package.
For the second option, add the flag
-DCMAKE_EXE_LINKER_FLAGS=-L/path/to/minotaur-VER-dev-linux-ARCH/third-party/lapack-3.4.0/lib
to the cmake command for compiling. Then run make and make install again.
If you used ccmake, then run ccmake again, and press 't' to toggle advanced
options. Add
-L/path/to/minotaur-VER-dev-linux-ARCH/third-party/lapack-3.4.0/lib
to the "CMAKE_EXE_LINKER_FLAGS" field. Then press 'c' to configure,
'g' to generate and 'q' to quit. Run make and make install.
--
Regards
Ashutosh Mahajan
http://mcs.anl.gov/~mahajan
On Mon, Jun 25, 2012 at 11:26:58AM -0700, Marinovici, Cristina wrote:
> Hello,
>
>
>
> I tried to install Minotaur on my Linux system and I get the following error:
>
>
>
> make install
>
> [ 84%] Built target minotaur
>
> [ 87%] Built target mntrbqpd
>
> [ 88%] Built target mntrfiltersqp
>
> [ 90%] Built target mntripopt
>
> [ 92%] Built target mntrosilp
>
> [ 93%] Built target mntrengfac
>
> [ 98%] Built target mntrampl
>
> Linking CXX executable bnb
>
> /usr/bin/ld: cannot find -llapack
>
> /usr/bin/ld: cannot find -lblas
>
> collect2: ld returned 1 exit status
>
> make[2]: *** [src/algorithms/bnb] Error 1
>
> make[1]: *** [src/algorithms/CMakeFiles/bnb.dir/all] Error 2
>
> make: *** [all] Error 2
>
>
>
> I have the libblas.a and liblapack.a in /minotaur-0.1.1-dev-linux-x86_64/
> third-party/lapack-3.4.0/lib folder.
>
> Please, could you help me pass this error.
>
>
>
>
>
> Thank you.
>
>
>
> Cristina Marinovici, Ph.D.
>
>
>
> Software Engineer
>
> Advanced Power and Energy Systems
>
>
>
> Pacific Northwest National Laboratory
> 902 Battelle Boulevard
> P.O. Box 999, MSIN K1-85
> Richland, WA 99352 USA
> Phone: 509-372-4841
>
> cristina.marinovici at pnnl.gov
>
>
>
>
>
> _______________________________________________
> Minotaur mailing list
> Minotaur at lists.mcs.anl.gov
> https://lists.mcs.anl.gov/mailman/listinfo/minotaur
More information about the Minotaur
mailing list