CentOS6.5 安装GNS3
2015-09-11 17:00
501 查看
实验所需软件下载地址:http://down.51cto.com/data/2092966
1、实验环境
[root@CentOS1 ~]# head -1 /etc/issue
CentOS release 6.5 (Final)
[root@CentOS1 ~]# uname -r
2.6.32-431.el6.i686
2、准备工作
2.1、安装图形界面
yum -y groupinstall "Desktop"
yum -y groupinstall "X Window System"
yum -y groupinstall "Chinese Support"
startx
2.2、安装VNC
yum -y install tigervnc*
vncserver :1
3、安装依赖包
yum -y install PyQt4 sip python qt qt-x11
4、安装dynamips
[root@CentOS1 src]# ls
c3640-jk9o3s-mz.124-7a.bin dynamips-0.2.8-RC3-community.tar.gz GNS3-0.8.3.1-src.tar.gz
[root@CentOS1 src]# tar zxvf dynamips-0.2.8-RC3-community.tar.gz
[root@CentOS1 src]# cd dynamips-0.2.8-RC3-community
[root@CentOS1 dynamips-0.2.8-RC3-community]# make
make -C stable
make[1]: Entering directory `/usr/local/src/dynamips-0.2.8-RC3-community/stable'
Linking rom2c
make[1]: cc: Command not found
make[1]: *** [rom2c] Error 127
make[1]: Leaving directory `/usr/local/src/dynamips-0.2.8-RC3-community/stable'
make: *** [dynamips.stable] Error 2
[root@CentOS1 dynamips-0.2.8-RC3-community]# yum -y install gcc
[root@CentOS1 dynamips-0.2.8-RC3-community]# make
make -C stable
make[1]: Entering directory `/usr/local/src/dynamips-0.2.8-RC3-community/stable'
Linking rom2c
cc: /usr/lib/libelf.a: No such file or directory
../common/rom2c.c:16:20: error: libelf.h: No such file or directory
../common/rom2c.c: In function ‘main’:
../common/rom2c.c:25: error: ‘Elf32_Ehdr’ undeclared (first use in this function)
../common/rom2c.c:25: error: (Each undeclared identifier is reported only once
../common/rom2c.c:25: error: for each function it appears in.)
../common/rom2c.c:25: error: ‘ehdr’ undeclared (first use in this function)
../common/rom2c.c:26: error: ‘Elf32_Phdr’ undeclared (first use in this function)
../common/rom2c.c:26: error: ‘phdr’ undeclared (first use in this function)
../common/rom2c.c:27: error: ‘Elf’ undeclared (first use in this function)
../common/rom2c.c:27: error: ‘img_elf’ undeclared (first use in this function)
../common/rom2c.c:42: warning: implicit declaration of function ‘elf_version’
../common/rom2c.c:42: error: ‘EV_CURRENT’ undeclared (first use in this function)
../common/rom2c.c:42: error: ‘EV_NONE’ undeclared (first use in this function)
../common/rom2c.c:47: warning: implicit declaration of function ‘elf_begin’
../common/rom2c.c:47: error: ‘ELF_C_READ’ undeclared (first use in this function)
../common/rom2c.c:49: warning: implicit declaration of function ‘elf_errmsg’
../common/rom2c.c:49: warning: implicit declaration of function ‘elf_errno’
../common/rom2c.c:49: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
../common/rom2c.c:53: warning: implicit declaration of function ‘elf32_getphdr’
../common/rom2c.c:55: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
../common/rom2c.c:64: warning: implicit declaration of function ‘elf32_getehdr’
make[1]: *** [rom2c] Error 1
make[1]: Leaving directory `/usr/local/src/dynamips-0.2.8-RC3-community/stable'
make: *** [dynamips.stable] Error 2
[root@CentOS1 dynamips-0.2.8-RC3-community]# yum -y install elfutils*
[root@CentOS1 dynamips-0.2.8-RC3-community]# make
make -C stable
make[1]: Entering directory `/usr/local/src/dynamips-0.2.8-RC3-community/stable'
Linking rom2c
/usr/bin/ld: cannot find -luuid
collect2: ld returned 1 exit status
make[1]: *** [rom2c] Error 1
make[1]: Leaving directory `/usr/local/src/dynamips-0.2.8-RC3-community/stable'
make: *** [dynamips.stable] Error 2
[root@CentOS1 dynamips-0.2.8-RC3-community]# yum -y install libuuid*
[root@CentOS1 dynamips-0.2.8-RC3-community]# make
make -C stable
make[1]: Entering directory `/usr/local/src/dynamips-0.2.8-RC3-community/stable'
Linking rom2c
/usr/bin/ld: cannot find -lpcap
collect2: ld returned 1 exit status
make[1]: *** [rom2c] Error 1
make[1]: Leaving directory `/usr/local/src/dynamips-0.2.8-RC3-community/stable'
make: *** [dynamips.stable] Error 2
[root@CentOS1 dynamips-0.2.8-RC3-community]# yum -y install libpcap*
[root@CentOS1 dynamips-0.2.8-RC3-community]# make && make install
(若为64位系统,先执行export DYNAMIPS_LIB=lib64和export DYNAMIPS_ARCH=amd64在make&&make install )
5、安装GNS3
[root@CentOS1 src]# tar zxvf GNS3-0.8.3.1-src.tar.gz
[root@CentOS1 src]# cd GNS3-0.8.3.1-src
[root@CentOS1 GNS3-0.8.3.1-src]# python setup.py install
6、启动GNS3
6.1、添加IOS镜像
6.2、测试dynamips
6.3、添加设备
注释掉下面两行,重启GNS3即可
[root@CentOS1 GNS3-0.8.3.1-src]# vim /usr/lib/python2.6/site-packages/GNS3/Node/AbstractNode.py
62 #if QtCore.QT_VERSION >= 0x040600:
63 # flags = flags | self.ItemSendsGeometryChanges
6.4、设置配置终端
本文出自 “开源殿堂” 博客,请务必保留此出处http://kaiyuandiantang.blog.51cto.com/10699754/1693892
1、实验环境
[root@CentOS1 ~]# head -1 /etc/issue
CentOS release 6.5 (Final)
[root@CentOS1 ~]# uname -r
2.6.32-431.el6.i686
2、准备工作
2.1、安装图形界面
yum -y groupinstall "Desktop"
yum -y groupinstall "X Window System"
yum -y groupinstall "Chinese Support"
startx
2.2、安装VNC
yum -y install tigervnc*
vncserver :1
3、安装依赖包
yum -y install PyQt4 sip python qt qt-x11
4、安装dynamips
[root@CentOS1 src]# ls
c3640-jk9o3s-mz.124-7a.bin dynamips-0.2.8-RC3-community.tar.gz GNS3-0.8.3.1-src.tar.gz
[root@CentOS1 src]# tar zxvf dynamips-0.2.8-RC3-community.tar.gz
[root@CentOS1 src]# cd dynamips-0.2.8-RC3-community
[root@CentOS1 dynamips-0.2.8-RC3-community]# make
make -C stable
make[1]: Entering directory `/usr/local/src/dynamips-0.2.8-RC3-community/stable'
Linking rom2c
make[1]: cc: Command not found
make[1]: *** [rom2c] Error 127
make[1]: Leaving directory `/usr/local/src/dynamips-0.2.8-RC3-community/stable'
make: *** [dynamips.stable] Error 2
[root@CentOS1 dynamips-0.2.8-RC3-community]# yum -y install gcc
[root@CentOS1 dynamips-0.2.8-RC3-community]# make
make -C stable
make[1]: Entering directory `/usr/local/src/dynamips-0.2.8-RC3-community/stable'
Linking rom2c
cc: /usr/lib/libelf.a: No such file or directory
../common/rom2c.c:16:20: error: libelf.h: No such file or directory
../common/rom2c.c: In function ‘main’:
../common/rom2c.c:25: error: ‘Elf32_Ehdr’ undeclared (first use in this function)
../common/rom2c.c:25: error: (Each undeclared identifier is reported only once
../common/rom2c.c:25: error: for each function it appears in.)
../common/rom2c.c:25: error: ‘ehdr’ undeclared (first use in this function)
../common/rom2c.c:26: error: ‘Elf32_Phdr’ undeclared (first use in this function)
../common/rom2c.c:26: error: ‘phdr’ undeclared (first use in this function)
../common/rom2c.c:27: error: ‘Elf’ undeclared (first use in this function)
../common/rom2c.c:27: error: ‘img_elf’ undeclared (first use in this function)
../common/rom2c.c:42: warning: implicit declaration of function ‘elf_version’
../common/rom2c.c:42: error: ‘EV_CURRENT’ undeclared (first use in this function)
../common/rom2c.c:42: error: ‘EV_NONE’ undeclared (first use in this function)
../common/rom2c.c:47: warning: implicit declaration of function ‘elf_begin’
../common/rom2c.c:47: error: ‘ELF_C_READ’ undeclared (first use in this function)
../common/rom2c.c:49: warning: implicit declaration of function ‘elf_errmsg’
../common/rom2c.c:49: warning: implicit declaration of function ‘elf_errno’
../common/rom2c.c:49: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
../common/rom2c.c:53: warning: implicit declaration of function ‘elf32_getphdr’
../common/rom2c.c:55: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
../common/rom2c.c:64: warning: implicit declaration of function ‘elf32_getehdr’
make[1]: *** [rom2c] Error 1
make[1]: Leaving directory `/usr/local/src/dynamips-0.2.8-RC3-community/stable'
make: *** [dynamips.stable] Error 2
[root@CentOS1 dynamips-0.2.8-RC3-community]# yum -y install elfutils*
[root@CentOS1 dynamips-0.2.8-RC3-community]# make
make -C stable
make[1]: Entering directory `/usr/local/src/dynamips-0.2.8-RC3-community/stable'
Linking rom2c
/usr/bin/ld: cannot find -luuid
collect2: ld returned 1 exit status
make[1]: *** [rom2c] Error 1
make[1]: Leaving directory `/usr/local/src/dynamips-0.2.8-RC3-community/stable'
make: *** [dynamips.stable] Error 2
[root@CentOS1 dynamips-0.2.8-RC3-community]# yum -y install libuuid*
[root@CentOS1 dynamips-0.2.8-RC3-community]# make
make -C stable
make[1]: Entering directory `/usr/local/src/dynamips-0.2.8-RC3-community/stable'
Linking rom2c
/usr/bin/ld: cannot find -lpcap
collect2: ld returned 1 exit status
make[1]: *** [rom2c] Error 1
make[1]: Leaving directory `/usr/local/src/dynamips-0.2.8-RC3-community/stable'
make: *** [dynamips.stable] Error 2
[root@CentOS1 dynamips-0.2.8-RC3-community]# yum -y install libpcap*
[root@CentOS1 dynamips-0.2.8-RC3-community]# make && make install
(若为64位系统,先执行export DYNAMIPS_LIB=lib64和export DYNAMIPS_ARCH=amd64在make&&make install )
5、安装GNS3
[root@CentOS1 src]# tar zxvf GNS3-0.8.3.1-src.tar.gz
[root@CentOS1 src]# cd GNS3-0.8.3.1-src
[root@CentOS1 GNS3-0.8.3.1-src]# python setup.py install
6、启动GNS3
6.1、添加IOS镜像
6.2、测试dynamips
6.3、添加设备
注释掉下面两行,重启GNS3即可
[root@CentOS1 GNS3-0.8.3.1-src]# vim /usr/lib/python2.6/site-packages/GNS3/Node/AbstractNode.py
62 #if QtCore.QT_VERSION >= 0x040600:
63 # flags = flags | self.ItemSendsGeometryChanges
6.4、设置配置终端
本文出自 “开源殿堂” 博客,请务必保留此出处http://kaiyuandiantang.blog.51cto.com/10699754/1693892
相关文章推荐
- 29个你必须知道的Linux命令
- 从何处开始阅读linux kernel源代码
- Centos设置静态IP
- 最新centos7安装gitlab,最简单的安装,只需要4个步骤
- Linux终端中获取本机外网 IP 的方法
- CentOS通过日志反查入侵
- Linux 伙伴地址
- CentOS 5.4下使用yum安装Xen
- 每个Linux用户都应该知道的命令行技巧
- linux命令--dig
- linux下安装subversion报错:/usr/local/zlib//lib/libz.a(compress.o): relocation R_X86_64_32 against `.rodat
- 【Linux】基于Bind_DLZ和MySQL数据的DNS搭建
- linux命令--nslookup
- Linux常用命令大全
- linux下检测每个进程占用swap大小
- 驱动学习,入门基础--Hello World
- linux下防火墙iptables用法规则详解
- htop监控linux系统
- 代码在windows下运行只有12s,但是在linux下需要50s时,这样优化就可以解决
- linux下用fdisk命令制作U盘启动盘