无法安装包:内核缺少Linux支持

我正在尝试通过pkg install linux-dwarffortress在运行FreeBSD 11.0的MacBook Air上安装Dwarf Fortress.以下是一些背景信息:

root@machine0:~ # uname -a
FreeBSD machine0 11.0-RELEASE-p10 FreeBSD 11.0-RELEASE-p10 #1 r319768: Sat Jun 10 07:03:28 CST 2017     root@machine0:/usr/obj/usr/src/sys/GENERIC  amd64

在安装过程中,我得到了一个缺少Linux支持错误的内核:

[1/28] Installing linux-c6-expat-2.0.1_5...
Cannot install package: kernel missing Linux support
pkg: PRE-INSTALL script failed

我刚刚更新了我的系统,following the instructions of the FreeBSD handbook.

我该如何解决?

解决方法:

根据安装linux-dwarffortress之前的dwarffortresswiki,您应该安装所需的包来解决缺少的Linux支持错误:

FreeBSD

Although there is no official version ported to FreeBSD, Dwarf Fortress can nevertheless be run using either Wine or FreeBSD’s compatibility with Linux. However, attempting to run the Linux version out of the blue will result in an error about missing library files. Such files must be downloaded from special linux-compatible packages or ports; using your preferred installation method, install the following:

linux-c6 :

 sudo pkg install linux-c6-gtk2 linux-c6-sdl linux-c6-sdl_image linux-c6-sdl_ttf linux-c6-libGLU \
 linux-c6-openal-soft linux-c6-libsndfile linux-c6-alsa-plugins-oss

linux-f10

If you don’t have the linux-c6 ports available in your system, you can still run Dwarf Fortress (albeit without sound) using the following packages:

 sudo pkg install linux-f10-alsa-lib linux-f10-atk linux-f10-cairo linux-f10-expat linux-f10-fontconfig \
 linux-f10-gtk2 linux-f10-jpeg linux-f10-pango linux-f10-png linux-f10-sdl linux-f10-sdl_image linux-f10-tiff \
 linux-f10-xorg-libs linux-sdl_ttf linux_base-f10 linux_dri linux-f10-libGLU
上一篇:from __future__ import absolute_import


下一篇:源码安装OpenCV