广告
返回顶部
首页 > 资讯 > 后端开发 > Python >CentOS6.5 安装GNS3
  • 683
分享到

CentOS6.5 安装GNS3

2023-01-31 07:01:12 683人浏览 泡泡鱼

Python 官方文档:入门教程 => 点击学习

摘要

实验所需软件下载地址:http://down.51cto.com/data/2092966 1、实验环境[root@Centos1 ~]# head -1 /etc/issueCentOS release 6.5 (Final)[root@

实验所需软件下载地址: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镜像

wKiom1XylEHBKKAtAAQBQnlrp8s820.jpg

wKioL1XylnGTB2qCAASFKKb60c4907.jpg


6.2、测试dynamips

wKioL1XylpLQK_4rAAP7_c7yvU0348.jpg

wKiom1XylGTwHNHyAAR8CHdrcKw752.jpg



6.3、添加设备

wKioL1XylrKi74aOAARl_ANQ01Y591.jpg

注释掉下面两行,重启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、设置配置终端

wKiom1XyliSg6Rd8AAQUAEt_E-8880.jpg

wKioL1XymFTjjsv7AATekwctV4Y648.jpg



--结束END--

本文标题: CentOS6.5 安装GNS3

本文链接: https://www.lsjlt.com/news/191216.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

本篇文章演示代码以及资料文档资料下载

下载Word文档到电脑,方便收藏和打印~

下载Word文档
猜你喜欢
  • CentOS6.5 安装GNS3
    实验所需软件下载地址:http://down.51cto.com/data/2092966 1、实验环境[root@CentOS1 ~]# head -1 /etc/issueCentOS release 6.5 (Final)[root@...
    99+
    2023-01-31
  • ubuntu安装 gns3
    GNS3模拟器应用视频教程-如何在Ubuntu中安装GNS3模拟器2/1 在线观看:     http://itboba.com/v/itbb0463/ GNS3模拟器应用视频教程-如何在Ubuntu中安装GNS3模拟器...
    99+
    2023-01-31
    ubuntu
  • CentOS6.5 安装 MongoDB
    下载MongoDB http://www.mongodb.org/downloads mongodb-linux-x86_64-3.6.3.tgz  #目前最新版是4.0.0   建议关闭selinux [root@mycento...
    99+
    2018-08-28
    CentOS6.5 安装 MongoDB
  • Centos6.5安装MySql
    安装MySql方法有多种方式,如下图:序号MySql安装方式特点说明1yum/rpm包安装特点是简单、速度快,但是没法定制安装,入门新手常用这种方式2二进制安装解压软件,简单配置后就可以使用,不用安装,速度...
    99+
    2022-10-18
  • Centos6.5 安装zabbix3
    1.安装PHPZabbix 3.0对PHP的要求最低为5.4,而CentOS6默认为5.3.3,完全不满足要求,故需要利用第三方源,将PHP升级到5.4以上,注意,不支持PHP7rpm -ivh&...
    99+
    2022-10-18
  • CentOS6.5 安装Python3.
    1、CentOS6.5 安装Python 的依赖包yum groupinstall "Development tools"yum install  gcc zlib-devel bzip2-devel openssl-devel ncurs...
    99+
    2023-01-31
  • CentOS6.5安装python2.7
    以前一直用ubantu下的python,ubantu比较卡。自己倾向于使用centos,但默认的python版本太低,所以重新装了一个python和ipythoncentos6.5安装python2.7.9第一步:安装devtoolset[...
    99+
    2023-01-31
  • gns3安装问题
    安装gns3(版本GNS3-0.6.1-win32-all-in-one)折腾了我很久,重装不止十次(包括不同版本),找了安装视频教程和pdf格式的安装说明手册来看,网上也找了遍,碰到的几个同样的原因,但也没有解决的方法,于是去逛了gns3...
    99+
    2023-01-31
  • Centos6.5 安装 Mysql-5.6.41
    1、下载mysqlmysql官网地址:https://dev.mysql.com/downloads/mysql/5.6.html#downloads我选择的版本是:MySQL Community Serv...
    99+
    2022-10-18
  • CentOS6.5下安装Mongodb3.2.4
    1、下载MongoDB(64位)https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-rhel62-3.2.4.tgz2、安装MongoDB(安装到/u...
    99+
    2022-10-18
  • Centos6.5安装oracle 11G
    1.安装环境:linux服务器:centos6.5       oracle版本:11g R22.系统要求:系统要求说明内存必须高于1G的物理内存交换空间一般为内存的2倍,例如...
    99+
    2022-10-18
  • centos6.5下安装oracle11g
    安装环境:     操作系统:     数据库系统:  #du -sh database/   ...
    99+
    2022-10-18
  • CentOS6.5下安装Python3
    1.安装下列所需的依赖包: gcc zlib zlib-devel readline-devel # yum install zlib-devel # yum install readline-devel 注:readline-devel...
    99+
    2023-01-31
  • centos6.5下安装OpenCV+P
    Python调用opencv的原理是:opencv编译出共享库文件,python把这个共享库文件作为一个模块加载并使用。通俗点就是,编译opencv的时候开启python接口选项,编译好了会产生cv2.so(linux下)或者cv2.pyd...
    99+
    2023-01-31
    OpenCV
  • centos6.5 源码安装zabbix3.0.8
    1、安装PHP及扩展包rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm yum -y install&nb...
    99+
    2022-10-18
  • centos6.5如何安装Oracle11g
    这篇文章给大家分享的是有关centos6.5如何安装Oracle11g的内容。小编觉得挺实用的,因此分享给大家做个参考,一起跟随小编过来看看吧。在线gen更新各种依赖包yum -y install make...
    99+
    2022-10-18
  • centos6.5如何安装jira
    这篇文章主要为大家展示了“centos6.5如何安装jira”,内容简而易懂,条理清晰,希望能够帮助大家解决疑惑,下面让小编带领大家一起研究并学习一下“centos6.5如何安装jira”这篇文章吧。mys...
    99+
    2022-10-19
  • CentOS6.5升级安装Python
    目前服务器的系统是CENTOS6.5版本镜像,已有软件是在Python2.7.5默认环境中运行,但是由于有一个新的工具脚本需要在Python3.x版本中运行,这里需要将当前服务器中的Python进行升级,但是也为了确保已有的2.x版本不变...
    99+
    2023-01-31
    Python
  • CentOS6.5怎么安装jdk1.8
    本篇内容介绍了“CentOS6.5怎么安装jdk1.8”的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习一下如何处理这些情况吧!希望大家仔细阅读,能够学有所成!源码包准备:首先从官网上下载jdk-8u...
    99+
    2023-06-05
  • centos6.5如何安装git
    这篇文章主要介绍了centos6.5如何安装git的相关知识,内容详细易懂,操作简单快捷,具有一定借鉴价值,相信大家阅读完这篇centos6.5如何安装git文章都会有所收获,下面我们一起来看看吧。步骤 1:检查依赖项使用yum包管理器可以...
    99+
    2023-07-05
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作