English Error while loading shared libraries

12 replies
Goto Page
To the start Previous 1 Next To the start
Up
Hajt
User
Offline Off
Hello. I'm trying to run Counter-Strike 2D on Lubuntu 16.04 but I have a problem with libraries. I already installed libstdc++5 and libstdc++5:i386 but it didn't help me so maybe someone have an idea which packages I should install?

./CounterStrike2D: error while loading shared libraries: libXxf86vm.so.1: cannot open shared object file: No such file or directory

ldd output
Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
linux-gate.so.1 =>  (0xf77c7000)
libX11.so.6 => /usr/lib/i386-linux-gnu/libX11.so.6 (0xf7665000)
libXxf86vm.so.1 => not found
libGL.so.1 => not found
libGLU.so.1 => not found
libfreetype.so.6 => not found
libstdc++.so.6 => /usr/lib/i386-linux-gnu/libstdc++.so.6 (0xf74ed000)
libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xf7498000)
libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xf747a000)
libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0xf745d000)
libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xf72a7000)
libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xf72a2000)
libxcb.so.1 => /usr/lib/i386-linux-gnu/libxcb.so.1 (0xf727c000)
/lib/ld-linux.so.2 (0x56595000)
libXau.so.6 => /usr/lib/i386-linux-gnu/libXau.so.6 (0xf7277000)
libXdmcp.so.6 => /usr/lib/i386-linux-gnu/libXdmcp.so.6 (0xf7270000)
Yooo. We are playing mix matches 5on5 in evening hours on the server CS2D.TK | Mix/Match, you can join us, server password is match. Statistics, leaderboard can be found under the following link.
26.04.16 03:09:26 pm
Up
Fraizeraust
Moderator
Offline Off
Sounds like you must shall download and install those missing libraries from Synaptic package manager. Firstly, we have to know if those libs are truly missing or maybe they're just 32 bit which they're not usable on a 64 bit OS (unless you install the i386 architecture and few libs for that). Would be appreciated if you could tell us what type of architecture you're using.

Type these following commands below:
Code:
sudo apt-get install apt-file
apt-file update
apt-file search <FILENAME>

You might want to run these last two commands with sudo if the Terminal tells you to run at elevated privileges. Finally, install the required missing packages from Synaptic that apt-file tells you. Hope that helps.
26.04.16 03:59:14 pm
Up
Hajt
User
Offline Off
First of all thank you for an answer. I'm using 64-bit OS. I thought that if CS2D is 32-bit app then I have to use 32-bit libs and seems that I was wrong. I installed a few packages libglu1-mesa, libfreetype6 and the game finally works.

BTW I installed package libopenal-dev and OpenAL driver wasn't available in the game. Then I installed libopenal-dev:i386 and everything works well. I'm so confused.
Yooo. We are playing mix matches 5on5 in evening hours on the server CS2D.TK | Mix/Match, you can join us, server password is match. Statistics, leaderboard can be found under the following link.
27.04.16 05:39:37 am
Up
MikuAuahDark
User
Offline Off
I also have same problem in Ubuntu 14.04 64-bit. I already installed lib32z, libXxf86mv, and some C/C++ i386 runtime (libc.so:i386 and others) but it can't find libGL.so

Any pointers?
file cs2d LuaJIT for Dedicated Server (11) JIT POWER! | Know your Lua errors! | Draw stuff at Pixelize Art --xx-- server!
27.04.16 06:45:12 am
Up
Cirium
User
Offline Off
This might not be what you need, and I would assume you've already tried this, but i've always found this to solve some missing 32bit libraries problems on 64bit based debian/ubuntu machines.

Code:
1
apt-get install ia32-libs
27.04.16 10:55:40 am
Up
Marcell
Super User
Offline Off
@user MikuAuahDark: What error did you get exactly? Also, Do you want to run the game?

@user Hajt: You told now everythings works, so your problem actually solved?
27.04.16 02:00:09 pm
Up
Hajt
User
Offline Off
Yup problem is solved but I have FPS drops. It's super weird because when I'm using Wine to run Counter-Strike 2D in OpenGL mode then I didn't have any lags.
Yooo. We are playing mix matches 5on5 in evening hours on the server CS2D.TK | Mix/Match, you can join us, server password is match. Statistics, leaderboard can be found under the following link.
27.04.16 06:03:34 pm
Up
Fraizeraust
Moderator
Offline Off
@user Cirium: Hold on a minute... If I remember correctly, the multiarch technology has been implemented since 2012-13 on most Linux distributions which basically means you could install / use libraries or apps in 32-bit type architecture normally so you don't have to install ia32 libraries since it became a thing of the past.

