Forum

> > CS2D > General > Error while loading shared libraries
Forums overviewCS2D overviewGeneral overviewLog in to reply

English Error while loading shared libraries

12 replies
To the start Previous 1 Next To the start

old Error while loading shared libraries

Hajt
User Off Offline

Quote
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
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)

old Re: Error while loading shared libraries

GeoB99
Moderator Off Offline

Quote
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:
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.

old Re: Error while loading shared libraries

Hajt
User Off Offline

Quote
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.

old Re: Error while loading shared libraries

MikuAuahDark
User Off Offline

Quote
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?

old Re: Error while loading shared libraries

Cirium
User Off Offline

Quote
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.

1
apt-get install ia32-libs

old Re: Error while loading shared libraries

Hajt
User Off Offline

Quote
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.

old Re: Error while loading shared libraries

GeoB99
Moderator Off Offline

Quote
@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.

old Re: Error while loading shared libraries

Marcell
Super User Off Offline

Quote
@user GeoB99: 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.

old Re: Error while loading shared libraries

MikuAuahDark
User Off Offline

Quote
@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 GeoB99: But looks like Ubuntu is an exception.

old Re: Error while loading shared libraries

GeoB99
Moderator Off Offline

Quote
@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:
dpkg --print-foreign-architectures

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

This will implement the 32-bit type arch in your OS. And finally, type these last commands below.
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.
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

old Re: Error while loading shared libraries

Hajt
User Off Offline

Quote
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:
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):
1
sudo apt-get install libopenal-dev:i386

old Re: Error while loading shared libraries

MikuAuahDark
User Off Offline

Quote
Sorry for bumping.

user GeoB99 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:
dpkg --print-foreign-architectures

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

This will implement the 32-bit type arch in your OS. And finally, type these last commands below.
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.
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

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.
To the start Previous 1 Next To the start
Log in to replyGeneral overviewCS2D overviewForums overview