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 am trying to install ioquake on my ubuntu server.

When I try to run it, I get this message:

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

I thought I had everything working right, here is where the libSDL is:

# cd /usr/lib64
# /usr/lib64# ls -l
total 2308
lrwxrwxrwx 1 root root      15 Oct 15 00:25 ->
lrwxrwxrwx 1 root root      20 Oct 15 00:25 ->
-rwxr-xr-x 1 root root 2358903 Jan 19  2012

And my path:

# echo $PATH

What am I doing wrong?

share|improve this question
I think that this is a message from libSDL rather than about libSDL. Run strace ./ioquake.x86_64. This will show all system calls (takes way more time to execute). It will show which attempt to open which file will fail. – January Oct 15 '12 at 5:02
I installed trace. When I run it straight up, I get the help. When I run strace ./ioquake.x86_64 as you suggested I get command not found. I'm getting a headache :( – ErocM Oct 15 '12 at 5:15
I installed strace* – ErocM Oct 15 '12 at 5:20
From the OpenArena FAQ, this message appears when libSDL isn't installed, so I don't think it came from it. Not the best idea, but just to be sure, have you tried to rename into ? – NorTicUs Oct 15 '12 at 11:12
up vote 6 down vote accepted

Try the following in terminal:

sudo apt-get update

followed by

sudo apt-get install --reinstall libsdl1.2debian

Post any error messages you might see

share|improve this answer

This worked for me:

sudo apt-get install libsdl1.2debian:i386

share|improve this answer

I know this is a year late. But this should fix it:

dpkg --add-architecture i386
sudo apt-get install libsdl1.2debian

The problem is that you are running a program compiled for a 32 bit architecture with 64 bit libraries.

share|improve this answer
Alternatively sudo apt-get install libsdl1.2debian:i386 – Joril Jun 5 '14 at 19:26
@Joril I think your comment should be an answer as itself – Alter Lagos Jul 18 '14 at 3:28

This question is still relevant to Ubuntu 14.04 for old but still in use programs such as GCCG (Generic Collectible Card Game).

There are two very large answers on the subject:

  1. How to run 32-bit app in Ubuntu 64-bit?
  2. How to install ia32-libs in Ubuntu 14.04 LTS (Trusty Tahr)
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.