Hi,
I’m trying to install preCICE v2.2.1 on CentOS Linux 7 (Core), building with CMake v3.15.4.
Dependency versions:
- boost 1.71.0
- openmpi 3.1.6
- gnu 8.3.0
I was installing libxml2 as stated here.
I did export the libraries
export LIBRARY_PATH=<prefix>/lib:$LIBRARY_PATH
export LD_LIBRARY_PATH=<prefix>/lib:$LD_LIBRARY_PATH
export CPLUS_INCLUDE_PATH=<prefix>/include:$CPLUS_INCLUDE_PATH
to the .bashrc and can see the path when calling e.g. echo $LIBRARY_PATH
. The paths exist.
Now the probblem: Executing
cmake -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX="$HOME/software/precice" -DPRECICE_PETScMapping=ON -DPETSc_INCLUDE_DIRS="$PETSC_DIR/include" -DPETSc_LIBRARIES="$PETSC_DIR/lib/libpetsc.so" -DPRECICE_PythonActions=OFF -LIBXML2_LIBRARIES="$HOME/software/libxml2/lib/" -LIBXML2_INCLUDE_DIRS="$HOME/software/libxml2/include/" $HOME/software/precice-2.2.1/
, I’m getting the following error:
-- === DEPENDENCIES ===
-- Validating Eigen
-- Validating Prettyprint - success [cached]
CMake Error at /opt/ohpc/pub/utils/cmake/3.15.4/share/cmake-3.15/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find LibXml2 (missing: LIBXML2_LIBRARY LIBXML2_INCLUDE_DIR)
Call Stack (most recent call first):
/opt/ohpc/pub/utils/cmake/3.15.4/share/cmake-3.15/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
/opt/ohpc/pub/utils/cmake/3.15.4/share/cmake-3.15/Modules/FindLibXml2.cmake:92 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:168 (find_package)
Please see the full log attatched below:
CMakeOutput.log (25.7 KB)
CMakeError.log (2.9 KB)
Thank you!