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
下载地址: http://www.gns3.net/download
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了。