LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-25-2017, 11:24 AM   #16
THE PHANTOM
Member
 
Registered: Mar 2016
Posts: 94

Original Poster
Rep: Reputation: Disabled

That is output:

Code:
/opt/pt/bin# PTDIR=/opt/pt LD_LIBRARY_PATH=/opt/pt/lib ./PacketTracer7
Fatal: Cannot mix incompatible Qt library (version 0x40806) with this library (version 0x40802)
Aborted
 
Old 01-26-2017, 12:35 AM   #17
THE PHANTOM
Member
 
Registered: Mar 2016
Posts: 94

Original Poster
Rep: Reputation: Disabled
Hi, what is problem why aborted?
 
Old 01-26-2017, 03:05 AM   #18
gradinaruvasile
Member
 
Registered: Apr 2010
Location: Cluj, Romania
Distribution: Debian Testing
Posts: 731

Rep: Reputation: 157Reputation: 157
QT toolkit libraries that are included in Packet tracer mix with system libraries that are different.
Try with (no library path):

Code:
PTDIR=/opt/pt ./PacketTracer7
If doesn't work post the output of:

Code:
cd /opt/pt
LD_LIBRARY_PATH=/opt/pt/lib ldd bin/PacketTracer7

Last edited by gradinaruvasile; 01-26-2017 at 03:14 AM.
 
Old 01-27-2017, 01:52 PM   #19
THE PHANTOM
Member
 
Registered: Mar 2016
Posts: 94

Original Poster
Rep: Reputation: Disabled
I did it sir but same.

that is output:

Code:
elapir@ROOT:/opt/pt$ LD_LIBRARY_PATH=/opt/pt/lib ldd bin/PacketTracer7
        linux-vdso.so.1 (0x00007ffd0c3c0000)
        libcrypto.so.1.0.0 => /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0 (0x00007fb89a060000)
        libQtWebKit.so.4 => /opt/pt/lib/libQtWebKit.so.4 (0x00007fb898540000)
        libQtScriptTools.so.4 => /opt/pt/lib/libQtScriptTools.so.4 (0x00007fb898280000)
        libQtScript.so.4 => /opt/pt/lib/libQtScript.so.4 (0x00007fb897dd8000)
        libQtSvg.so.4 => /opt/pt/lib/libQtSvg.so.4 (0x00007fb897b80000)
        libQtXml.so.4 => /opt/pt/lib/libQtXml.so.4 (0x00007fb897938000)
        libQtGui.so.4 => /opt/pt/lib/libQtGui.so.4 (0x00007fb896c58000)
        libQtNetwork.so.4 => /opt/pt/lib/libQtNetwork.so.4 (0x00007fb896908000)
        libQtCore.so.4 => /opt/pt/lib/libQtCore.so.4 (0x00007fb896418000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fb8961f8000)
        libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fb895ee8000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fb895be0000)
        libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fb8959c8000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fb895618000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fb895410000)
        libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007fb8950c8000)
        libXrender.so.1 => /usr/lib/x86_64-linux-gnu/libXrender.so.1 (0x00007fb894eb8000)
        libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fb894c98000)
        libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007fb894988000)
        libfreetype.so.6 => /usr/lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007fb8946d8000)
        libfontconfig.so.1 => /usr/lib/x86_64-linux-gnu/libfontconfig.so.1 (0x00007fb894498000)
        libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6 (0x00007fb894280000)
        librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fb894078000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fb89a460000)
        libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007fb893e50000)
        libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007fb893be0000)
        libpng12.so.0 => /lib/x86_64-linux-gnu/libpng12.so.0 (0x00007fb8939b8000)
        libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007fb893788000)
        libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007fb893580000)
        libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007fb893378000)
 
Old 01-27-2017, 08:53 PM   #20
gradinaruvasile
Member
 
Registered: Apr 2010
Location: Cluj, Romania
Distribution: Debian Testing
Posts: 731

Rep: Reputation: 157Reputation: 157
Well it does seem to use only it's built in qt libraries.
Anyway try this (to use the libqt libraries of the system instead of the ones shipped with PT, except libQtWebKit.so.4 which is 4.9 and Jessie has 4.10):

