INSTALLING PACKET TRACER7.2.1 ON CENTOS 7

INSTALLING PACKET TRACER7 ON CENTO 7

OPERATING SYSTEM : CENTOS 7
PREREQUISITE : INSTALL EPEL REPOSITORY 

Installation Video : YouTube Video Link

[root@PC-TEST ~]# yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm -y
(1) System Should be fully updated
[root@PC-TEST ~]#  yum update -y
(2) Install the Required Dependencies
[root@PC-TEST ~]#  yum install -y zlib-devel ncurses-devel gtk2 glibc glibc-devel libstdc++ libX11-devel libXrender libXrandr libusb libXtst nss qt5* qtwebkit* gcc gcc-c++ wget libpng12*
(3) After install, Check GCC versions and locations
[root@PC-TEST ~]#  gcc --version
//gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-36)
[root@PC-TEST ~]#  which gcc
/bin/gcc
(4) Install New Version of GCC Compiler
[root@PC-TEST ~]# yum install -y  svn texinfo-tex flex zip libgcc.i686 glibc-devel.i686
(5) Download The Required file from Google Drive, Open the URL in web browser

(6) Now Compile The New GCC, Be patient it will Take Time Depend on ur PC configuration 

[root@PC-TEST ~]#  tar xvf gcc_9_1_0_release.tar.bz2
[root@PC-TEST ~]#  cd gcc_9_1_0_release/
[root@PC-TEST gcc_9_1_0_release]# ./contrib/download_prerequisites
SAMPLE OUTPUT :
gmp-6.1.0.tar.bz2: OK
mpfr-3.1.4.tar.bz2: OK
mpc-1.0.3.tar.gz: OK
isl-0.18.tar.bz2: OK
All prerequisites downloaded successfully
[root@PC-TEST gcc_9_1_0_release]# cd ..
[root@PC-TEST ~]# mkdir gcc_release-build
[root@PC-TEST ~]# cd gcc_release-build/
[root@PC-TEST gcc_release-build]#nproc
Sample Output :
4  //no of cpu core
// put this value in next command after -j option
[root@PC-TEST gcc_release-build]# ../gcc_9_1_0_release/configure && make -j 4  && make install && echo "INSTALL FINISHED "
Sample Output









(7)Lets check installed versions and their locations

 [root@PC-TEST ]# hash -r

 
//(Makes your login "forget" about the previously seen locations of gcc and g++)
[root@PC-TEST ]# gcc --version
SAMPLE OUTPUT
gcc (GCC) 9.1.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
(8) We need to add new libraries to ld (the GNU linker).
[root@PC-TEST ~]# echo "/usr/local/lib64" > usrLocalLib64.conf
[root@PC-TEST ~]# mv usrLocalLib64.conf /etc/ld.so.conf.d/
[root@PC-TEST ~]# ldconfig
SAMPLE OUTPUT
ldconfig: /usr/local/lib64/libstdc++.so.6.0.26-gdb.py is not an ELF file - it has the wrong magic bytes at the start.
//
--- This may say a file or two "is not an ELF file - it has the wrong magic bytes at the start."
--- You may ignore this message. It is silent about the work it successfully completed.
(9) Lets Change our LIBCXX versions
[root@PC-TEST ~]# cd /usr/local/lib64
[root@PC-TEST lib64]# cp libstdc++.so.6.0.26 /usr/lib64/
[root@PC-TEST lib64]# cd /usr/lib64/
[root@PC-TEST lib64]# mv libstdc++.so.6 libstdc++.so.6_old
[root@PC-TEST lib64]# ln -sf libstdc++.so.6.0.26 libstdc++.so.6
[root@PC-TEST lib64]# strings /usr/lib64/libstdc++.so.6 | grep GLIBC
SAMPLE OUTPUT
GLIBCXX_3.4.18
GLIBCXX_3.4.19
GLIBCXX_3.4.20
GLIBCXX_3.4.21
GLIBCXX_3.4.22
GLIBC_2.3
GLIBC_2.2.5
GLIBC_2.3.2
GLIBCXX_FORCE_Yeni
GLIBCXX_DEBUG_MESSAGE_LENGTH
(10)Install Packet tracer 7.2.1
[root@PC-TEST lib64]# cd /root/
[root@PC-TEST ~]# mkdir pt7.2.1
[root@PC-TEST ~]# tar -xzvf pt7.2.1.tar.gz -C pt7.2.1
[root@PC-TEST ~]# cd pt7.2.1/
[root@PC-TEST pt7.2.1]# ./install
SAMPLE OUTPUT
Welcome to Cisco Packet Tracer 7.2.1 Installation
Read the following End User License Agreement "EULA" carefully. You must accept the terms of this EULA to install and use Cisco Packet Tracer.
Press the Enter key to read the EULA.
Accept the Eula and just press enter when ask for installation Directory ie /opt
(11) Copy the Required file
[root@PC-TEST pt7.2.1]# sudo cp /opt/pt/bin/libcrypto.so.1.0.0 /usr/lib64/
(12) Restart Your Machine
[root@PC-TEST pt7.2.1]# init 6
(13) Open the Terminal and Run The Command
[root@PC-TEST ~]#/opt/pt/bin/./PacketTracer7














(14) Login with your Cisco Credentials



(15) Packet Tracer is Ready










**********************************************************************
A big Thank to the creator of https://serverkurma.com for helping in
GCC compilation.                                                                                   
************************************************************************




For any Queries feel free to mail me at :

abhishek.verma7@gmail.com















2 comments:

  1. I have this error:-

    /opt/pt/bin/./PacketTracer7: /lib64/libcrypto.so.1.0.0: no version information available (required by /opt/pt/bin/./PacketTracer7)
    Segmentation fault (core dumped)

    ReplyDelete
  2. /opt/pt/bin/./PacketTracer7
    /opt/pt/bin/./PacketTracer7: error while loading shared libraries: libQt5WebKitWidgets.so.5: cannot open shared object file: No such file or directory

    ReplyDelete