1. 下載ncurses
wget http:
//ftp
.gnu.org
/pub/gnu/ncurses/ncurses-5
.9.
tar
.gz
1. tar zxvf ncurses-5.9.tar.gz
2. cd ncurses-5.9
3. sudo ./configure
4. sudo make
5. sudo make install
安裝過程可能出現以下錯誤:
In file included from ./curses.priv.h:325:0, from ../ncurses/lib_gen.c:19: _12411.c 843:15: error: expected ‘)’ before ‘int’
解決方案:
在執行./configure 命令之前執行一下命令
export CPPFLAGS="-P"
2. 下載htop
wget http:
//sourceforge
.net
/projects/htop/files/htop/1
.0.2
/htop-1
.0.2.
tar
.gz
1. tar zxvf htop-1.0.2.tar.gz
2. cd htop-1.0.2
3. sudo ./configure
4. sudo make
5. sudo make install
安裝過程可能出現以下錯誤:
configure: error: You may want to use --disable-unicode or install libncursesw.
解決方案:
./configure --disable-unicode