[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to make SuiteSparse to be discoverable by Octave configure scrip
From: |
Sergey Maslennikov |
Subject: |
Re: How to make SuiteSparse to be discoverable by Octave configure script? |
Date: |
Thu, 23 Nov 2006 16:01:29 +0300 |
User-agent: |
Thunderbird 1.5.0.7 (X11/20060909) |
David Bateman wrote:
> Sergey Maslennikov wrote:
>> I'm trying to configure Octave on a machine with Linux installed from
>> Slackware 11 distributive but it is appeared to be quite hard to
>> install SuiteSparse in a recognizable for Octave configure script
manner.
>>
>> Could anybody help me to configure and install SuiteSparse properly to
>> make it consistent with Octave?
>>
>> My current configurations.
>> --------------------------
>>
>> 1) SuiteSparse
>>
>> A few options was added in SuiteSparse/UFconfig/UFconfig.mk: "BLAS =
>> .... -lpthread" "LAPACK = ... -lcblas -latlas"
>> As a result of SuiteSparse compilation the files with '.a' extension
>> have appeared in its directories (for instance,
>> SuiteSparse/UMFPACK/Lib/libumfpack.a). I have put all .a ended files
>> to /usr/lib and have put all .h files to /usr/include using Slackware
>> makepkg utility.
> That should have worked... Perhaps the problem is to do with the cblas
> library, however to check this you need to read the config.log to see
> exactly why the files weren't found..
>
> D.
>
Yes. You are right. That should have worked... I have simply forgot to
copy UFconfig.h to respective directory. Thanks.
It is better to utilize a small script to copy than to do that manually:
-----------8<----------------
#!/bin/sh
# removepkg, makepkg, installpkg are required
#
cd SuiteSparse
if [ -d output ] ; then
cd output
removepkg *.tgz
cd ..
rm -r output
fi
mkdir output
cd output
mkdir usr
cd usr
mkdir lib
mkdir include
mkdir bin
cd ../..
for fn in $(find . -name '*.a'); do
if [ ! -d $fn ]; then
cp $fn output/usr/lib
fi
done
for fn in $(find . -name '*.h'); do
if [ ! -d $fn ]; then
cp $fn output/usr/include
fi
done
cd output
makepkg SuiteSparse.tgz
installpkg SuiteSparse.tgz
---------->8-------------------------
Serge