安裝htop教程及坑


安裝htop的坑:
1、上官網http://hisham.hm/htop/releases/下載最新的包
2、解壓縮:tar -zxvf htop-2.0.2.tar.gz;
3、進入目標文件夾: cd htop-2.0.2
4、./configure
5、系統若出現以下提示,則需要安裝c編譯環境
configure: error: no acceptable C compiler found in $PATH
安裝c編譯環境:yum -y install gcc
6、裝完c編譯環境后再進行./configure,若出現如下提示,則需要安裝依賴包
configure: error: You may want to use --disable-unicode or install libncursesw.
yum install -y ncurses-devel
7、接下來就是最后的安裝環節:./configure&&make&&make install


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM