How Do I Resolve Installation Failures?

Please read Read before posting: How do I get my question answered?. To make it readable (e.g., not how __init__ turned to a bold init), you must format the error message with “```”. More importantly, you need to provide us complete information on what your OS is and how you installed dolfinx.

From your installation paths, I can guess that your OS is ubuntu or debian, but I certainly cannot guess which version. libfftw3 is a dependency of petsc, however apt from ubuntu/debian does not install into /lib (see Debian -- File list of package libfftw3-mpi3/sid/amd64). My best guess it that you installed those libraries with some other tool (or from source), and now they are conflicting with the ones provided by ubuntu/debian. If that is the case, the simplest solution would be to determine if you really need that other installation and, if not, uninstall it.