configure fails to find libint2
-- Could NOT find Libint2 (missing: Libint2_DIR)
-- Suitable Libint2 could not be located, Building Libint2 5-4-3-6-5-4 instead.
libint2-2.7.2 is installed. It installs the pkgconfig file: /usr/local/libdata/pkgconfig/libint2.pc
Also this line isn't correct:
Could NOT find Libint2 (missing: Libint2_DIR)
-DLibint2_DIR=/usr/local was supplied.
Psi4 uses an branch of L2 that hasn't been merged to master and uses CMake detection, not pkgconfig detection. While the detection scheme can be overcome, several build options need to be set for Psi4 such that if you have a L2 install that works with any other QC package, it probably doesn't work with Psi4. See https://github.com/evaleev/libint/issues/190
Could NOT find Libint2 (missing: Libint2_DIR)
I'd guess this is a red herring. Unless you've built from https://github.com/psi4/psi4/blob/master/external/upstream/libint2/CMakeLists.txt#L63 tarball, the Psi4 buildsys as-is won't succeed for L2.