Htop в FreeBSD.

Looking up mirrors… 5 mirrors found.
Fetching public key from… done.




Applying patches… done.
Fetching 1 new ports or files… done.

Переходимо в

# cd /usr/ports/

# make search name=htop
Port:   htop-0.8.3
Path:   /usr/ports/sysutils/htop
Info:   A better top(1) — interactive process viewer
B-deps: autoconf-2.62 autoconf-wrapper-20071109 automake-1.9.6_3 automake-wrapper-20071109 libtool-2.2.6b m4-1.4.14_1,1 perl-5.10.1_1 python26-2.6.5
R-deps: lsof-4.84A,5

# cd sysutils/htop

# make install clean

В процесі інсталяції видалимо помилку


===>  Configuring for htop-0.8.3
htop(1) requires linprocfs(5) to be mounted. If you don’t
have it mounted already, please add this line to /etc/fstab
and run `mount linproc`:
linproc /compat/linux/proc linprocfs rw 0 0
*** Error code 1

Stop in /usr/ports/sysutils/htop.
*** Error code 1

Stop in /usr/ports/sysutils/htop.


Тоді зробимо, те що просять

vi /etc/fstab


/dev/ad0s1g              /var/tmp                    ufs           rw                 2       2
/dev/acd0                 /cdrom                       cd9660     ro,noauto       0       0
linproc                      /compat/linux/proc       linprocfs   rw                  0       0

# mount linproc
mount: /usr/compat/linux: No such file or directory

Створюємо директорію

# mkdir /usr/compat/linux
# mount linproc
mount: /usr/compat/linux/proc: No such file or directory

Знову створюємо директорію

# mkdir /usr/compat/linux/proc
# mount linproc


Продовжуємо інсталяцію

# make install clean
===>   htop-0.8.3 depends on file: /usr/local/bin/python2.6 — found
===>   htop-0.8.3 depends on file: /usr/local/bin/automake-1.9 — found
===>   htop-0.8.3 depends on file: /usr/local/bin/autoconf-2.62 — found
===>   htop-0.8.3 depends on package: libtool>=2.2 — found
===>  Configuring for htop-0.8.3
checking for a BSD-compatible install… /usr/bin/install -c -o root -g wheel



===>   Compressing manual pages for htop-0.8.3
===>   Registering installation for htop-0.8.3
===>  Cleaning for automake-1.9.6_3
===>  Cleaning for autoconf-2.62
===>  Cleaning for lsof-4.84A,5
===>  Cleaning for automake-wrapper-20071109
===>  Cleaning for m4-1.4.14_1,1
===>  Cleaning for help2man-1.38.2_1
===>  Cleaning for autoconf-wrapper-20071109
===>  Cleaning for libsigsegv-2.8
===>  Cleaning for p5-gettext-1.05_3
===>  Cleaning for htop-0.8.3

# rehash

# htop


Для порівняння top

P.S.: В CentOS достатньо yum -y install htop.

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *