After waiting for pihole v4.0 hoping it will fix FTLDNS beta test failed ive decided to upgrade from v3.3.1 on my tomato r7000 chrooted debian, unfortunately it still failed to start, same issue with before.
root@gw:~# /etc/init.d/pihole-FTL start
root@b-12-l-14-gw:/# /etc/init.d/pihole-FTL start
Not running
Failed to set capabilities on file `/usr/bin/pihole-FTL' (Operation not supported)
Warning: Starting pihole-FTL as root because setting capabilities is not supported on this system
/etc/init.d/pihole-FTL: line 44: /usr/bin/pihole-FTL: No such file or directory
root@gw:~# /usr/bin/pihole-FTL
bash: /usr/bin/pihole-FTL: No such file or directory
root@b-12-l-14-gw:~# ls -alh /usr/bin/pihole-FTL
-rwxr-xr-x 1 root root 3.9M Aug 19 23:50 /usr/bin/pihole-FTL
root@b-12-l-14-gw:/# pihole -v
Pi-hole version is v4.0 (Latest: v4.0)
AdminLTE version is v4.0 (Latest: v4.0)
/opt/pihole/version.sh: line 19: /usr/bin/pihole-FTL: No such file or directory
Latest FTL version is v4.0
Please run file on some other binary on your system, for example,
file "$(which dnsmasq)"
so we take a look at what is needed for your system.
The binary that got downloaded for you is the one compiled for ARM on the Raspberry Pi 2 and up (ARMv7, Broadcom BCM2836). If the processor of your router is ARMv7 but, e.g., doesn't support hard-float, you'll need to install pihole-FTL from source so it can be compiled specifically for your system.
We prepared instructions for how to do this here and have already some positive feedback where user followed this guide and succeeded compiling pihole-FTL for devices like the Pogoplug.
After all, I assume that the libs on your router are incompatible with what pihole-FTL is compiled for (/lib/ld-linux-armhf.so.3) as this file is missing. You may succeed when you create a symlink /lib/ld-linux-armhf.so.3 pointing to /lib/ld-linux.so.3.
Compiling from source with the instructions I linked earlier is the best solution and will be an almost guaranteed success.
root@gw:~# ldd /usr/bin/pihole-FTL
not a dynamic executable
root@b-12-l-14-gw:~#
got segmentation fault error after symlinking linux-armhf.so.3 to ld-linux.so.3
root@gw:~# /etc/init.d/pihole-FTL start
Not running
Failed to set capabilities on file `/usr/bin/pihole-FTL' (Operation not supported)
Warning: Starting pihole-FTL as root because setting capabilities is not supported on this system
/etc/init.d/pihole-FTL: line 25: 7243 Segmentation fault pihole-FTL
compiling halted at
memory.c:35:1: error: (near initialization for 'counters.blocked') [-Werror=missing-field-initializers]
cc1: all warnings being treated as errors
make: *** [obj/memory.o] Error 1
make: *** Waiting for unfinished jobs....