27

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: libSDL-1.2.so.0: 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 libSDL-1.1.so.0 -> libSDL-1.2.so.0
lrwxrwxrwx 1 root root      20 Oct 15 00:25 libSDL-1.2.so.0 -> libSDL-1.2.so.0.11.4
-rwxr-xr-x 1 root root 2358903 Jan 19  2012 libSDL-1.2.so.0.11.4

And my path:

# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/lib64

What am I doing wrong?

ErocM
  • 531

6 Answers6

30

This worked for me:

sudo apt-get install libsdl1.2debian:i386

Joril
  • 2,424
16

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

kiri
  • 28,986
Anonymous
  • 176
  • 2
  • 3
2

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.

Eric Carvalho
  • 55,453
Douther
  • 21
2
sudo apt-get install libsdl1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev
Zanna
  • 72,312
jagadeesh
  • 29
  • 1
0

No one else's answer solved this for me. This did though:

$ sudo apt-get install libsdl1.2debian libsdl-image1.2 libsdl-ttf2.0-0 libopenal1 libsndfile1 libncursesw5

Something to do with 64 bit dependencies not being installed due to 32 bit libraries, I'm not sure.

Shardj
  • 101
0

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)
Paul
  • 101