六月丁香五月婷婷,丁香五月婷婷网,欧美激情网站,日本护士xxxx,禁止18岁天天操夜夜操,18岁禁止1000免费,国产福利无码一区色费

學(xué)習(xí)啦>學(xué)習(xí)電腦>操作系統(tǒng)>Linux教程>

linux安裝gz文件命令

時(shí)間: 佳洲1085 分享

  在linux系統(tǒng)下如何安裝gz文件命令,下面由學(xué)習(xí)啦小編為大家整理了linux下安裝gz文件命令的方法步驟,希望大家喜歡!

  linux下安裝gz文件命令

  linux tar.gz安裝方法

  linux下解壓tar.gz文件

  下面所所有操作,后面有所有步驟說明

  [yonghu@localhost ~]# su root

  口令:

  [root@localhost ~]# cd /home/new/Desktop

  [root@localhost Desktop]# tar -xzvf fcitx-3.4.2.tar.gz

  [root@localhost Desktop]# cd /home/new/Desktop/fcitx-3.4.2

  [root@localhost fcitx-3.4.2]#./configure --prefix=/opt/fictx

  [root@localhost fcitx-3.4.2]#make

  [root@localhost fcitx-3.4.2]#make install

  各步驟詳解

  [yonghu@localhost ~]#su root //(使用root帳戶登錄,使用其他用戶,之后操作有可能權(quán)限不夠)

  口令: // 輸入root密碼

  [root@localhost ~]# cd /home/new/Desktop

  // (切換到tar.gz文件所在目錄,這里我的tar.gz文件在桌面)

  [root@localhost Desktop]#tar -xzvf fcitx-3.4.2.tar.gz

  // (解壓tar.gz文件,這里以fcitx-3.4.2來舉例,解壓得到fcitx-3.4.2文件夾)

  [root@localhost Desktop]#cd /home/new/Desktop/fcitx-3.4.2

  //(切換目錄到fcitx-3.4.2,軟件解壓的目錄)

  [root@localhost fcitx-3.4.2]#./configure --prefix=/opt/fictx

  //(配置,把文件存放在/opt/fictx下,刪除時(shí),卸載軟件時(shí),只要?jiǎng)h除這個(gè)文件就行了)

  [root@localhost fcitx-3.4.2]#make (編譯)

  [root@localhost fcitx-3.4.2]#make install (安裝)

  在tar.gz的東西不多了~~~~

  補(bǔ)充說明:linux下tar.gz文件如何安裝

  大多以tar.gz 和tar.bz2打包軟件,大多是通過 ./configure ;make ;make install 來安裝的;有的軟件是直接make;make install ;

  我們可以通過./configure --help 來查看配置軟件的功能;大多軟件是提供./configure 配置軟件的功能的;少數(shù)的也沒有,如果沒有的就不用./configure ;直接make;make install 就行了;

  ./configure 比較重要的一個(gè)參數(shù)是 --prefix ,用--prefix 參數(shù),我們可以指定軟件安裝目錄;當(dāng)我們不需要這個(gè)軟件時(shí),直接刪除軟件的目錄就行了;

  比如我們可以指定fcitx 安裝到 /opt/fcitx 目錄中;

  [root@localhost fcitx]#./configure --prefix=/opt/fcitx

  如果我們不需要fcitx 時(shí),可以直接刪除 /opt/fcitx 目錄;

  所以我們舉這個(gè)例子中,fcitx如果定制安裝到 /opt/fcitx目錄中,完整的安裝方法應(yīng)該是:

  [root@localhost fcitx]# tar jxvf fcitx-3.2-050827.tar.bz2

  [root@localhost fcitx]#cd fcitx

  [root@localhost fcitx]# ./configure --prefix=/opt/fcitx

  [root@localhost fcitx]# make

  [root@localhost fcitx]# make install

3606530