Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm having an issue with a shared library called libsdl. What I'm trying to do actually is to start up a game engine called GCCG (Generic Collectible Card Game). All the necessary packages were installed for the engine, however when I run the command ./Mtg it gives me the following:

./ccg_client: error while loading shared libraries: cannot open shared object file: No such file or directory

From the error message, it seems clear that the libSDL libraries are either not installed or they cannot be accessed/are miss-located. After checking my packages with dpkg --get-selections | grep libsdl I found out that all the libSDL packages are installed... so just to make sure, I used sudo apt-get purge on all of the libSDL packages and made a clean install on all of the libSDL packages, however, the result is still the same.

Furthermore, when I use apt-file search, to locate the so-called "missing libraries", I get this as a result:

libsdl1.2debian: /usr/lib/x86_64-linux-gnu/

libsdl1.2debian: /usr/lib/x86_64-linux-gnu/

So, as I figure it, they are there... but they are not shared?

share|improve this question
up vote 3 down vote accepted

Is this a 32 bits or a 64 bits binary ? ( you can check with file ./Mtg ).

If this is a 32 bits binary, then you need the 32 bits version of libSDL, as you seems to be running x86_64.

share|improve this answer
Indeed. Thank you so much... I checked the game's client with the file [client_file] command and indeed, it was a 32bit binary. So I installed all the libSDL 32bit equivalent libs and it worked out just great. Thank you again for the tip... now I know about the FILE command... I'm new to Linux. =)> – Kallestofeles May 28 '12 at 19:10

I needed all those libraries:

sudo apt-get install libsdl1.2debian:i386
sudo apt-get install libsdl-net1.2:i386
sudo apt-get install libsdl-image1.2:i386
sudo apt-get install libjpeg62:i386
sudo apt-get install libsdl-ttf2.0-0:i386
sudo apt-get install libsdl-mixer1.2:i386
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.