After installing Lapack and Blas, I tried to install lapack++ with failure from http://switch.dl.sourceforge.net/sourceforge/lapackpp/lapackpp-2.5.2.tar.gz

I type ./configure

configure: error: Blas/Lapack was not found.
*** This means Lapack++ and matrix support cannot be compiled.
*** This makes this library unusable. Please get blas and lapack
*** installed. If you do have these installed, use the options
*** --with-blas=<libname> or --with-lapack=<libname> and/or set
*** the env variable LDFLAGS to include the appropriate linker
*** flags.

while I have libblas.a liblapack.a librefblas.a libtmglib.a in my use/local/lin folder.... Can any one help?

Are you sure you have compatible versions of Blas and Lapack installed? Also, what is the output of ../configure when you run it in the extracted directory for lapack++?

Wenxuans-MacBook-Pro:build_lapackpp wenxuanhuang$ ../lapackpp-2.5.2/configure
checking build system type... i386-apple-darwin13.1.0
checking host system type... i386-apple-darwin13.1.0
checking target system type... i386-apple-darwin13.1.0
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make sets $(MAKE)... (cached) yes
checking whether build environment is sane... yes
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for a BSD-compatible install... /usr/bin/install -c
checking for sed... /usr/bin/sed
checking for windres... no
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ld used by gcc... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no
checking for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /opt/local/bin/nm
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... g++ -E
checking for g77... g77
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether g77 accepts -g... yes
checking the maximum length of command line arguments... 196608
checking command to parse /opt/local/bin/nm output from gcc object... rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
checking if gcc supports -fno-rtti -fno-exceptions... rm: conftest.dSYM: is a directory
yes
checking for gcc option to produce PIC... -fno-common
checking if gcc PIC flag -fno-common works... rm: conftest.dSYM: is a directory
yes
checking if gcc static flag -static works... rm: conftest.dSYM: is a directory
no
checking if gcc supports -c -o file.o... rm: conftest.dSYM: is a directory
yes
checking whether the gcc linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin13.1.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
appending configuration tag "RC" to libtool
rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
appending configuration tag "CXX" to libtool
rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
checking for ld used by g++... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no
checking whether the g++ linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fno-common
checking if g++ PIC flag -fno-common works... rm: conftest.dSYM: is a directory
yes
checking if g++ static flag -static works... rm: conftest.dSYM: is a directory
no
checking if g++ supports -c -o file.o... rm: conftest.dSYM: is a directory
yes
checking whether the g++ linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin13.1.0 dyld
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for g77 option to produce PIC... -fno-common
checking if g77 PIC flag -fno-common works... rm: conftest.dSYM: is a directory
yes
checking if g77 static flag -static works... rm: conftest.dSYM: is a directory
no
checking if g77 supports -c -o file.o... rm: conftest.dSYM: is a directory
yes
checking whether the g77 linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin13.1.0 dyld
checking how to hardcode library paths into programs... immediate
checking for an ANSI C-conforming const... yes
checking for ANSI C header files... (cached) yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking bits/cpp_type_traits.h usability... no
checking bits/cpp_type_traits.h presence... no
checking for bits/cpp_type_traits.h... no
checking whether the compiler implements namespaces... yes
checking how to get verbose linking output from g77... rm: conftest.dSYM: is a directory
-v
checking for Fortran 77 libraries of g77... -L/sw/lib -lfrtbegin -lg2c -lSystem
checking for dummy main to link with Fortran 77 libraries... rm: conftest.dSYM: is a directory
none
checking for Fortran 77 name-mangling scheme... rm: conftest.dSYM: is a directory
unknown
checking for unknown... no
checking if ATLAS should be used... yes
checking for ATLAS library... checking for f77blas library... configure: WARNING: not found
checking for cblas library... configure: WARNING: not found
checking whether ATLAS is usable... configure: WARNING: no
checking for unknown in -lblas... no
checking for unknown in -lcxml... no
checking for unknown in -ldxml... no
checking for unknown in -lscs... no
checking for unknown in -lcomplib.sgimath... no
checking for unknown in -lblas... (cached) no
checking for unknown in -lblas... (cached) no
checking for unknown in -lblas32... no
configure: error: Blas/Lapack was not found.
*** This means Lapack++ and matrix support cannot be compiled.
*** This makes this library unusable. Please get blas and lapack
*** installed. If you do have these installed, use the options
*** --with-blas=<libname> or --with-lapack=<libname> and/or set
*** the env variable LDFLAGS to include the appropriate linker
*** flags.

Here is the output... For lapack and blas, I have the libraries in /sw/lib/ (installed from Fink) and /usr/local/lib/ (install by myself)... I think it is compatible...

Apparently the lapack++ configuration tool thinks not. Remember, to install from source, the sub-packages need to have their developer modules (headers) installed as well. Even if you have blas/lapack installed, you probably don't have the headers needed, which is what configure is looking for.

I see, it seems that if I can make lapackpp search this folder
/sw/lib
instead of
/usr/local/lib

then it would be done, do you know a way of doing this? thank you:)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.