ufc problems

Asked by Przemek

Hello,
I have a problem installing Dolfin. I've downloaded UFC from the website (version 1.2.0) and used scons install. But now I run scons configure in dolfin dir and this is what I get:

scons: Reading SConscript files ...
/home/przemek/Build/dolfin-0.9.5/scons/simula-scons
Using options from /home/przemek/Build/dolfin-0.9.5/scons/options.cache
MPI not found (might not work if PETSc uses MPI).
Checking for pkg-config... yes
Checking for boost... yes
Checking for boost_filesystem... yes
Checking for boost_program_options... yes
Checking for cholmod... no (pkg-config file not found)
 Trying to generate pkg-config file for cholmod... failed
Checking for gts... no (pkg-config file not found)
 Trying to generate pkg-config file for gts... failed
Checking for libxml-2.0... yes
Checking for mtl4... no (pkg-config file not found)
 Trying to generate pkg-config file for mtl4... failed
Checking for numpy-1... yes
Checking for parmetis... no (pkg-config file not found)
 Trying to generate pkg-config file for parmetis... failed
Checking for petsc... no (pkg-config file not found)
 Trying to generate pkg-config file for petsc... failed
Checking for python-2... yes
Checking for scotch... no (pkg-config file not found)
 Trying to generate pkg-config file for scotch... failed
Checking for slepc... no (pkg-config file not found)
 Trying to generate pkg-config file for slepc... failed
Checking for trilinos... no (pkg-config file not found)
 Trying to generate pkg-config file for trilinos... failed
Checking for ufc-1... no (pkg-config file not found)
 Trying to generate pkg-config file for ufc-1... failed
Checking for umfpack... yes
Checking for zlib... yes
Resolving compiler... done
Error: Unknown dependency package: ufc-1

Seems that ufc is not properly installed or configured... Please help ;)

Przemek

Question information

Language:
English Edit question
Status:
Solved
For:
DOLFIN Edit question
Assignee:
No assignee Edit question
Solved by:
Johan Hake
Solved:
Last query:
Last reply:
Revision history for this message
Harish Narayanan (hnarayanan) said :
#1

Can you point out in which directory you installed UFC? And try navigating to that_directory/lib/pkgconfig and see it contains a file called ufc-1.pc.

Revision history for this message
Przemek (cgenie) said :
#2

Ah, ok, it's installed in /usr/local/ and so I've set up the PKG_CONFIG_PATH to include that dir. Now the error is gone, but I get a new one:

Checking for ufc-1... yes
Checking for umfpack... yes
Checking for zlib... yes
Resolving compiler... done
Found optional package: umfpack (version 5.2.0)
Found optional package: zlib (version 1.2.3)
Unable to find optional package: trilinos (version 7.0.0)
Unable to find optional package: cholmod (version 1.6.0)
Unable to find optional package: parmetis (version 3.1)
Unable to find optional package: slepc (version 3.0.0)
Unable to find optional package: mtl4 (version 4)
Unable to find optional package: petsc (version 3.0.0)
Unable to find optional package: gts (version 0.7)
Unable to find optional package: scotch (version 5.0)
*** Unable to import UFC. Install latest UFC

What does it mean?

Revision history for this message
Best Johan Hake (johan-hake) said :
#3

On Saturday 12 December 2009 10:11:30 Przemek wrote:
> Question #93803 on DOLFIN changed:
> https://answers.launchpad.net/dolfin/+question/93803
>
> Status: Answered => Open
>
> Przemek is still having a problem:
> Ah, ok, it's installed in /usr/local/ and so I've set up the
> PKG_CONFIG_PATH to include that dir. Now the error is gone, but I get a
> new one:
>
> Checking for ufc-1... yes
> Checking for umfpack... yes
> Checking for zlib... yes
> Resolving compiler... done
> Found optional package: umfpack (version 5.2.0)
> Found optional package: zlib (version 1.2.3)
> Unable to find optional package: trilinos (version 7.0.0)
> Unable to find optional package: cholmod (version 1.6.0)
> Unable to find optional package: parmetis (version 3.1)
> Unable to find optional package: slepc (version 3.0.0)
> Unable to find optional package: mtl4 (version 4)
> Unable to find optional package: petsc (version 3.0.0)
> Unable to find optional package: gts (version 0.7)
> Unable to find optional package: scotch (version 5.0)
> *** Unable to import UFC. Install latest UFC
>
> What does it mean?

It means that you have enabled PyDOLFIN, and the configure process cannot
figure out how to import the ufc python module.

You need to update:

   export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/lib
   export PYTHONPATH=${PYTHONPATH}:/usr/local/lib/python2.X/site-packages

We might add a notice about this in the README file of ufc? Maybe generate a
ufc.conf file?

Johan

Revision history for this message
Przemek (cgenie) said :
#4

Thanks Johan Hake, that solved my question.