CentOS6.5 安装GNS3

1、实验环境

[[email protected] ~]# head -1 /etc/issue

CentOS release 6.5 (Final)

[[email protected] ~]# 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

[[email protected] src]# ls

c3640-jk9o3s-mz.124-7a.bin  dynamips-0.2.8-RC3-community.tar.gz  GNS3-0.8.3.1-src.tar.gz

[[email protected] src]# tar zxvf dynamips-0.2.8-RC3-community.tar.gz

[[email protected] src]# cd dynamips-0.2.8-RC3-community

[[email protected] 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

[[email protected] dynamips-0.2.8-RC3-community]# yum -y install gcc

[[email protected] 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

[[email protected] dynamips-0.2.8-RC3-community]# yum -y install elfutils*

[[email protected] 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

[[email protected] dynamips-0.2.8-RC3-community]# yum -y install libuuid*

[[email protected] 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

[[email protected] dynamips-0.2.8-RC3-community]# yum -y install libpcap*

[[email protected] dynamips-0.2.8-RC3-community]# make && make install

(若为64位系统,先执行export DYNAMIPS_LIB=lib64和export DYNAMIPS_ARCH=amd64在make&&make install )

5、安装GNS3

[[email protected] src]# tar zxvf GNS3-0.8.3.1-src.tar.gz

[[email protected] src]# cd GNS3-0.8.3.1-src

[[email protected] GNS3-0.8.3.1-src]# python setup.py install

6、启动GNS3

6.1、添加IOS镜像

6.2、测试dynamips

6.3、添加设备

注释掉下面两行,重启GNS3即可

[[email protected] 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、设置配置终端

时间: 2024-08-09 22:00:13

CentOS6.5 安装GNS3的相关文章

如何在CentOS6上安装Python2.7和Python3.3

原文来自http://toomuchdata.com/2014/02/16/how-to-install-python-on-centos/,个人觉得对在linux安装新版本Python是很有参考意义,因而转载,原文是英文的,本人简单翻译下,大家看懂即可,有不妥的地方请留言. 如何在CentOS 6上同时安装Python 2.7和Python 3.3 本文将介绍如何在CentOS 6上安装Python 2.7和3.3.下面以Python 2.7.6和Python 3.3.5为例进行说明,但本人实

centos6.5安装docker

centos6.5 安装docker 防伪码:吃的苦中苦,方为人上人! 前言:在当今的主流社会中,docker和openstatick是一大主流方向,下面为大家讲解理论知识和实际操作现实中的docker! 理论知识: 相信大家都知道docker是什么?那在这里就不多说了! Docker 基于 Go 语言开发,代码托管在Github上,并遵循Apache 2.0 开源协议. docker的专业叫法是应用容器(Application Container). 为什么要使用docker? 1 .快速交付

CentOS6.5 安装+ Tengine + PHP + MySQL

centos6.5安装+Tengine+php+mysql

Centos6.4 安装fail2ban防暴力破解

Centos6.4 安装fail2ban防暴力破解 一. 安装 curl -O https://codeload.github.com/fail2ban/fail2ban/tar.gz/0.9.0 mv 0.9.0 0.9.0.tar.gz tar zxvf 0.9.0.tar.gz cd fail2ban-0.9.0/ python setup.py build python setup.py install 二.配置(防ssh暴力) vi /etc/fail2ban/jail.conf [s

CentOS-6.5安装配置JDK-7

安装说明 系统环境:centos-6.5 安装方式:rpm安装 软件:jdk-7-linux-x64.rpm 下载地址:http://www.oracle.com/technetwork/java/javase/downloads/java-se-jdk-7-download-432154.html 注:rpm,gz文件区别 初接解Linux的朋友一定对软件的安装特别头疼,同样都是for Linux,但RPM.tar.gz.DEB包还是有很大区别的,这种区别很有可能使你的安装过程进行不下去.那我

centos6.5安装和配置cobbler

Cobbler介绍 Cobbler 是一个系统启动服务(boot server),可以通过网络启动(PXE)的方式用来快速安装.重装物理服务器和虚拟机,支持安装不同的 Linux 发行版和 Windows.该工具使用python开发,小巧轻便(才15k行代码),使用简单的命令即可完成PXE网络安装环境的配置,同时还可以管理 DHCP,DNS,以及yum包镜像. Cobbler 使用命令行方式管理,也提供了基于 Web 的界面管理工具(cobbler-web),还提供了API接口,可以方便二次开发

CentOS6.4安装python2.7.3环境和Tornado

Centos6.4默认的python环境是2.6.6.我们可以自己安装Python 2.7.3. 但是值得注意的是,我们必须不能破坏系统的环境. 因为几个关键的实用应用程序依赖于Python2.6.6. 如果替换了系统的python环境就会发生很多难以预见的错误,导致要重装系统. 在没有破坏系统的python环境的情况下安装Python 2.7.3. 执行以下命令,请使 用root的身份登录或者使用sudo命令 一.安装Python 2.7.3 1. 安装开发工具 为了编辑Python,你必须要

CentOS6.5安装Cacti统计图乱码解决

这个就是rrdtool调用字体失败 安装字体即可 [[email protected] -]# yum -y install  cjkuni-ukai-fonts #安装字体 [[email protected] -]# fc-cache -f -v #刷新字体哦缓存 CentOS6.5安装Cacti统计图乱码解决,布布扣,bubuko.com

centos6.4安装lvs+keepalive

环境说明: [[email protected] html]# uname -a Linux db 2.6.32-358.el6.x86_64 #1 SMP Fri Feb 22 00:31:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux [[email protected] html]# cat /etc/redhat-release  CentOS release 6.4 (Final) lvs安装部署: 1.查看内核模块是否支持 lsmod | gre