Fedora 18中安裝GNS3

GNS3是一款很好用的思科模擬器,今天在fedora 18中安裝GNS3了。

1.安裝必要的包

[root@sh-thinkpad]# yum install qt

[root@sh-thinkpad]# yum install python

[root@sh-thinkpad]# yum install sip

[root@sh-thinkpad]# yum install PyQt

2.下載GNS3-0.8.3.1-src.tar.gz  

3. 文件下載完畢之後切換到所在目錄,解壓文件,進入GNS3的目錄

[root@sh-thinkpad]# cd /home/shenghao/MyDocuments/GNS3-0.8.3.1-src

[root@sh-thinkpad GNS3-0.8.3.1-src]#

4.建立GNS3工作目錄:

   [root@sh-thinkpad GNS3-0.8.3.1-src]# mkdir project

   [root@sh-thinkpad GNS3-0.8.3.1-src]# mkdir ios

   [root@sh-thinkpad GNS3-0.8.3.1-src]# mkdir dynimips

5.修改目錄權限

[root@sh-thinkpad GNS3-0.8.3.1-src]# chmod o+rw -R project

[root@sh-thinkpad GNS3-0.8.3.1-src]# chmod o+rw -R ios

[root@sh-thinkpad GNS3-0.8.3.1-src]# chmod o+rw -R dynimips

然後就可以使用:

[root@sh-thinkpad GNS3-0.8.3.1-src]# ./gns3

來打開gns3了,但是出現

bash: ./gns3: 權限不夠

那就給GNS3使用允許以程序執行文件即可

但是還有問題:

[root@sh-thinkpad GNS3-0.8.3.1-src]# ./gns3

Can't import Qt modules, PyQt is probably not installed ...

解決辦法:

[root@sh-thinkpad GNS3-0.8.3.1-src]# yum -y install python sip qt4 PyQt4

已加載插件:fastestmirror, langpacks, presto, refresh-packagekit, remove-with-leaves

Repository fedora is listed more than once in the configuration

Repository fedora-debuginfo is listed more than once in the configuration

Repository fedora-source is listed more than once in the configuration

Repository updates is listed more than once in the configuration

Repository updates-debuginfo is listed more than once in the configuration

Repository updates-source is listed more than once in the configuration

Repository updates is listed more than once in the configuration

Repository updates-debuginfo is listed more than once in the configuration

Repository updates-source is listed more than once in the configuration

Repository fedora is listed more than once in the configuration

Repository fedora-debuginfo is listed more than once in the configuration

Repository fedora-source is listed more than once in the configuration

Loading mirror speeds from cached hostfile

* fedora: mirrors.sohu.com

* rpmfusion-free: mirrors.163.com

* rpmfusion-free-updates: mirrors.163.com

* updates: mirrors.sohu.com

包 python-2.7.3-13.fc18.i686 已安裝並且是最新版本

包 sip-4.14.6-1.fc18.i686 已安裝並且是最新版本

包 1:qt-4.8.4-17.fc18.i686 已安裝並且是最新版本

解決依賴關係

--> 執行事務檢查

---> 軟件包 PyQt4.i686.0.4.10.1-4.fc18 將被 安裝

--> 處理依賴關係 libphonon.so.4,它被軟件包 PyQt4-4.10.1-4.fc18.i686 需要

--> 執行事務檢查

---> 軟件包 phonon.i686.0.4.6.0-5.fc18 將被 安裝

--> 處理依賴關係 phonon-backend(x86-32) >= 4.4,它被軟件包 phonon-4.6.0-5.fc18.i686 需要

--> 處理依賴關係 libqzeitgeist.so.1,它被軟件包 phonon-4.6.0-5.fc18.i686 需要

--> 執行事務檢查

---> 軟件包 libqzeitgeist.i686.0.0.8.0-8.fc18 將被 安裝

---> 軟件包 phonon-backend-gstreamer.i686.2.4.6.3-1.fc18 將被 安裝

--> 完成依賴關係計算

依賴關係解決

================================================================================

Package                       架構      版本                倉庫          大小

================================================================================

正在安裝:

PyQt4                         i686      4.10.1-4.fc18       updates      2.6 M

爲依賴而安裝:

libqzeitgeist                 i686      0.8.0-8.fc18        fedora        73 k

phonon                        i686      4.6.0-5.fc18        fedora       209 k

phonon-backend-gstreamer      i686      2:4.6.3-1.fc18      updates      140 k

事務概要

================================================================================

安裝  1 軟件包 (+3 Dependent packages)

總下載量:3.0 M

安裝大小:15 M

下載軟件包:

(1/4): libqzeitgeist-0.8.0-8.fc18.i686.rpm                 |  73 kB   00:00    

(2/4): phonon-4.6.0-5.fc18.i686.rpm                        | 209 kB   00:00    

(3/4): PyQt4-4.10.1-4.fc18.i686.rpm                        | 2.6 MB   00:02    

(4/4): phonon-backend-gstreamer-4.6.3-1.fc18.i686.rpm      | 140 kB   00:00    

--------------------------------------------------------------------------------

總計                                            1.0 MB/s | 3.0 MB     00:02    

運行事務檢查

執行事務測試

事務測試成功

執行事務

 正在安裝    : libqzeitgeist-0.8.0-8.fc18.i686                             1/4

 正在安裝    : 2:phonon-backend-gstreamer-4.6.3-1.fc18.i686                2/4

 正在安裝    : phonon-4.6.0-5.fc18.i686                                    3/4

 正在安裝    : PyQt4-4.10.1-4.fc18.i686                                    4/4

 Verifying   : PyQt4-4.10.1-4.fc18.i686                                    1/4

 Verifying   : phonon-4.6.0-5.fc18.i686                                    2/4

 Verifying   : 2:phonon-backend-gstreamer-4.6.3-1.fc18.i686                3/4

 Verifying   : libqzeitgeist-0.8.0-8.fc18.i686                             4/4

已安裝:

 PyQt4.i686 0:4.10.1-4.fc18                                                    

作爲依賴被安裝:

 libqzeitgeist.i686 0:0.8.0-8.fc18               phonon.i686 0:4.6.0-5.fc18  

 phonon-backend-gstreamer.i686 2:4.6.3-1.fc18  

完畢!

這樣就可以運行GNS3了。

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