Code:
sudo apt-get install libqt4-network libqt4-qt3support libqt4-script libqt4-scripttools libqt4-sql libqt4-svg libqt4-xml libqtcore4 libqtgui4 libqtwebkit4
cd /opt/pt/bin/
LD_PRELOAD=/opt/pt/lib/libQtWebKit.so.4 PTDIR=/opt/pt ./PacketTracer7
The apt-get line is there to make sure all required system libs are installed (most if not all probably already are).

I tried Packet tracer on my laptop that runs Jessie and it just worked so i am not sure where the issue is (it also works on my home desktop and work laptop running Testing). But i also saw this issue briefly on a Ubuntu 16.04 system previously.

PS The system package list is obtained by this command (lists every libqt lib, truncates the output only to file name then searches every lib for package name, sorts the list then lists only unique items):
for f in `ls /opt/pt/lib/libQt*.4 -1 |xargs -n 1 basename`; do dpkg --search $f; done | cut -d ":" -f 1|sort|uniq
This command is only here for future reference if anyone needs it, no nee for you tu run it.
 
Old 01-28-2017, 05:04 AM   #21
THE PHANTOM
Member
 
Registered: Mar 2016
Posts: 94

Original Poster
Rep: Reputation: Disabled
You great sir, u save me. You solved my problem, it worked after i did that codes which u provided me above. Thank you sir. Should keep open terminal too?

Thank you!
 
Old 01-28-2017, 11:32 AM   #22
gradinaruvasile
Member
 
Registered: Apr 2010
Location: Cluj, Romania
Distribution: Debian Testing
Posts: 731

Rep: Reputation: 157Reputation: 157
To make this permanent, edit the packettracer script to look like this:
Code:
sudo nano /usr/local/bin/packettracer
And put this in it (important lines in red):
Code:
#!/bin/bash

echo Starting Packet Tracer 7.0

PTDIR=/opt/pt
#export LD_LIBRARY_PATH=$PTDIR/lib
pushd $PTDIR/bin > /dev/null

LD_PRELOAD=/opt/pt/lib/libQtWebKit.so.4 PTDIR=/opt/pt ./PacketTracer7

popd > /dev/null
PS to make sure you can use this for exams you need to install the icedtea-netx package and have
Code:
PTDIR=/opt/pt
in the /etc/environment file (note that you have to restart to apply changes from that file).

Last edited by gradinaruvasile; 01-28-2017 at 11:37 AM.
 
2 members found this post helpful.
Old 01-29-2017, 10:00 AM   #23
THE PHANTOM
Member
 
Registered: Mar 2016
Posts: 94

Original Poster
Rep: Reputation: Disabled
Thanks sir i did as u told me. I appreciate that.
 
Old 02-14-2017, 11:40 AM   #24
danishparvez
LQ Newbie
 
Registered: Feb 2017
Posts: 9

Rep: Reputation: Disabled
Great work! It worked for me on Linux Mint. But is it that if I want to run it I have to use the terminal always or is there a way maybe to create a shortcut or a menu entry. Also, I noticed that while I run it from terminal, its execution stays as long as terminal is active,once closed Packet tracer also shuts down. Can you provide more info about it?
 
Old 02-15-2017, 02:46 AM   #25
gradinaruvasile
Member
 
Registered: Apr 2010
Location: Cluj, Romania
Distribution: Debian Testing
Posts: 731

