It looks like you're new here. If you want to get involved, click one of these buttons!
I'm trying to build klayout on RHEL10 : 4.18.0-553.77.1.el8_10.x86_64 #1 SMP Fri Sep 19 03:36:32 EDT 2025 x86_64 x86_64 x86_64 GNU/Linux
There seems to be an include to git2.h, which is missing.
*../../../src/tl/tl/tlGit.cc:32:10: fatal error: git2.h: No such file or directory
#include <git2.h>
^~~~
compilation terminated.
*
There is no libgit2-devel for RHEL.
Building libgit2 from source also has issues:
-- Checking for module 'heimdal-gssapi'
-- Package 'heimdal-gssapi', required by 'virtual:world', not found
-- Could NOT find GSSAPI (missing: GSSAPI_LIBRARIES GSSAPI_INCLUDE_DIR)
-- Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY OPENSSL_INCLUDE_DIR)
CMake Error at cmake/SelectHTTPSBackend.cmake:144 (message):
unknown HTTPS backend: backend
Call Stack (most recent call first):
src/CMakeLists.txt:40 (include)
How to solve this issue?
Comments
I was able to use a rpm from centos8; but still interested to get it compiled from source
You can build with the "-nolibgit2" option. But in that case, you will not be able to use the package manager with the Git protocol.
Otherwise, I'm afraid you need to have libgit2-devel to build KLayout. CentOS8 has libgit2-devel, so maybe it's an option to build on CentOS8 and transfer the binaries to RHEL8. That becomes easier if you use "-rpath" during the build to point to the installation target location on RHEL8 - if that is different from the location on CentOS8.
If you want to build RPMs, the spec file is in
scripts/rpm-data/klayout.spec
.Matthias