源碼編譯安裝軟件包
前提:系統必須安裝:開發工具、開發庫。br/>步驟:
1、獲取源碼包
2、解壓
[root@localhost extundelete-0.2.4]# tar -jxvf extundelete-0.2.4.tar.bz2
3、配置、檢測安裝環境br/>[root@localhost extundelete-0.2.4]# cd extundelete-0.2.4/
[root@localhost extundelete-0.2.4]# ./configure
檢查安裝環境是否符合需求,如果沒有問題,生成:makefile文件
4、編譯
#make
5、安裝
#make install
6、卸載 在解壓的目錄執行卸載命令br/>[root@localhost extundelete-0.2.4]# cd extundelete-0.2.4/
[root@localhost extundelete-0.2.4]# make uninstallbr/>Making uninstall in src
( cd '/usr/local/bin' && rm -f extundelete )
[root@localhost extundelete-0.2.4]# ll /usr/local/bin/
總用量 0
7、建議安裝方式
爲防止卸載時刪除不乾淨,建議安裝時在comfigure步驟添加一個:--prefix 參數,這樣刪除或備份時,直接對這個目錄操作就可以了。br/>[root@localhost ~]# cd extundelete-0.2.4/
[root@localhost extundelete-0.2.4]# make clean 再次編譯需執行次命令
Making clean in src
Making clean in .
[root@localhost extundelete-0.2.4]# ./configure --prefix=/usr/local/extundelete-161207 指定安裝位置
Configuring extundelete 0.2.4
Writing generated files to disk
[root@localhost extundelete-0.2.4]# make && make install 如果確認編譯不會有問題可以一起執行兩個命令br/>[root@localhost ~]# ll /usr/local/extundelete-161207/bin/extundelete
-rwxr-xr-x. 1 root root 1323536 12月 8 21:00 /usr/local/extundelete-161207/bin/extundeletebr/>以後刪除只需刪除設置的路徑即可
[root@localhost local]# pwd
/usr/localbr/>[root@localhost local]# rm -rf extundelete-161207/
[root@localhost local]#
~~~~~
1、獲取源碼包
2、解壓
[root@localhost extundelete-0.2.4]# tar -jxvf extundelete-0.2.4.tar.bz2
3、配置、檢測安裝環境br/>[root@localhost extundelete-0.2.4]# cd extundelete-0.2.4/
[root@localhost extundelete-0.2.4]# ./configure
檢查安裝環境是否符合需求,如果沒有問題,生成:makefile文件
4、編譯
#make
5、安裝
#make install
6、卸載 在解壓的目錄執行卸載命令br/>[root@localhost extundelete-0.2.4]# cd extundelete-0.2.4/
[root@localhost extundelete-0.2.4]# make uninstallbr/>Making uninstall in src
( cd '/usr/local/bin' && rm -f extundelete )
[root@localhost extundelete-0.2.4]# ll /usr/local/bin/
總用量 0
7、建議安裝方式
爲防止卸載時刪除不乾淨,建議安裝時在comfigure步驟添加一個:--prefix 參數,這樣刪除或備份時,直接對這個目錄操作就可以了。br/>[root@localhost ~]# cd extundelete-0.2.4/
[root@localhost extundelete-0.2.4]# make clean 再次編譯需執行次命令
Making clean in src
Making clean in .
[root@localhost extundelete-0.2.4]# ./configure --prefix=/usr/local/extundelete-161207 指定安裝位置
Configuring extundelete 0.2.4
Writing generated files to disk
[root@localhost extundelete-0.2.4]# make && make install 如果確認編譯不會有問題可以一起執行兩個命令br/>[root@localhost ~]# ll /usr/local/extundelete-161207/bin/extundelete
-rwxr-xr-x. 1 root root 1323536 12月 8 21:00 /usr/local/extundelete-161207/bin/extundeletebr/>以後刪除只需刪除設置的路徑即可
[root@localhost local]# pwd
/usr/localbr/>[root@localhost local]# rm -rf extundelete-161207/
[root@localhost local]#
~~~~~
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.