dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #08040
Re: Fwd: [dolfyn] failed to detec slepc
On Sat, May 24, 2008 Åsmund Ødegård wrote:
> ---------- Forwarded message ----------
> From: Christophe Trophime <christophe.trophime@xxxxxxxxxxxxxxxx>
> Date: Sat, May 24, 2008 at 11:10 AM
> Subject: [dolfyn] failed to detec slepc
> To: aasmund@xxxxxxxxx
>
>
> Hi,
> I am trying to build a rpm for dolfin 0.9.3 on FC9.
> When building dolfin it fails to properly detect slepc
> which is installed on my FC9 box :
>
> + PETSC_DIR=/usr/local/petsc
> + export PETSC_ARCH=linux-gnu-cxx-opt
> + PETSC_ARCH=linux-gnu-cxx-opt
> + export SLEPC_DIR=/usr/local/slepc
> + SLEPC_DIR=/usr/local/slepc
> + rm -f 'scons/simula-scons/simula_scons/pkgconfiggenerators/*.pyc'
> + scons -j3 enablePetsc=yes enableSlepc=yes enableDemos=yes
>
> ...
> Checking for petsc... no (pkg-config file not found)
> Trying to generate pkg-config file for petsc... done
> Found PETSc and generated pkg-config file in
> '/home/trophime/rpmbuild/BUILD/dolfin-0.7.3/scons/pkgconfig'
> Checking for gts... yes
> Checking for boost... no (pkg-config file not found)
> Trying to generate pkg-config file for boost... done
> Found Boost and generated pkg-config file in
> '/home/trophime/rpmbuild/BUILD/dolfin-0.7.3/scons/pkgconfig'
> Checking for slepc... no (pkg-config file not found)
> Trying to generate pkg-config file for slepc... failed
> ...
>
> I have also tried without any success with the latest snapshot.
> How can I track down the reason why it fails to detect Slepc??
The reason it fails to generate a pkg-config file for SLEPc might be that
you need to add the location of the SLEPc library to your LD_LIBRARY_PATH
environment variable. Try something like this (all on one line):
export LD_LIBRARY_PATH=$SLEPC_DIR/lib/$PETSC_ARCH:$LD_LIBRARY_PATH
Then run scons again. If that fails, you could try to run the pkgconfig
generator scripts under
scons/simula-scons/simula_scons/pkgconfiggenerators/ manually. Here is a
suggested set of commands you could try out:
export PETSC_DIR=/usr/local/petsc
export PETSC_ARCH=linux-gnu-cxx-opt
export SLEPC_DIR=/usr/local/slepc
export LD_LIBRARY_PATH=$SLEPC_DIR/lib/$PETSC_ARCH:$LD_LIBRARY_PATH
python scons/simula-scons/simula_scons/pkgconfiggenerators/petsc.py
python scons/simula-scons/simula_scons/pkgconfiggenerators/slepc.py
If any of these commands fails, please report back with the error message.
If every command succeeded, two pkg-config files will have been generated
in the current directory: petsc.pc and slepc.pc. Copy these two files to
the scons/pkgconfig/ folder and run scons again.
Hope this helps,
Johannes
> Thanks for your help.
> _______________________________________________
> DOLFIN-dev mailing list
> DOLFIN-dev@xxxxxxxxxx
> http://www.fenics.org/mailman/listinfo/dolfin-dev
>
References