You are not logged in.

#1 2012-07-07 11:33:36

theClassicMan27
Member
From: /home/ty
Registered: 2012-06-26
Posts: 14
Website

[SOLVED] Error while loading shared libraries: libSM.so.6

Hi all,
I've got this error when first run cisco packettracer:

/opt/pt/bin/PacketTracer5: error while loading shared libraries: libSM.so.6: cannot open shared object file: No such file or directory

I'm running arch x86_64, how can i fix this, plz help, thanks!

Last edited by theClassicMan27 (2012-07-07 16:31:42)

Offline

#2 2012-07-07 11:50:12

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: [SOLVED] Error while loading shared libraries: libSM.so.6

Does /usr/lib/libSM.so.6 exist on your system (according to the error supposedly not)? If not, install the "libsm" package.


Burninate!

Offline

#3 2012-07-07 12:26:00

theClassicMan27
Member
From: /home/ty
Registered: 2012-06-26
Posts: 14
Website

Re: [SOLVED] Error while loading shared libraries: libSM.so.6

Thanks for your reply Gcool,

Unluckily, there's libSM.so.6 already exist.

[ty@ty-pc ~]$ ls -al /usr/lib/libSM.so.6
lrwxrwxrwx 1 root root 14 Mar  3 20:42 /usr/lib/libSM.so.6 -> libSM.so.6.0.1
[ty@ty-pc ~]$

Last edited by theClassicMan27 (2012-07-07 12:27:08)

Offline

#4 2012-07-07 13:34:07

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: [SOLVED] Error while loading shared libraries: libSM.so.6

Would it be possible to post the output of the following command?

# ldd /opt/pt/bin/PacketTracer5

Burninate!

Offline

#5 2012-07-07 13:41:34

theClassicMan27
Member
From: /home/ty
Registered: 2012-06-26
Posts: 14
Website

Re: [SOLVED] Error while loading shared libraries: libSM.so.6

Yeah certainly,

[ty@ty-pc ~]$ ldd /opt/pt/bin/PacketTracer5
	linux-gate.so.1 (0xf77a0000)
	libQtWebKit.so.4 => not found
	libQtScript.so.4 => not found
	libQt3Support.so.4 => not found
	libQtSql.so.4 => not found
	libQtXml.so.4 => not found
	libQtGui.so.4 => not found
	libpng12.so.0 => /usr/lib32/libpng12.so.0 (0xf7750000)
	libSM.so.6 => not found
	libICE.so.6 => not found
	libXi.so.6 => not found
	libXrender.so.1 => /usr/lib32/libXrender.so.1 (0xf7745000)
	libXrandr.so.2 => not found
	libfreetype.so.6 => not found
	libfontconfig.so.1 => not found
	libXext.so.6 => /usr/lib32/libXext.so.6 (0xf7732000)
	libX11.so.6 => /usr/lib32/libX11.so.6 (0xf75fb000)
	libQtNetwork.so.4 => not found
	libQtCore.so.4 => not found
	libz.so.1 => /usr/lib32/libz.so.1 (0xf75e4000)
	libgthread-2.0.so.0 => not found
	librt.so.1 => /usr/lib32/librt.so.1 (0xf75da000)
	libglib-2.0.so.0 => not found
	libpthread.so.0 => /usr/lib32/libpthread.so.0 (0xf75bf000)
	libdl.so.2 => /usr/lib32/libdl.so.2 (0xf75ba000)
	libstdc++.so.6 => /usr/lib32/libstdc++.so.6 (0xf74d1000)
	libm.so.6 => /usr/lib32/libm.so.6 (0xf748a000)
	libgcc_s.so.1 => /usr/lib32/libgcc_s.so.1 (0xf7470000)
	libc.so.6 => /usr/lib32/libc.so.6 (0xf72ca000)
	libxcb.so.1 => /usr/lib32/libxcb.so.1 (0xf72a8000)
	/lib/ld-linux.so.2 (0xf77a1000)
	libXau.so.6 => /usr/lib32/libXau.so.6 (0xf72a3000)
	libXdmcp.so.6 => /usr/lib32/libXdmcp.so.6 (0xf729c000)
[ty@ty-pc ~]$ 

Is the "not found" libs cause the problem?

Last edited by theClassicMan27 (2012-07-07 13:43:58)

Offline

#6 2012-07-07 13:56:40

pyhax
Member
Registered: 2012-07-07
Posts: 3

Re: [SOLVED] Error while loading shared libraries: libSM.so.6

You could try the following command:

LD_LIBRARY_PATH=/usr/lib /opt/pt/bin/PacketTracer5

I don't know if it works.

Offline

#7 2012-07-07 14:00:01

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: [SOLVED] Error while loading shared libraries: libSM.so.6

I'm not familiar with packettracer outside of on actual cisco devices; but by the looks of it, it needs the 32-bit libraries to be installed.

So you'll most likely have to install the missing libraries (lib32-libsm,...). They're available in the [multilib] repo.

PS: but first try pyhax' suggestion just to be sure.


Burninate!

Offline

#8 2012-07-07 14:01:46

theClassicMan27
Member
From: /home/ty
Registered: 2012-06-26
Posts: 14
Website

Re: [SOLVED] Error while loading shared libraries: libSM.so.6

pyhax wrote:

You could try the following command:

LD_LIBRARY_PATH=/usr/lib /opt/pt/bin/PacketTracer5

I don't know if it works.

Yes, and this is the output:

[ty@ty-pc ~]$ LD_LIBRARY_PATH=/usr/lib /opt/pt/bin/PacketTracer5
/opt/pt/bin/PacketTracer5: error while loading shared libraries: libQtWebKit.so.4: wrong ELF class: ELFCLASS64 sad

Last edited by theClassicMan27 (2012-07-07 14:02:02)

Offline

#9 2012-07-07 14:47:18

theClassicMan27
Member
From: /home/ty
Registered: 2012-06-26
Posts: 14
Website

Re: [SOLVED] Error while loading shared libraries: libSM.so.6

As Gcool said, i'd installed these package:

# pacman -S lib32-libpng lib32-libsm lib32-libxi lib32-libxrandr lib32-freetype2 lib32-fontconfig lib32-glib2 lib32-libstdc++5 extra/qtwebkit multilib/lib32-qt

Then check (optional):

$ ldd /opt/pt/bin/PacketTracer5

And problem solved!
Thanks you all!

Offline

#10 2012-07-07 16:08:56

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: [SOLVED] Error while loading shared libraries: libSM.so.6

Good to hear it's up and running now.

Don't forget to mark your thread as [SOLVED].


Burninate!

Offline

#11 2012-07-07 16:32:42

theClassicMan27
Member
From: /home/ty
Registered: 2012-06-26
Posts: 14
Website

Re: [SOLVED] Error while loading shared libraries: libSM.so.6

Gcool wrote:

Good to hear it's up and running now.

Don't forget to mark your thread as [SOLVED].

Thanks Gcool!

Offline

#12 2012-10-01 17:19:48

alexneurotic
Member
Registered: 2012-10-01
Posts: 1

Re: [SOLVED] Error while loading shared libraries: libSM.so.6

Thanks Works great!!!!

Offline

Board footer

Powered by FluxBB