Rep: Reputation: 157Reputation: 157
Quote:
Originally Posted by danishparvez View Post
Great work! It worked for me on Linux Mint. But is it that if I want to run it I have to use the terminal always or is there a way maybe to create a shortcut or a menu entry. Also, I noticed that while I run it from terminal, its execution stays as long as terminal is active,once closed Packet tracer also shuts down. Can you provide more info about it?
1. Menu entries execute specified commands. You have to edit an existing or add a new menu entry for this with the tools provided by your desktop environment (usually there is some "Menu Editor" somewhere, or even manually if you know how. I don't go into details because some items in the .desktop files might differ from DE to DE.
2. applications launched from a terminal session become that session's child processes and they will terminate if that is closed. Some applications might have a "detach mode" but it is not common.
If you want it to run independently (besides running it in a "screen"), you should either:
- launch it directly from the DE by either a .desktop file (menu link)
- or paste the command into a "Run..." window provided by the DE. This might not run as in a terminal because the environment vars are not all there. Here you can create a shell script that contains everything needed and put it into a directory under your home directory (this is the current dir used in this case) and you can call it like "bin/myscript.sh" for "myscript.sh" in the "~/bin" directory.

Best is to combine the 2 above points by creating a launch script then create a menu link that launches it.
 
Old 02-17-2017, 12:23 PM   #26
Deixus
LQ Newbie
 
Registered: Feb 2017
Distribution: Debian
Posts: 7

Rep: Reputation: Disabled
Netacad assessment

Hi, gradinaruvasile hi have a problem with netacad assessment and packet tracer, this not work in my linux (debian 8.6) distribution, the enviroment is compound by jre and the last version of firefox, this is the error when try the test from netacad enviroment checker.

Quote:

Available Ports -- Unknown

Browser Name -- Undetermined

Large File Download Capability -- Unknown

JRE Version -- 1.7.0_111

Operating System Name -- Linux

Packet Tracer Deployment Directory -- Not found

ERROR -- Your current environment variables don't allow us to find a candidate Packet Tracer installation directory. You may identify the proper Packet Tracer installation directory by setting the value of one of these operating system environment variables: PTHOME,PT_HOME,PT10HOME,PT9HOME,PT8HOME,PT7HOME,PT6HOME,PT5HOME,PT_LAUNCH_DIR,PTDIR; or by adding Packet Tracer's "bin" subdirectory to your PATH environment variable.

Packet Tracer IPC Ports Available -- Unknown

Packet Tracer Version -- Unknown

The check has failed. Your computer requires additional configuration to run Cisco Packet Tracer-based assessments.
I hope you can help me with this problem, thank you.

PD: Sorry for my bad english.

Saludos!
 
Old 02-18-2017, 04:49 AM   #27
gradinaruvasile
Member
 
Registered: Apr 2010
Location: Cluj, Romania
Distribution: Debian Testing
Posts: 731

Rep: Reputation: 157Reputation: 157
Quote:
Your current environment variables don't allow us to find a candidate Packet Tracer installation directory.
You need the environment variable that points to the packet tracer installation directory. You have the list in your post.
To declare a variable system-wide put it into the /etc/environment file like this:
Code:
PTDIR=/opt/pt
Where the path in the PTDIR variable is the one where you have the Packet Tracer installed (in this example is installed into /opt/pt, your case may vary).
You need to restart after editng that file. Seriously.

Alternatively you can declare the variable locally - you can do something like
Code:
PTDIR="/opt/pt" javaws whatever.jnlp
But this way you will have to launch it from terminal every time with that specified so the environment file is better solution.
 
Old 02-18-2017, 07:16 AM   #28
Deixus
LQ Newbie
 
Registered: Feb 2017
Distribution: Debian
Posts: 7

Rep: Reputation: Disabled
Netacad assessment

Edit the file "/etc/enviroment" with nano, but when I reboot and try again with the netacad enviroment checker it throws the same error mentioned above, something else that I need to modify?

I had just declared the variable locally but it is not the best way since I have to run through the command line every time.

I would like something more automated, as it should normally be the (.jnlp) file.

Saludos!
 
Old 02-18-2017, 03:52 PM   #29
gradinaruvasile
Member
 
Registered: Apr 2010
Location: Cluj, Romania
Distribution: Debian Testing
Posts: 731

Rep: Reputation: 157Reputation: 157
Open a terminal and type:
Code:
cat /etc/environment
What is there?
 
Old 02-21-2017, 03:34 PM   #30
Deixus
LQ Newbie
 
Registered: Feb 2017
Distribution: Debian
Posts: 7

Rep: Reputation: Disabled
Hi, sorry for the late answer!

This is the output for the command line (cat /etc/environment)

Code:
estudiante@debian:~$ cat /etc/environment 
PTDIR=/opt/pt
Saludos!

Last edited by Deixus; 02-21-2017 at 03:37 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
installing packet tracer mehrd@d Linux - Desktop 1 02-02-2014 08:28 AM
CISCO Packet Tracer kujirasan Linux - Software 4 07-11-2013 09:44 PM
packet tracer tgz specialized Slackware 5 10-04-2011 02:24 PM
Cisco packet Tracer kujirasan Linux - Software 8 03-15-2011 07:57 AM
Packet Tracer in ubuntu 8.04 mick463 Linux - Newbie 0 09-06-2008 04:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration