Ubuntu 離線安裝htop

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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章