derPaul
January 28, 2025, 11:33pm
1
Hello there.
I try to install dolfinx and have this problem:
(fenics_env) paul@PCxxx:~/dolfinx/cpp/build$ cmake ..
-- Asking Python module FFCx for location of ufcx.h...
CMake Error at /usr/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find UFCx: Found unsuitable version "0.9.0", but required is at
least "0.10" (found
/home/paul/fenics_env/lib/python3.12/site-packages/ffcx/codegeneration)
Reason given by package: UFCx could not be found.
PS
I did ffcx with pip install fenics-ffcx:
Installing collected packages: setuptools, pycparser, numpy, fenics-ufl, fenics-basix, cffi, fenics-ffcx
Successfully installed cffi-1.17.1 fenics-basix-0.9.0 fenics-ffcx-0.9.0 fenics-ufl-2024.2.0 numpy-2.2.2 pycparser-2.22 setuptools-75.8.0
dokken
January 29, 2025, 12:19pm
2
You need to check at the correct branch of DOLFINx.
You have installed v0.9.0 of ffcx, and should therefore checkout the 0.9.0 release of DOLFINx.
derPaul
January 29, 2025, 12:47pm
3
Thank you for your reply.
How can I change the 0.9.0 release of DOLFINx and install them?
According to the website, the latest release is 0.9.0.
dokken
January 29, 2025, 1:00pm
4
If you have cloned dolfinx with git clone
, you can navigate to this repository on your computer, and call git checkout v0.9.0.post1
If you want to download the tar-ball, you can find it at:
i did’t clone dolfinx.
i followed step by step this instruction:
https://docs.fenicsproject.org/dolfinx/main/python/installation.html#source
First of all, there was an error with UFCx and I tried to install FFCx:
These are the commands and the response (pwd: ffcx):
❯ sudo cmake --install build-dir
Password:
-- Install configuration: ""
-- Up-to-date: /usr/local/share/ufcx/cmake/ufcxTargets.cmake
-- Up-to-date: /usr/local/share/ufcx/cmake/ufcxConfig.cmake
-- Up-to-date: /usr/local/share/ufcx/cmake/ufcxConfigVersion.cmake
-- Up-to-date: /usr/local/include/ufcx.h
-- Up-to-date: /usr/local/share/pkgconfig/ufcx.pc
Then in dolfinx/cpp/build:
❯ cmake ..
-- Found Boost 1.86.0 at /opt/homebrew/lib/cmake/Boost-…
with: pip install fenics-ffcx
But it doest’t help.
dokken
January 29, 2025, 2:22pm
6
Building DOLFINx from source is quite a complex thing to do, which is why we provide various ways which avoids you having to install each component by yourself. I would suggest having a look at: GitHub - FEniCS/dolfinx: Next generation FEniCS problem solving environment
I am assuming that you are running DOLFINx on a ubuntu based system, if so, you can have a look at: dolfinx/docker/Dockerfile.test-env at main · FEniCS/dolfinx · GitHub
which shows how to install all the core dependencies on ubuntu, and
dolfinx/docker/Dockerfile.end-user at main · FEniCS/dolfinx · GitHub
that shows how to install ufl, basix, ffcx and dolfinx.
However, I would recommend using, conda, docker or the apt binaries.
I have Windows and use Ubuntu for installation.
i used apt: Download | FEniCS Project
sudo add-apt-repository ppa:fenics-packages/fenics
sudo apt update
sudo apt install fenicsx
dokken
January 29, 2025, 3:15pm
8
If you have used apt for installation, there is no need for any further installation.
Sorry, l don’t understand.
It was apt for FENICSx, but i need also dolfinx.
I thought, that i need for dolfinx like that (from source):
https://docs.fenicsproject.org/dolfinx/main/python/installation.html
C++ core
Python dependencies
dokken
January 29, 2025, 4:26pm
10
Dolfinx is the user facing API of the fenics project. By installing fenicsx from apt you have installed dolfinx, ffcx, basix and ufl along with any other dependency
1 Like