我正在尝试安装htop,但是我无法安装,因为我得到了这个致命的错误:
# cd /usr/ports/sysutils/htop && make install clean
===> Installing for htop-1.0.1
===> htop-1.0.1 depends on executable: lsof - not found
===> Verifying install for lsof in /usr/ports/sysutils/lsof
===> Configuring for lsof-4.86B,6
Creating ./lockf_owner.h from /usr/src/sys/kern/kern_lockf.c
FATAL ERROR: can't read /usr/src/sys/kern/kern_lockf.c
FATAL ERROR: ./lockf_owner.h creation failed (see 00FAQ)
===> Script "Configure" failed unexpectedly.
Please report the problem to ler@lerctr.org [maintainer] and attach the
"/usr/ports/sysutils/lsof/work/lsof_4.86B.freebsd/config.log" including the
output of the failure of your make command. Also, it might be a good idea to
provide an overview of all packages installed on your system (e.g. an `ls
/var/db/pkg`).
*** Error code 1
Stop in /usr/ports/sysutils/lsof.
*** Error code 1
Stop in /usr/ports/sysutils/htop.
*** Error code 1
Stop in /usr/ports/sysutils/htop.那是什么意思,我该怎么解决呢?
发布于 2012-03-12 10:55:06
您是否按照错误信息的建议查看了00FAQ?问题8.6准确地描述了你的情况以及如何解决这个问题。
如果不想在计算机上安装内核源代码,解决办法是安装lsof二进制包
pkg_add -r lsof发布于 2012-03-11 23:53:04
考虑到lsof是htop的一个依赖项,而您遇到的问题是文件无法读取和/或创建,在安装过程中可能需要使用lsof的S服务。或者安装lsof,或者,如果已经安装了,则在/usr/ports/sysutils/lsof中为lsof创建一个硬链接。
发布于 2012-03-12 00:02:45
据我所知,htop将linuxulator作为依赖项。它在这里找不到的是内核源代码中的一些东西。检查/usr/src中是否有任何内容。如果不是,您应该使用csup签出源集合,它属于它。
https://serverfault.com/questions/368635
复制相似问题