Error with 'libsystemd' file

Upon attempting to deploy my django app, I kept on running on this error:

Cannot find libsystemd or libsystemd-journal:

Package libsystemd was not found in the pkg-config search path.
Perhaps you should add the directory containing `libsystemd.pc’
to the PKG_CONFIG_PATH environment variable
No package ‘libsystemd’ found

I checked my pkgconfig folder and initially did not see the ‘libsystemd.pc’ file it was looking for. Upon reading more about the file, apparently it was replaced by ‘systemd.pc’ after new releases. I tried making a copy of that file and renaming it to ‘libsystemd.pc’ to see if that will solve the issue but it doesn’t. Hoping to get targeted feedbacks here as I really have not seen the exact problem anywhere else.

HI there,

Thanks for reaching out.

I don’t think the require OS-level packages are available on our Native Environments (which also lists installed packages).

If you need a custom OS package you may need to look toward a Docker setup.

Kind regards


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.