psi4 icon indicating copy to clipboard operation
psi4 copied to clipboard

configure fails to find libint2

Open yurivict opened this issue 3 years ago • 1 comments

-- 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.

yurivict avatar Aug 11 '22 20:08 yurivict

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.

loriab avatar Aug 11 '22 21:08 loriab