Home Forums MaraDNS and other support Compiling Maradns from source on the Raspberry PI OS

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #89

    I compiled maraDNS from source and installed it on the Raspberry PI OS. The file /etc/init.d/maradns does not exist after the install. I have listed the steps I took to build and install. Would you please help me figure this out.


    (maraDNS source file maradns-3.5.0017.tar.xz frommaradns.samiam.org
    Raspberry PI OS source 2020-08-20-raspios-buster-armhf-lite.zip from raspberrypi.org/downloads/raspberry-pi-os)

    Preliminary steps:

    dpkg -s gcc (exists)
    dpkg -s libc6-dev (exists)
    tar -xf maradns-3.5.0017.tar.xz
    cd maradns-3.5.0017
    ./configure; make

    First Install:
    sudo make install

    #Couldn’t find /etc/init.d/maradns. Uninstalled maradns
    sudo make uninstall
    sudo rm /etc/mararc /etc/dwood3rc /etc/maradns/
    sudo rm /etc/mararc /etc/dwood3rc

    Second Install:
    sudo make install DESTDIR=/etc
    #Couldn’t find /etc/init.d/maradns. Uninstalled maradns

    Third Install:
    export DESTDIR=/etc
    sudo make install
    #Couldn’t find /etc/init.d/maradns. Uninstalled maradns

    Fourth Install:
    export PREFIX=”/etc”
    echo $PREFIX
    make install
    #Couldn’t find /etc/init.d/maradns. Uninstalled maradns

    The output generated each time I executed sudo make install was the following:
    VERSION=3.5.0017 ./build/install.sh
    Installing MaraDNS, placing programs in /usr/local//bin/ and /usr/local//sbin/,
    man pages in /usr/local//man/man1/, /usr/local//man/man5/,
    and /usr/local//man/man8/, and documents in /usr/local//doc/maradns-3.5.0017
    Installing maradns
    maradns installed
    Installing Deadwood
    Deadwood installed
    Installing getzone and fetchzone
    getzone and fetchzone installed
    installing zoneserver
    zoneserver installed
    installing askmara
    askmara installed
    installing duende
    duende installed



    Found it; /usr/local/sbin/maradns. Thanks.


    It looks like the program compiled just fine.

    The issue is this: “make install” assumes the underlying OS has SysV Init compatibility; however, many modern Linux distributions use systemd or another, different, init system for spwawning processes and services.

    The best way to resolve this issue is to configure one’s init system so that it has a SysV init compatible layer, and can start processes the way SysV init does.

    Further reading: https://www.freedesktop.org/wiki/Software/systemd/Incompatibilities/



    By default, MaraDNS installs files in /usr/local/bin, /usr/local/sbin, and /etc. When running “make install”, it displays a message telling you where files are being installed:

    Installing MaraDNS, placing programs in $BIN and $SBIN,
    man pages in $MAN1, $MAN5,
    and $MAN8, and documents in $DOCS
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.