$ ./lambdarogue
./lambdarogue: error while loading shared libraries: libSDL-1.2.so.0:
cannot open shared object file: No such file or directory
Doing an apt-file search gives me this :-
$ apt-file search libSDL-1.2.so.0
ia32-libs: /usr/lib32/libSDL-1.2.so.0
ia32-libs: /usr/lib32/libSDL-1.2.so.0.11.3
libsdl1.2debian-all: /usr/lib/libSDL-1.2.so.0
libsdl1.2debian-all: /usr/lib/libSDL-1.2.so.0.11.3
libsdl1.2debian-alsa: /usr/lib/libSDL-1.2.so.0
libsdl1.2debian-alsa: /usr/lib/libSDL-1.2.so.0.11.3
libsdl1.2debian-arts: /usr/lib/libSDL-1.2.so.0
libsdl1.2debian-arts: /usr/lib/libSDL-1.2.so.0.11.3
libsdl1.2debian-esd: /usr/lib/libSDL-1.2.so.0
libsdl1.2debian-esd: /usr/lib/libSDL-1.2.so.0.11.3
libsdl1.2debian-nas: /usr/lib/libSDL-1.2.so.0
libsdl1.2debian-nas: /usr/lib/libSDL-1.2.so.0.11.3
libsdl1.2debian-oss: /usr/lib/libSDL-1.2.so.0
libsdl1.2debian-oss: /usr/lib/libSDL-1.2.so.0.11.3
libsdl1.2debian-pulseaudio: /usr/lib/libSDL-1.2.so.0
libsdl1.2debian-pulseaudio: /usr/lib/libSDL-1.2.so.0.11.3
Can anybody tell/guide me where I'm going wrong ?
--
Regards,
Shirish Agarwal शिरीष अग्रवाल
My quotes in this email licensed under CC 3.0
http://creativecommons.org/licenses/by-nc/3.0/
http://flossexperiences.wordpress.com
065C 6D79 A68C E7EA 52B3 8D70 950D 53FB 729A 8B17
"It is not true that 32bit apps cannot run on 64bit machines. On
Ubuntu, you just need to install ia32libs.
Now, Debian based distros, on 64bit systems, put 32bit libs in /lib32
and 64 bit ones in /lib. This means that sometimes you'll have to make
a symbolic link for them to work.
In this case, first look for libSDL-1.2.so.0 on your system
sudo find / -name libSDL-1.2.so.0
I have 50-something results, from all the apps that pack it. The one
you are looking for is the one in /usr/lib.
Then link it
sudo ln -s /usr/lib/libSDL-1.2.so.0 /usr/lib32/libSDL-1.2.so.0
You may probably have to repeat this for some other SDL libraries.
You can do this most of the times when a 32 bit program cannot find a
64 bit dependency "
Trying it out and will let you know as soon as I can.
Please CC me if and when I have queries.
Thank you for taking your time to atleast try resolving this issue.
2011/1/19 shirish शिरीष <shiri...@gmail.com>:
> Hi all,
> I should have said that while I'm subscribed to the mailing list
> delivery is off so needed to be CC'ed . Was browsing web and got your
> reply Bruno 9779
>
> "It is not true that 32bit apps cannot run on 64bit machines. On
> Ubuntu, you just need to install ia32libs.
> Now, Debian based distros, on 64bit systems, put 32bit libs in /lib32
> and 64 bit ones in /lib. This means that sometimes you'll have to make
> a symbolic link for them to work.
> In this case, first look for libSDL-1.2.so.0 on your system
> sudo find / -name libSDL-1.2.so.0
> I have 50-something results, from all the apps that pack it. The one
> you are looking for is the one in /usr/lib.
> Then link it
> sudo ln -s /usr/lib/libSDL-1.2.so.0 /usr/lib32/libSDL-1.2.so.0
> You may probably have to repeat this for some other SDL libraries.
> You can do this most of the times when a 32 bit program cannot find a
> 64 bit dependency "
Hi all,
Tried out didn't work out. I just got one when trying to find the same.
$ sudo find / -name libSDL-1.2.so.0
[sudo] password for shirish:
/usr/lib/libSDL-1.2.so.0
Then linked it.
$ sudo ln -s /usr/lib/libSDL-1.2.so.0 /usr/lib32/libSDL-1.2.so.0
Then tried to run it.
$ ./lambdarogue
./lambdarogue: error while loading shared libraries: libSDL-1.2.so.0:
wrong ELF class: ELFCLASS64
Any ideas for fixing the same.
Also does anyone know how to unlink them ?
Drats, instead of sharing the sudo find, it would have been better to
use locate. Found out atleast a part of the issue.
a. $ locate libSDL-1.2.so.0
/usr/lib/libSDL-1.2.so.0
/usr/lib/libSDL-1.2.so.0.11.3
b.
/usr/lib$ ls -l libSDL-1.2.so*
lrwxrwxrwx 1 root root 20 Dec 22 11:36 libSDL-1.2.so.0 ->
libSDL-1.2.so.0.11.3
-rw-r--r-- 1 root root 447968 Oct 10 21:00 libSDL-1.2.so.0.11.3
c. Then see, first deleted the old symlink made before
sudo rm /usr/lib32/libSDL-1.2.so.0
d. Now made the new symlink :-
$ sudo ln -s /usr/lib/libSDL-1.2.so.0.11.3 /usr/lib32/libSDL-1.2.so.0
Still got the same issue
./lambdarogue: error while loading shared libraries: libSDL-1.2.so.0:
wrong ELF class: ELFCLASS64
removing the symlink /usr/lib32/libSDL-1.2.so.0