@user Hajt: It's mostly dealt with the DE (Desktop Environment), Unity. That environment isn't really that friendly on most Graphics cards at the start as you have to do many tweaks to be compatible.

Instead to waste my time for this, I'd rather install Compiz setting manager and disable some options where they aren't really useful at all. Here's the link of it (Click me!). Hope that helps you somehow.
27.04.16 06:21:11 pm
Up
Marcell
Super User
Offline Off
@user Fraizeraust: I don't know anything about it, but you MUST install 32-bit libs in order to start server or play CS2D.

I may can fix your libGL.so problem btw. If you interested in it, shot a PM.
28.04.16 04:36:49 am
Up
MikuAuahDark
User
Offline Off
@user Cirium: IIRC ia32-libs is removed in Ubuntu and replaced with some packages, so that's not really solve the issue.

@user Marcell: Error while loading shared libraries. libGL.so: no such file or directory. That's roughly the error message (I'm currently under Windows). And yes, I want to run the game of course.

@user Fraizeraust: But looks like Ubuntu is an exception.
file cs2d LuaJIT for Dedicated Server (11) JIT POWER! | Know your Lua errors! | Draw stuff at Pixelize Art --xx-- server!
28.04.16 06:44:22 am
Up
Fraizeraust
Moderator
Offline Off
@user MikuAuahDark: If your OS doesn't handle 32-bit apps / libs type architectures, then you must add that arch in order to work. Here's how.

First of, you must apply this command written below:
Code:
dpkg --print-foreign-architectures

If that doesn't work what I've shown above (doesn't give any output), try with this command.
Code:
sudo dpkg --add-architecture i386

This will implement the 32-bit type arch in your OS. And finally, type these last commands below.
Code:
sudo apt-get install -f
sudo apt-get update && sudo apt-get dist-upgrade

If you already did these steps before then you can skip it. And now, let's download and install the LibGL library which CS2D needs it.
Code:
sudo apt-get install libgl1-mesa-dev:i386

When you append :i386 in the specific package it means you're attempting to download the package in 32-bit type. See if that helps.
edited 1×, last 28.04.16 03:57:38 pm
28.04.16 07:37:46 pm
Up
Hajt
User
Offline Off
I finally know how's works. If you're using 64-bit OS and your system supports multiarch technology you have to use these packages:
Code:
1
sudo apt-get install libstdc++6:i386 libx11-6:i386 libxxf86vm1:i386 libgl-gst:i386 libfreetype6:i386


And if you want to install OpenAL Sound Driver to get sound in game, type this command (it's dev version of package because rest simply doesn't work):
Code:
1
sudo apt-get install libopenal-dev:i386
Yooo. We are playing mix matches 5on5 in evening hours on the server CS2D.TK | Mix/Match, you can join us, server password is match. Statistics, leaderboard can be found under the following link.
01.06.16 05:14:28 am
Up
MikuAuahDark
User
Offline Off
Sorry for bumping.

user Fraizeraust has written:
@user MikuAuahDark: If your OS doesn't handle 32-bit apps / libs type architectures, then you must add that arch in order to work. Here's how.

First of, you must apply this command written below:
Code:
dpkg --print-foreign-architectures

If that doesn't work what I've shown above (doesn't give any output), try with this command.
Code:
sudo dpkg --add-architecture i386

This will implement the 32-bit type arch in your OS. And finally, type these last commands below.
Code:
sudo apt-get install -f
sudo apt-get update && sudo apt-get dist-upgrade

If you already did these steps before then you can skip it. And now, let's download and install the LibGL library which CS2D needs it.
Code:
sudo apt-get install libgl1-mesa-dev:i386

When you append :i386 in the specific package it means you're attempting to download the package in 32-bit type. See if that helps.


It prints "i386" when I execute the first command, so I skipped the second command. However, trying to execute the last command gives me this error

Code:
mikuauahdark@AuahDark-687291:/media/mikuauahdark/Windows8/Counter-Strike 2D$ sudo apt-get install libgl1-mesa-dev:i386
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
libgl1-mesa-dev:i386 : Depends: libgl1-mesa-glx:i386 (= 10.1.3-0ubuntu0.6) or
libgl1-mesa-glx-lts-utopic:i386 but it is not going to be installed or
libgl1-mesa-glx-lts-vivid:i386 but it is not going to be installed or
libgl1-mesa-glx-lts-wily:i386 but it is not going to be installed or
libgl1-mesa-glx-lts-xenial:i386 but it is not installable
E: Unable to correct problems, you have held broken packages.


I can't execute the third command because it requires ~400MB and I don't have enough data plan to do so.
file cs2d LuaJIT for Dedicated Server (11) JIT POWER! | Know your Lua errors! | Draw stuff at Pixelize Art --xx-- server!
To the start Previous 1 Next To the start