GNS3 on Centos / Redhat / Fedora源码安装

简介:

  1.安装必要的软件
yum install python python-devel xorg-x11-proto-devel libXext-devel
yum install gcc-c++

2.下载qt4pyqt4sip4,这几个包可以在我的服务器上下载
cd /tmp
wget http://61.160.250.243:1000/GNS3/GNS3-0.7.2-src.tar.bz2
wget http://61.160.250.243:1000/GNS3/PyQt-x11-gpl-4.5.2.tar.gz
wget http://61.160.250.243:1000/GNS3/qt-x11-opensource-src-4.5.1.tar.gz
wget http://61.160.250.243:1000/GNS3/sip-4.8.1.tar.gz

3.编译Qt4
cd /tmp
tar zxvf qt-x11-opensource-src-4.5.1.tar.gz
cd qt-x11-opensource-src-4.5.1
./configure -nomake examples -nomake demos -qt-gif -no-exceptions -debug -qt3support //等几分钟
gmake   //等吧,1小时-3小时不等
gmake install    //继续等,30分钟或者更长
export PATH=/usr/local/Trolltech/Qt-4.5.1/bin:$PATH


 


4.编译sip
cd /tmp
tar zxvf sip-4.8.1.tar.gz
cd sip-4.8.1
python configure.py
make 
make install


5.编译PyQt
cd /tmp
tar zxvf PyQt-x11-gpl-4.5.2.tar.gz
cd PyQt-x11-gpl-4.5.2
python configure.py
make   //继续等,差不多30分钟以上
make install 

  


6.安装GNS3
cd /tmp
tar jxvf GNS3-0.7.2-src.tar.bz2 -C /opt
mv /opt/GNS3-0.7.2-src /opt/GNS3

7.创建几个目录
mkdir /opt/GNS3/Dynamips
mkdir /opt/GNS3/IOS
cd /opt/GNS3/Dynamips
wget http://www.ipflow.utc.fr/dynamips/dynamips-0.2.8-RC2-x86.bin    //for 32bit
chmod +x ./dynamips-0.2.8-RC2-x86.bin
wget http://www.ipflow.utc.fr/dynamips/dynamips-0.2.8-RC2-amd64.bin //for 64bit
chmod +x ./dynamips-0.2.8-RC2-amd64.bin

8.运 行GNS3
python /opt/GNS3/gns3

 




原作者:探险者  谢谢分享

按照上述方法运行python /opt/GNS3/gns3会提示:

[root@localhost GNS3]# ./gns3 
Can't import Qt modules, PyQt is probably not installed ...

解决方法:

I’ve finally decided to move away from configuring all my emulators on the CLI and use GNS3.  The primary reason for using a GUI over the CLI is ease-of-use.  Whenever I run into a unique routing problem or need to conduct a proof of concept on a technology at work, I found that the whole process of generating a .net configuration was time consuming.  Using GNS3 allows me to quickly point-and-click my way to a new scenario in just minutes.

After downloading the source files, I attempted to run ./gns3 and encountered the following error message:

[root@CTSLA-NMS19 GNS3-0.6-src]# ./gns3
Can’t import Qt modules, PyQt is probably not installed …

To satisfy the installation requirements, I needed to install or update a few of the dependencies:

[root@CTSLA-NMS19 GNS3-0.6-src]# yum -y install python sip qt4 PyQt4

[root@localhost GNS3]# yum -y install python sip qt4 PyQt4
已加载插件:presto, refresh-packagekit
设置安装进程
包 python-2.6.4-27.fc13.i686 已安装并且是最新版本
包 sip-4.10.2-1.fc13.i686 已安装并且是最新版本
包 1:qt-4.6.2-20.fc13.i686 已安装并且是最新版本
解决依赖关系
--> 执行事务检查
---> 软件包 PyQt4.i686 0:4.7.3-1.fc13 将被 升级
--> 完成依赖关系计算

依赖关系解决

================================================================================
 软件包          架构           版本                     仓库              大小
================================================================================
正在安装:
 PyQt4           i686           4.7.3-1.fc13             fedora           2.1 M

事务概要
================================================================================
安装       1 软件包
更新       0 软件包

总下载量:2.1 M
Installed size: 12 M
下载软件包:
Setting up and reading Presto delta metadata
Processing delta metadata
Package(s) data still to download: 2.1 M
PyQt4-4.7.3-1.fc13.i686.rpm                              | 2.1 MB     00:16     
运行 rpm_check_debug 
执行事务测试
事务测试成功
执行事务
  正在安装       : PyQt4-4.7.3-1.fc13.i686                                  1/1 

已安装:
  PyQt4.i686 0:4.7.3-1.fc13                                                     

完毕!

Once PyQt4 was installed, GNS3 opened properly.

至此,在Fedora上可以运行GNS3了,看截图:

 





本文转自 tiger506 51CTO博客,原文链接:http://blog.51cto.com/tiger506/347453,如需转载请自行联系原作者

目录
相关文章
|
6月前
|
监控 PHP Apache
centos7.源码安装zabbix4.4
centos7.源码安装zabbix4.4
|
18天前
|
Linux Apache
CentOS 7 源码安装LAMP环境源 和apache监听别的端口
CentOS 7 源码安装LAMP环境源 和apache监听别的端口
13 0
|
4月前
|
关系型数据库 MySQL Linux
Centos安装MySQL数据库(注意:源码安装)
Centos安装MySQL数据库(注意:源码安装)
142 0
|
7月前
|
Kubernetes NoSQL Java
CentOS7上源码安装Redis6
CentOS7上源码安装Redis6
202 0
|
存储 缓存 运维
运维 --- Nginx介绍和在CentOS/Redhat下安装
运维 --- Nginx介绍和在CentOS/Redhat下安装
运维 --- Nginx介绍和在CentOS/Redhat下安装
|
Linux
CentOS7源码安装ffmpeg,并利用ffmpeg实现音频截取
CentOS7源码安装ffmpeg,并利用ffmpeg实现音频截取
153 0
CentOS7源码安装ffmpeg,并利用ffmpeg实现音频截取
|
监控 关系型数据库 MySQL
centos/redhat 7 下zabbix安装及使用
centos/redhat 7 下zabbix安装及使用
701 0
centos/redhat 7 下zabbix安装及使用
|
Linux
Centos/Redhat 本地yum源配置(Linux)
Centos/Redhat 本地yum源配置(Linux)
262 0
Centos/Redhat 本地yum源配置(Linux)
|
Linux 数据库管理
五、Linux(CentOS7)编译源码安装Subversion
1、安装apr-util #yum install apr-util apr-util-devel 2、安装sqlite #yum install sqlite sqlite-devel 3、安装zlib #tar zxf zlib-1.2.8.tar.gz #cd zlib-1.2.8 #./configure #make && make install
309 0
|
Ubuntu 安全 Unix
CentOS/Fedora/Redhat系列桌面级系统下载工具整合
CentOS/Fedora/Redhat系列桌面级系统下载工具整合
365 0
CentOS/Fedora/Redhat系列桌面级系统下载工具整合