htop – could not read procfs

After installation of htop you can often see

Error: could not read procfs (compiled to look in /compat/linux/proc).

there is some operations you should do :

1. Install linux_base-f10

[root@gw-ds14 ~]# pkg install linux_base-f10
Updating FreeBSD repository catalogue…
FreeBSD repository is up-to-date.
All repositories are up-to-date.
The following 1 packages will be affected (of 0 checked):

New packages to be INSTALLED:
linux_base-f10: 10_8

The process will require 135 MB more space.
17 MB to be downloaded.

Proceed with this action? [y/N]: y
Fetching linux_base-f10-10_8.txz: 100% 17 MB 1.6M/s 00:11
Checking integrity… done (0 conflicting)
[1/1] Installing linux_base-f10-10_8: 100%

+++ Please mount linprocfs manually! +++

Running linux ldconfig…
[root@gw-ds14 ~]#

2. Enable linux in rc.conf

[root@gw-ds14 ~]# echo ‘linux_enable=”YES”‘ >> /etc/rc.conf

3. Add linproc to fstab

[root@gw-ds14 ~]# echo ‘linproc  /compat/linux/proc     linprocfs rw    0       0’ >>/etc/fstab

4. Mount linproc

[root@gw-ds14 ~]# mount -a

5. Run htop



Bookmark the permalink.

Comments are closed.