Closed MossNotFound closed 1 year ago
Thanks for opening your first issue here 🙋🕵️
try installing
sudo apt-get install libudev-dev
Already installed. Reinstalled for good measure but that still didn't do the trick.
libudev-dev is already the newest version (247.3-7+deb11u1).
@MossNotFound can you install older version systemd to see if that is the issue..
sudo apt install systemd=245.4-4ubuntu3
or build newer versions https://github.com/systemd/systemd/releases
can't seem to get that command working on any ubuntu version so I just tried on ubuntu 18.04 which had a version of like 239 smth and debian sid with systemd v252.3-2 and still getting the same error, I tried building systemd but the dependencies are such a pain and when I actually got to build it just gave out unsearchable errors. Thinking of just moving everything over to Arch Linux with precompiled Unbound 1.17.0
oh, I just saw that debian sid also has unbound 1.17.0 so my issue is solved now, Thank you for your help.
@MossNotFound I build unbound 1.17.0 with no issues on Debian 11 bullseye. systemd 247 version is installed
I have the same problem as above. I'm running DietPi v8.16.2 x86_64 (Debian 11 bullseye) via VirtualBox on my Mac. Tried both systemd (247.3-7+deb11u1) and systemd (252.5-2~bpo11+1) to no avail. Also tried libudev-dev and libsystemd-dev in both bullseye and bullseye-backport.
Take a look at line 11 and line 19 to 26 in https://github.com/NLnetLabs/unbound/blob/master/systemd.m4
Line 11:
PKG_CHECK_MODULES([SYSTEMD], [libsystemd], [have_systemd=yes], [have_systemd=no])
Line 19 - 26:
AS_CASE([$enable_systemd:$have_systemd],
[yes:no],
[AC_MSG_ERROR([systemd enabled but libsystemd not found])],
[*:yes],
[AC_DEFINE([HAVE_SYSTEMD], [1], [Define to 1 if systemd should be used])
LIBS="$LIBS $SYSTEMD_LIBS"
]
)
It seems that it's not detecting libsystemd correctly. 🤔
UPDATE
IT WORKS!! @MossNotFound
Here's how...
Run this apt command.
sudo apt install pkg-config
Compile Unbound by running a ./configure... line
Done!
I figured it out after reading how PKG_CHECK_MODULES works. It requires pkg-config which doesn't come with a fresh install of Linux (DietPi Debian bullseye for me).
UPDATE
IT WORKS!! @MossNotFound
Here's how...
1. Run this apt command.
sudo apt install pkg-config
2. Compile Unbound by running a ./configure... line 3. Done!
I figured it out after reading how PKG_CHECK_MODULES works. It requires pkg-config which doesn't come with a fresh install of Linux (DietPi Debian bullseye for me).
good one . yes dietpi misses alot of package to make a lite OS.
Operating System
Ubuntu, Other (explain in description)
Architecture
64-bit
Platform
Linux
Project
Unbound
Browser
Other
Issue
No response
Issue Description
OS: Ubuntu and Debian from VPS
Hi, i'm trying to self-compile unbound from source following steps in the wiki but encounter this error
Tried again on a clean ubuntu instance, running as root and sudo, reinstalling libsystemd and downgrading to 1.16.0 but still the same error.
Next I tried removing
--enable-systemd
flag and got thru swiftly till the service part which i can't seem to get it working.