Dolfinx build from source fails at ffcx pip3 install

Hi!

I had similar issues when installing ffc or ffcx (“Could not find a version that satisfies the requirement”).

I installed all fenics packages with the following inside the respective package folder:

pip3 -v install --no-deps --no-cache-dir .

So the no-deps did the trick. Of course then you have to assure that all other packages that the respective one depends on are installed.

So, for the whole fenics-x, I executed the installation commands in the following order:

git clone https://github.com/FEniCS/fiat.git
git clone https://bitbucket.org/fenics-project/dijitso
git clone https://github.com/FEniCS/ufl.git
git clone https://github.com/FEniCS/ffcx.git
git clone https://github.com/fenics/dolfinx.git
cd fiat    && pip3 -v install --no-deps --no-cache-dir . && cd ..
cd dijitso && pip3 -v install --no-deps --no-cache-dir . && cd ..
cd ufl     && pip3 -v install --no-deps --no-cache-dir . && cd ..
cd ffcx     && pip3 -v install --no-deps --no-cache-dir . && cd ..
mkdir dolfinx/build && cd dolfinx/build && cmake ../cpp && sudo make install -j 6 && cd ../..
cd dolfinx/python && pip3 -v install --no-deps --no-cache-dir . && cd ../..

under Ubuntu 18.04 LTS gcc-7.5.

Hope this helps.

Bw,
Marc

2 Likes