Development environment
Ben Abbott
bpabbott at mac.com
Sat Mar 22 23:08:51 CDT 2008
On Mar 22, 2008, at 10:30 PM, Kelly Boswell wrote:
>
> On Sat, 2008-03-22 at 22:06 -0400, Ben Abbott wrote:
>> On Mar 22, 2008, at 4:51 PM, Ben Abbott wrote:
>>>
>>> On Mar 22, 2008, at 3:39 PM, Kelly Boswell wrote:
>>>> I'm trying to set up a development environment. I'm having trouble
>>>> getting octave 3.0 to "like" my SuiteSparse libraries. I assumed
>>>> the
>>>> latest version of SuiteSparse (3.1) would work fine, but apparently
>>>> it
>>>> doesn't, or I'm doing something wrong. Should I be using a
>>>> different
>>>> version of SuiteSparse?
>>>
>>> I'm using 3.0.0, and am working on a patch to allow the Fink package
>>> manager to build 3.1.0 on OS X.
>>>
>>> I'll report pack later.
>>>
>>> Ben
>>
>> I just completed a build of the most recent octave sources with
>> SuiteSparse-3.1.0
>>
>> All tests passed.
>>
>> What OS are you using?
>>
>> Ben
>>
>
>
> I'm using Kubuntu 7.10. Is it okay if I attach my config.log? I
> haven't been using this help forum very long. I also tee'd my output
> from ./configure, so I can attach that as well. In the meantime,
> here's
> what happens after ./configure runs:
>
> --------------------------------------------------------------------------
> Octave is now configured for i686-pc-linux-gnu
>
> Source directory: .
> Installation prefix: /home/boz
> C compiler: gcc -mieee-fp -Wall -W -Wshadow -g -O2
> C++ compiler: g++ -mieee-fp -Wall -W -Wshadow
> -Wold-style-cast -g -O2
> Fortran compiler: g77 -O -mieee-fp
> Fortran libraries: -L/home/boz/src/SuiteSparse/AMD/Lib
> -L/home/boz/src/SuiteSparse/CAMD/Lib
> -L/home/boz/src/SuiteSparse/CSparse/Lib
> -L/home/boz/src/SuiteSparse/CXSparse/Lib
> -L/home/boz/src/SuiteSparse/UMFPACK/Lib
> -L/home/boz/src/SuiteSparse/CCOLAMD/Lib
> -L/home/boz/src/SuiteSparse/CHOLMOD/Lib
> -L/home/boz/src/SuiteSparse/COLAMD/Lib -L/home/boz/src/GotoBLAS
> -L/usr/lib/gcc/i486-linux-gnu/3.4.6
> -L/usr/lib/gcc/i486-linux-gnu/3.4.6/../../../../lib
> -L/usr/lib/gcc/i486-linux-gnu/3.4.6/../../.. -L/lib/../lib
> -L/usr/lib/../lib -lhdf5 -lz -lfrtbegin -lg2c -lm
> BLAS libraries: -llapack -lblas
> FFTW libraries: -lfftw3
> GLPK libraries: -lglpk
> UMFPACK libraries:
> AMD libraries: -lamd
> CAMD libraries: -lcamd
> COLAMD libraries:
> CCOLAMD libraries:
> CHOLMOD libraries:
> CXSPARSE libraries: -lcxsparse
> HDF5 libraries: -lhdf5
> CURL libraries:
> REGEX libraries: -L/usr/lib -lpcre
> QHULL libraries: -lqhull
> LIBS: -lreadline -lncurses -ldl -lhdf5 -lz -lm
> Default pager: less
> gnuplot: gnuplot
>
> Do internal array bounds checking: false
> Build static libraries: false
> Build shared libraries: true
> Dynamic Linking: true (dlopen)
> Include support for GNU readline: true
> 64-bit array dims and indexing: false
>
> configure: WARNING: I didn't find flex, but it's only a problem if you
> need to reconstruct lex.cc
> configure: WARNING: UMFPACK not found. This will result in some
> lack of
> functionality for sparse matrices.
> configure: WARNING: COLAMD not found. This will result in some lack of
> functionality for sparse matrices.
> configure: WARNING: CCOLAMD not found. This will result in some lack
> of
> functionality for sparse matrices.
> configure: WARNING: CHOLMOD not found. This will result in some lack
> of
> functionality for sparse matrices.
> configure:
>
> NOTE: libraries may be skipped if a library is not found OR
> if the library on your system is missing required features.
> -------------------------------------------------------------------------
>
> I've been assuming that some features or functionality is lacking in
> my
> libraries or include files, because I'm pretty confident in my linking
> and preprocessor commands. It does find my BLAS libraries, after all.
> Here's my configuration:
>
> -------------------------------------------------------------------------
> boz at dell:~/src/GotoBLAS$ pwd
> /home/boz/src/GotoBLAS
> boz at dell:~/src/GotoBLAS$ ls *.a
> libgoto.a libgoto_banias-r1.24.a
> boz at dell:~/src/GotoBLAS$ cd ../SuiteSparse/
> boz at dell:~/src/SuiteSparse$ find . -type f -name '*.a'
> ./AMD/Lib/libamd.a
> ./BTF/Lib/libbtf.a
> ./KLU/Lib/libklu.a
> ./LDL/Lib/libldl.a
> ./CAMD/Lib/libcamd.a
> ./CSparse/Lib/libcsparse.a
> ./CXSparse/Lib/libcxsparse.a
> ./UMFPACK/Lib/libumfpack.a
> ./CCOLAMD/Lib/libccolamd.a
> ./CHOLMOD/Lib/libcholmod.a
> ./UFconfig/xerbla/libcerbla.a
> ./UFconfig/xerbla/libxerbla.a
> ./COLAMD/Lib/libcolamd.a
> ./metis-4.0/libmetis.a
> -------------------------------------------------------------------------
>
> Here's what I passed to ./configure:
>
> -------------------------------------------------------------------------
> ./configure --prefix=/home/boz
> LDFLAGS="-L/home/boz/src/SuiteSparse/AMD/Lib
> -L/home/boz/src/SuiteSparse/CAMD/Lib
> -L/home/boz/src/SuiteSparse/CSparse/Lib
> -L/home/boz/src/SuiteSparse/CXSparse/Lib
> -L/home/boz/src/SuiteSparse/UMFPACK/Lib
> -L/home/boz/src/SuiteSparse/CCOLAMD/Lib
> -L/home/boz/src/SuiteSparse/CHOLMOD/Lib
> -L/home/boz/src/SuiteSparse/COLAMD/Lib -L/home/boz/src/GotoBLAS"
> CPPFLAGS="-I/home/boz/src/SuiteSparse/AMD/Include
> -I/home/boz/src/SuiteSparse/CAMD/Include
> -I/home/boz/src/SuiteSparse/CSparse/Include
> -I/home/boz/src/SuiteSparse/CXSparse/Include
> -I/home/boz/src/SuiteSparse/UMFPACK/Include
> -I/home/boz/src/SuiteSparse/CCOLAMD/Include
> -I/home/boz/src/SuiteSparse/CHOLMOD/Include
> -I/home/boz/src/SuiteSparse/COLAMD/Include -I/home/boz/src/GotoBLAS"
> --------------------------------------------------------------------------
>
I'm unfamiliar with Kubuntu, but it may be that there is a problem
with SuiteSparse building correctly.
On Mac OSX, I had problem with the makefiles. The result was that some
libraries did not build.
If all the libraries have been built and are where they are intended,
then I suggest you look for any warnings/errors that occurred during
the configure process.
Unless you have a reason not to, you might consider using the package
management system. I assume that KPackage can install all of this for
you?
Ben
More information about the Help-octave
mailing list