Arch-Linux

無法在 Arch ARM 上從 AUR 安裝 pi-hole

  • August 16, 2020

我在我的 RasPi 上執行 Arch ARM 並想安裝 pi-hole。我在 AUR 中找到了https://aur.archlinux.org/packages/pi-hole-server/,複製它需要一些無法自行安裝的依賴項。好的,我找到並安裝了:

  • 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

我最終yay從 AUR 複製,使用makepkg -si(也需要pacman -S make)安裝它,然後使用 yay 安裝pi-hole-server,效果很好!

如果你想從 AUR 建構任何東西,你應該安裝base-devel,因為大多數包都假定該組中的所有東西都已經安裝並且不將其添加為依賴項

引用自:https://unix.stackexchange.com/questions/604704