On Thu, Feb 6, 2014 at 2:41 PM, Fredrik Lingvall
<[email protected]> wrote:
> On 02/06/14 08:23, Johannes Ring wrote:
>>
>> On Wed, Feb 5, 2014 at 12:12 PM, Fredrik Lingvall
>> <[email protected]> wrote:
>>>
>>> Hi FEniCS devs,
>>>
>>> I'm trying to install FEniCS (on a Gentoo) Linux x86_64 box. I have these
>>> packages build and installed
>>>
>>> kalle fenics # ls -lah
>>> total 5.1M
>>> drwxr-xr-x  8 root root 4.0K Feb  5 12:00 .
>>> drwxr-xr-x 66 root root 4.0K Feb  5 10:19 ..
>>> -rw-r--r--  1 root root  85K Feb  4 16:11 235a0e086f6d.zip
>>> -rw-r--r--  1 root root 141K Feb  5 08:58 2b4002ad75a8.zip
>>> -rw-r--r--  1 root root 407K Feb  4 16:15 807c9581e17e.zip
>>> -rw-r--r--  1 root root 3.9M Feb  5 08:59 ac6f9d186802.zip
>>> -rw-r--r--  1 root root 196K Feb  4 16:13 c71d79029b7e.zip
>>> -rw-r--r--  1 root root 423K Feb  4 16:09 fbeccf991aa1.zip
>>> drwxr-xr-x 13 root root 4.0K Feb  5 12:01
>>> fenics-project-dolfin-ac6f9d186802
>>> drwxr-xr-x  9 root root 4.0K Feb  4 16:40 fenics-project-ffc-fbeccf991aa1
>>> drwxr-xr-x  6 root root 4.0K Feb  5 08:53
>>> fenics-project-fiat-235a0e086f6d
>>> drwxr-xr-x  7 root root 4.0K Feb  5 08:53
>>> fenics-project-instant-c71d79029b7e
>>> drwxr-xr-x  6 root root 4.0K Feb  5 12:00 fenics-project-ufc-2b4002ad75a8
>>> drwxr-xr-x  9 root root 4.0K Feb  5 08:54 fenics-project-ufl-807c9581e17e
>>>
>>> exept fenics-project-dolfin-ac6f9d186802 which fails when running cmake:
>>>
>>> kalle fenics-project-dolfin-ac6f9d186802 # mkdir build/
>>> kalle fenics-project-dolfin-ac6f9d186802 # cd build/
>>> kalle build # cmake ..
>>> -- The C compiler identification is GNU 4.8.2
>>> -- The CXX compiler identification is GNU 4.8.2
>>>
>>> -snip-
>>>
>>> -- Found Qt4: /usr/bin/qmake (found version "4.8.5")
>>> CMake Warning at CMakeLists.txt:511 (find_package):
>>>    Could not find a package configuration file provided by "VTK" with any
>>> of
>>>    the following names:
>>>
>>>      VTKConfig.cmake
>>>      vtk-config.cmake
>>>
>>>    Add the installation prefix of "VTK" to CMAKE_PREFIX_PATH or set
>>> "VTK_DIR"
>>>    to a directory containing one of the above files.  If "VTK" provides a
>>>    separate development package or SDK, be sure it has been installed.
>>>
>>>
>>> --
>>> -- The following optional packages were found:
>>> -- -------------------------------------------
>>> -- (OK) OPENMP
>>> -- (OK) MPI
>>> -- (OK) PETSC
>>> -- (OK) CHOLMOD
>>> -- (OK) SCOTCH
>>> -- (OK) CGAL
>>> -- (OK) ZLIB
>>> -- (OK) PYTHON
>>> -- (OK) HDF5
>>> -- (OK) QT
>>> --
>>> -- The following optional packages were not found:
>>> -- -----------------------------------------------
>>> -- (**) PETSC4PY
>>> -- (**) SLEPC
>>> -- (**) TAO
>>> -- (**) TRILINOS
>>> -- (**) UMFPACK
>>> -- (**) PASTIX
>>> -- (**) PARMETIS
>>> -- (**) SPHINX
>>> -- (**) VTK
>>> --
>>> --
>>> -- Generating SWIG interface.
>>> -- --------------------------
>>> --
>>> -- Generating form files in demo, test, bench and dolfin directories. May
>>> take some time...
>>> --
>>>
>>> ----------------------------------------------------------------------------------------
>>> CMake Error at CMakeLists.txt:779 (message):
>>>    Generation of form files failed:
>>>
>>>    Traceback (most recent call last):
>>>
>>>      File "/usr/local/bin/ffc", line 40, in <module>
>>>        from ufl.log import UFLException
>>>
>>>    ImportError: No module named ufl.log
>>>
>>>    Traceback (most recent call last):
>>>
>>>      File
>>>
>>> "/root/software/fenics/fenics-project-dolfin-ac6f9d186802/cmake/scripts/generate-form-files",
>>> line 73, in <module>
>>>        raise RuntimeError, "Unable to compile form: %s/%s" % (root, f)
>>>
>>>    RuntimeError: Unable to compile form: dolfin/ale/Poisson2D.ufl
>>
>> Please make sure that UFL is installed and that it is available in
>> PYTHONPATH.
>>
>> Johannes
>
>
> Hi Johannes,
>
> I installed everything in /usr/local and the UFL package was installed
> using:
>
> kalle fenics-project-ufl-807c9581e17e # python2 setup.py install
> --prefix=/usr/local
>
> 1.3.0+
>
> running install
> running build
> running build_py
> running build_scripts
> running install_lib
> running install_scripts
> changing mode of /usr/local/bin/ufl2py to 755
> changing mode of /usr/local/bin/ufl-version to 755
> changing mode of /usr/local/bin/form2ufl to 755
> changing mode of /usr/local/bin/ufl-analyse to 755
> changing mode of /usr/local/bin/ufl-convert to 755
> running install_data
> running install_egg_info
> Removing /usr/local/lib64/python2.7/site-packages/UFL-1.3.0_-py2.7.egg-info
> Writing /usr/local/lib64/python2.7/site-packages/UFL-1.3.0_-py2.7.egg-info
>
> and doing, for example, a
>
> kalle build # export PYTHONPATH="${PYTHONPATH}:/usr/local/bin:"
>
> does not help.

Try this instead:

  export PYTHONPATH=/usr/local/lib/python2.7/site-packages:$PYTHONPATH

Johannes
_______________________________________________
fenics-support mailing list
[email protected]
http://fenicsproject.org/mailman/listinfo/fenics-support

Reply via email to