Dear all,<div>I'm trying to build CP2K 2023.1 in WSL Ubuntu 20.04 LTS by tools/toolchain/install_cp2k_toolchain.sh in my laptop. I use the following command:</div><div><br /></div><div><font face="Courier New">./install_cp2k_toolchain.sh --with-gcc=install --with-openmpi=install --math-mode=openblas --mpi-mode=openmpi --with-pexsi=install --with-quip=install --with-plumed=install --with-libtorch=install --with-sirius=install -j 12</font><br /></div><div><font face="Courier New"><br /></font></div><div><font face="Sans Serif">Everything is OK until compiling SIRIUS. The toolchain returns an error as following:</font></div><div>-<font face="Courier New">- Found GSL: cp2k-2023.1/tools/toolchain/install/gsl-2.7/include (found version "2.7")<br />CMake Error at cp2k-2023.1/tools/toolchain/install/cmake-3.25.1/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:230 (message):<br />  Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)<br />Call Stack (most recent call first):<br />  cp2k-2023.1/tools/toolchain/install/cmake-3.25.1/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)<br />  cp2k-2023.1/tools/toolchain/install/cmake-3.25.1/share/cmake-3.25/Modules/FindPkgConfig.cmake:99 (find_package_handle_standard_args)<br />  cmake/modules/FindLibXC.cmake:2 (find_package)<br />  CMakeLists.txt:139 (find_package)<br /><br /><br />-- Configuring incomplete, errors occurred!<br />See also "cp2k-2023.1/tools/toolchain/build/SIRIUS-7.3.2/build/CMakeFiles/CMakeOutput.log".</font><br /><font face="Courier New">make: *** src: No such file or directory.  Stop.</font><br /><font face="Courier New">ERROR: (./scripts/stage8/install_sirius.sh, line 158) Non-zero exit code detected.</font><font face="Sans Serif"><br /></font></div><div><font face="Sans Serif">By reading CMakeLists.txt and </font>cmake/modules/FindLibXC.cmake in build/SIRIUS-7.3.2, I think the error happen when Cmake is trying to detect LibXC. I found that there are many <font face="Courier New">find_package</font> lines in CMakeLists.txt. After testing, I find LibXC (in line 139), SCALAPACK (in line 188), LibVDWXC (in line 202), and costa (in line 205) all can cause previous error, but other packages (gsl, libspg, elpa and hdf5) don't.</div><div>How to fix this error?</div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups "cp2k" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:cp2k+unsubscribe@googlegroups.com">cp2k+unsubscribe@googlegroups.com</a>.<br />
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/cp2k/730e354e-f1a2-47c3-94df-65b05a8902e9n%40googlegroups.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/cp2k/730e354e-f1a2-47c3-94df-65b05a8902e9n%40googlegroups.com</a>.<br />