![如何在 Arch Linux 发行版上安装 libtcod?](https://linux22.com/image/188140/%E5%A6%82%E4%BD%95%E5%9C%A8%20Arch%20Linux%20%E5%8F%91%E8%A1%8C%E7%89%88%E4%B8%8A%E5%AE%89%E8%A3%85%20libtcod%EF%BC%9F.png)
除了使用apk-get
.有没有办法通过pacman下载这个库?我只使用 Linux 终端大概一个月,所以可能有些东西我没有得到。
编辑:我正在尝试安装 C++ libtcod 库。
答案1
是的,但是您需要使用Arch 用户存储库(AUR)。按照 Arch Wiki 中的说明进行操作 (https://wiki.archlinux.org/index.php/Arch_User_Repository)然后您可以使用您最喜欢的 AUR 客户端安装它。例如:
$ trizen -Ss libtcod
aur/libtcod 1.15.1-1 [unmaintained] [28+] [0.00%] [22 May 2020]
Roguelike graphics/utility library
aur/libtcod-151 1.5.1-2 [unmaintained] [9+] [0.00%] [6 Apr 2017]
Roguelike graphics/utility library (v1.5.1 maintained for brogue)
aur/libtcod-git 1.16.0.alpha.12.r0.g1c8be39-1 [0+] [0.00%] [27 Aug 2020]
Roguelike graphics/utility library. Development version.
aur/python-libtcod 1.15.1-2 [2+] [0.00%] [8 Jul 2020]
Python Roguelike graphics/utility library.
aur/python-libtcod-cffi 1.0-1 [unmaintained] [2+] [0.00%] [3 Oct 2016]
Python CFFI port of libtcod.
aur/python-tdl 1.5.3-4 [out-of-date] [unmaintained] [1+] [0.00%] [4 Aug 2016]
Pythonic CFFI port of libtcod.
因此,要安装,我将运行trizen -S python-libtcod
或 ,trizen -S libtcod-git
具体取决于您需要哪一个。