无法在 Arch ARM 上从 AUR 安装 pi-hole

无法在 Arch ARM 上从 AUR 安装 pi-hole

我在 RasPi 上运行 Arch ARM,并且想要安装 pi-hole。我发现https://aur.archlinux.org/packages/pi-hole-server/在 AUR 中,克隆它需要一些它自己无法安装的依赖项。好的,我找到并安装了:

  • net-tools
  • logrotate
  • fakeroot
  • bind-tools
  • strip

在常规的 arch 存储库中,pacman但也pi-hole-ftl可以从中安装AUR。所以我克隆了仓库并执行了makepkg -si我得到的

CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.

好吧,我能够做到export CMAKE_MAKE_PROGRAM=/usr/bin/cmake这一点,这似乎对此有所帮助,但我也得到了:

CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage

export CMAKE_C_COMPILER=/usr/bin/gcc没有解决问题。为什么是这样?我该如何解决这个问题?

我有:

 $ echo $CMAKE_C_COMPILER
 /usr/bin/gcc

base-delvel已经安装了,我得到:

warning: autoconf-2.69-7 is up to date -- reinstalling
warning: automake-1.16.2-3 is up to date -- reinstalling
warning: binutils-2.34-5 is up to date -- reinstalling
warning: bison-3.6.4-1 is up to date -- reinstalling
warning: fakeroot-1.24-2 is up to date -- reinstalling
warning: file-5.39-1 is up to date -- reinstalling
warning: findutils-4.7.0-2 is up to date -- reinstalling
warning: flex-2.6.4-3 is up to date -- reinstalling
warning: gawk-5.1.0-1 is up to date -- reinstalling
warning: gcc-10.1.0-2 is up to date -- reinstalling
warning: gettext-0.20.2-1 is up to date -- reinstalling
warning: grep-3.4-1 is up to date -- reinstalling
warning: groff-1.22.4-3 is up to date -- reinstalling
warning: gzip-1.10-3 is up to date -- reinstalling
warning: libtool-2.4.6+42+gb88cebd5-13 is up to date -- reinstalling
warning: m4-1.4.18-3 is up to date -- reinstalling
warning: make-4.3-3 is up to date -- reinstalling
warning: pacman-5.2.2-1 is up to date -- reinstalling
warning: patch-2.7.6-8 is up to date -- reinstalling
warning: pkgconf-1.7.3-1 is up to date -- reinstalling
warning: sed-4.8-1 is up to date -- reinstalling
warning: sudo-1.9.2-1 is up to date -- reinstalling
warning: texinfo-6.7-3 is up to date -- reinstalling
warning: which-2.21-5 is up to date -- reinstalling

答案1

base-devel如果你想从 AUR 构建任何东西,你应该安装它,因为大多数软件包都假设该组中的所有内容都已安装,因此不会将其添加为依赖项

答案2

我最终yay从 AUR 克隆,使用makepkg -si(也需要pacman -S make)安装它,然后使用 yay 进行安装,pi-hole-server效果很好!

相关内容