精品丰满熟女一区二区三区_五月天亚洲欧美综合网_亚洲青青青在线观看_国产一区二区精选

  • <menu id="29e66"></menu>

    <bdo id="29e66"><mark id="29e66"><legend id="29e66"></legend></mark></bdo>

  • <pre id="29e66"><tt id="29e66"><rt id="29e66"></rt></tt></pre>

      <label id="29e66"></label><address id="29e66"><mark id="29e66"><strike id="29e66"></strike></mark></address>
      學習啦>學習電腦>操作系統(tǒng)>Linux教程>

      linux安裝gz文件命令

      時間: 佳洲1085 分享

        在linux系統(tǒng)下如何安裝gz文件命令,下面由學習啦小編為大家整理了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帳戶登錄,使用其他用戶,之后操作有可能權限不夠)

        口令: // 輸入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下,刪除時,卸載軟件時,只要刪除這個文件就行了)

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

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

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

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

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

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

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

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

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

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

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

        [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