You are not logged in.

#1 2009-03-04 17:11:49

linopolus
Member
From: /home/linopolus
Registered: 2009-01-08
Posts: 32

error while loading shared libraries: libopenal.so.0: ...

Hello

While starting a few games(for example Spring and Tremolous) I get the following error:

error while loading shared libraries: libopenal.so.0: cannot open shared object file: No such file or directory

and the start interrupts. How to start these games?


Thanks for reading, linopolus

Offline

#2 2009-03-04 17:39:04

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: error while loading shared libraries: libopenal.so.0: ...

Install openal?

Offline

#3 2009-03-04 17:45:17

linopolus
Member
From: /home/linopolus
Registered: 2009-01-08
Posts: 32

Re: error while loading shared libraries: libopenal.so.0: ...

openal is a dependency of tremolous and already installed


Thanks for reading, linopolus

Offline

#4 2009-03-04 17:46:33

MrShlee
Member
Registered: 2009-03-03
Posts: 14

Re: error while loading shared libraries: libopenal.so.0: ...

it worked for me using the amazingly hacky "cp libopenal.so.1 libopenal.so.0"

but there has to be a better solution

Last edited by MrShlee (2009-03-04 17:47:09)

Offline

#5 2009-03-04 17:48:22

eldragon
Member
From: Buenos Aires
Registered: 2008-11-18
Posts: 1,029

Re: error while loading shared libraries: libopenal.so.0: ...

you could:

# ln -s /usr/lib/libopenal.so /usr/lib/libopenal.so.0

quite a dirty workaround. but ought to work wink

Offline

#6 2009-03-04 17:50:22

eldragon
Member
From: Buenos Aires
Registered: 2008-11-18
Posts: 1,029

Re: error while loading shared libraries: libopenal.so.0: ...

MrShlee wrote:

it worked for me using the amazingly hacky "cp libopenal.so.1 libopenal.so.0"

but there has to be a better solution

try symlinking instead.. and to the .so as i posted, otherwise you will end up with an old version lying around once its updated. that could crap stuff up someday in the future

Offline

#7 2009-03-04 18:00:13

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: error while loading shared libraries: libopenal.so.0: ...

Does tremulous build off of the source code? If so, rebuild it against the newer openal. Symlinking libraries is a very bad idea.

Offline

#8 2009-03-04 18:05:14

linopolus
Member
From: /home/linopolus
Registered: 2009-01-08
Posts: 32

Re: error while loading shared libraries: libopenal.so.0: ...

I installed Tremulous from [Community]. Should I use the package tremulous-updated instead?


Thanks for reading, linopolus

Offline

#9 2009-03-04 18:16:31

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: error while loading shared libraries: libopenal.so.0: ...

linopolus wrote:

I installed Tremulous from [Community]. Should I use the package tremulous-updated instead?

I don't know tremulous at all. If there is a library version problem, file a bug report in the community section in the bug tracker.

Offline

#10 2009-03-04 18:24:40

eldragon
Member
From: Buenos Aires
Registered: 2008-11-18
Posts: 1,029

Re: error while loading shared libraries: libopenal.so.0: ...

skottish wrote:

Does tremulous build off of the source code? If so, rebuild it against the newer openal. Symlinking libraries is a very bad idea.

could you explain further? there must be something im missing

Offline

#11 2009-03-04 18:48:48

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: error while loading shared libraries: libopenal.so.0: ...

eldragon wrote:
skottish wrote:

Does tremulous build off of the source code? If so, rebuild it against the newer openal. Symlinking libraries is a very bad idea.

could you explain further? there must be something im missing

The best way to do it in my opinion is to grab the tremulous build files using ABS:

http://wiki.archlinux.org/index.php/ABS

Once abs is installed and run, the tremulous file will be located in /var/abs/community/games/tremulous. Copy the tremulous folder to somewhere where you have write permissions, enter the directory, change pkgrel=4 to pkgrel=5 in the PKGBUILD, and run makepkg. If all goes well you'll have a new package in that directory after it's done compiling. Then you can install it by running 'pacman -U <whatever the file that ends in .pkg.tar.gz>.

Offline

#12 2009-03-04 19:08:26

eldragon
Member
From: Buenos Aires
Registered: 2008-11-18
Posts: 1,029

Re: error while loading shared libraries: libopenal.so.0: ...

skottish wrote:
eldragon wrote:
skottish wrote:

Does tremulous build off of the source code? If so, rebuild it against the newer openal. Symlinking libraries is a very bad idea.

could you explain further? there must be something im missing

The best way to do it in my opinion is to grab the tremulous build files using ABS:

http://wiki.archlinux.org/index.php/ABS

Once abs is installed and run, the tremulous file will be located in /var/abs/community/games/tremulous. Copy the tremulous folder to somewhere where you have write permissions, enter the directory, change pkgrel=4 to pkgrel=5 in the PKGBUILD, and run makepkg. If all goes well you'll have a new package in that directory after it's done compiling. Then you can install it by running 'pacman -U <whatever the file that ends in .pkg.tar.gz>.

i was talking about the dangers of symlinking libraries  actually...

Offline

#13 2009-03-04 20:21:01

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: error while loading shared libraries: libopenal.so.0: ...

Place overly simplistic description here:

Developers usually upgrade shared object files when there's an API change. Dynamic linkers are often looking for something specific when building and installing software. "Aha!" it says, "I found the library that I'm looking for." No it didn't. It found a symlink that a user put in and probably forgot about right away. Sooner or later bugs are going to start creeping into software because of incompatibilities between what it seems to have found and the actual library.

With that being said, if people are hacking symlinks on what a rebuild or a bug report would ordinarily fixed, we all at Arch would appreciate if you didn't post any bug reports either here or in the bug tracker. A lot of people are going to be chasing phantoms because a situation that could have been fixed with the tiniest bit of effort.

Offline

#14 2009-03-04 20:42:34

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,392
Website

Re: error while loading shared libraries: libopenal.so.0: ...

NEVER SYMLINK LIBRARIES!!!  That is how you end up with a screwed system that we can not figure out what is wrong.

File a bug report, the rebuild yourself using ABS.

Offline

#15 2009-03-05 02:51:20

eldragon
Member
From: Buenos Aires
Registered: 2008-11-18
Posts: 1,029

Re: error while loading shared libraries: libopenal.so.0: ...

thanks a lot, i got it now big_smile this is exactly what i was looking for. pfeew, thanks god i didnt get to do my biddings with this arch install yet wink

Offline

Board footer

Powered by FluxBB