CentOS6.5 install GNS3

Source: Internet
Author: User

CentOS6.5 install GNS3

1. experiment environment

[Root @ CentOS1 ~] # Head-1/etc/issue

CentOS release 6.5 (Final)

[Root @ CentOS1 ~] # Uname-r

2.6.32-431. el6.i686

2. Preparations

2.1 installation graphical interface

Yum-y groupinstall "Desktop"

Yum-y groupinstall "X Window System"

Yum-y groupinstall "Chinese Support"

Startx

2.2 install VNC

Yum-y install tigervnc *

Vncserver: 1

3. Install the dependency package

Yum-y install PyQt4 sip python qt qt-x11

4. Install 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

(If it is a 64-bit system, execute export DYNAMIPS_LIB = lib64 and export DYNAMIPS_ARCH = amd64 in make & make install)

5. Install 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. Start GNS3

6.1 add an IOS image

6.2. Test dynamips


6.3 Add a device

Comment out the following two lines and restart 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 configure the terminal

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.