How to Install Packet Tracer 7.1 in Linux (and resolve any dependency issues!)
One of the most common tool for networks engineers is the well known Packet tracer from Cisco Networks. You should not have any issues with it being installed under a Windows based workstation but what about Linux?? Well.. here comes the pain!
Unfortunately Packet tracer needs a lot of dependencies and most of the time the guides exist on the internet are not useful at all..
Some of them are suggesting to create scripts to export the LD library, some of them even suggest edits to packet tracer libraries itself etc. But the solution is really very easy.
Following the guide bellow, you will be able to install packet tracer without having any issues..but even if you have any you can drop an mail to me and I will follow up to help you out!
First of all you will need to login to netacad with your username and password and download the latest version of packet tracer. Cisco changed their mind and decided to offer packet tracer for free and for everyone as long as you are a member in netacad.
Extract the compressed file to a folder and open a terminal to it.
Run the install.sh with sudo rights and follow the instructions to the installation.
Accept the EULA terms and follow the instructions to complete the installation. The default path for the installation will be /opt/pt.
And this is it. So simple. The installation script creates a soft-link so you can run Packet Tracer by typing “packettracer” in the terminal.
Aaand… you come to the point that you see this…
And waiting, waiting, waiting and nothing happens… Let’s go further to investigate of why. There are two ways to perform this. One way is to use the debugging tool (a bit difficult for newbies). The other way and the one i’m going to show you here is the easy way.
Navigate to /opt/pt/bin and run ./PacketTracer7 .
This way you will see why the bin file is not running. For our example the issue was the following :
Libraries missing and Packet tracer is unable to start! Searching the internet you will find an infinite ways to resolve this..but as I said before.. some of them are way too complicated like redirecting the lib path to another path in your OS and stuff like create scripts to export variables that they will make you mess with your system. If you’re noob..then it’s not good.
So let’s resolve this the simple way. What the executable complains for? Not finding the libraries. Ok..then let’s install them!
You can install a library by simply typing “sudo apt-get install libraryfile”. Aha! Ok Christos, that was easy let me try!
– Ugh..so what is happening? Why is it failing? You said we have to install the library file…
Indeed..this is what i said.. but you can’t just apt install a single library file as these files are coming in to developer packages. So what you have to do is to find out what dev package includes the library file you’re looking for and install it. For example, we are searching the libQt5Multimedia.so.5. The dev file for this is the qtmultimedia5-dev package. Let’s give it a try.
As you can see it recognizes the package, downloads it and tries to install it. In my case this was already installed but if it weren’t then it should normally move on to the installation.
We perform this for every library file is missing and Packet Tracer complains for…
Let’s try and run packet tracer now.
Tadaaaa! It works! As you can see no edits, no modifications nothing needed but a simple dev package installation that includes the library file we are searching for. In my case it asked for 2 files missing so I had to install 2 different packages. Bellow you can find a list with all the qt dev package files usually Packet Tracer asks for.
Qt module dev package lib package ------------------------------------------------------------------------- bluetooth qtconnectivity5-dev libqt5bluetooth5 concurrent qtbase5-dev libqt5concurrent5 connectivity qtmobility-dev libqtconnectivity1 contacts qtmobility-dev libqt5contacts5 core qtbase5-dev libqt5core5a dbus qtbase5-dev libqt5dbus5 designer qttools5-dev libqt5designer5 designercomponents qttools5-dev libqt5designercomponents5 feedback qtmobility-dev libqt5feedback5 gallery qtmobility-dev libqtgallery1 gui qtbase5-dev libqt5gui5 help qttools5-dev libqt5help5 location qtmobility-dev libqt5location5 multimedia qtmultimedia5-dev libqt5multimedia5 multimediakit qtmobility-dev libqtmultimediakit1 network qtbase5-dev libqt5network5 nfc qtconnectivity5-dev libqt5nfc5 opengl libqt5opengl5-dev libqt5opengl5 organizer qtmobility-dev libqt5organizer5 positioning qtpositioning5-dev libqt5positioning5 printsupport qtbase5-dev libqt5printsupport5 publishsubscribe qtmobility-dev libqt5publishsubscribe5 qml qtdeclarative5-dev libqt5qml5 quick qtdeclarative5-dev libqt5quick5 quickparticles qtdeclarative5-dev libqt5quickparticles5 quicktest qtdeclarative5-dev libqt5quicktest5 quickwidgets qtdeclarative5-dev libqt5quickwidgets5 script qtscript5-dev libqt5script5 scripttools qtscript5-dev libqt5scripttools5 sensors qtmobility-dev, libqt5sensors5-dev libqt5sensors5 serialport libqt5serialport5-dev libqt5serialport5 serviceframework qtmobility-dev libqt5serviceframework5 sql qtbase5-dev libqt5sql5 svg libqt5svg5-dev libqt5svg5 systeminfo qtmobility-dev libqt5systeminfo5 test qtbase5-dev libqt5test5 uitools qttools5-dev ? versit qtmobility-dev libqtversit1 webchannel ? ? webkit libqt5webkit5-dev libqt5webkit5 websockets libqt5websockets5-dev libqt5websockets5 widgets qtbase5-dev libqt5widgets5 x11extras libqt5x11extras5-dev libqt5x11extras5 xml qtbase5-dev libqt5xml5 xmlpatterns libqt5xmlpatterns5-dev libqt5xmlpatterns5
I hope this guide will help you resolve any possible issues you will experience with the Packet Tracer installation. If you still need help do not hesitate to contact me in my mail address christos [at] christospanoudis.com
Thankz for visiting!