libGLC.so.0: cannot open shared object file: No such file or directory

Do you need help? Ask here!

Bug reporting belongs here: http://developer.wz2100.net/newticket
Lasair
New user
Posts: 2
Joined: 27 Nov 2007, 02:08

libGLC.so.0: cannot open shared object file: No such file or directory

Post by Lasair »

First of all - hello world! ;)

I ran across this idiocy after a rather problem-free compilation from the trunk. Or rather a bundle of idiocies.

First of all, although warzone2100 is in /usr/local/bin/ (it is even auto-completed in the command line) after calling it I got bash: warzone2100: command not found. It could be still invoked from the location in question, only to display (I managed to solve the first 'problem' in the mean time):
bash wrote:lasair@lap:~$ warzone2100
warzone2100: error while loading shared libraries: libGLC.so.0: cannot open shared object file: No such file or directory
on the other hand
bash wrote:lasair@lap:~$ ls /usr/local/lib/libGLC*
/usr/local/lib/libGLC.a  /usr/local/lib/libGLC.la  /usr/local/lib/libGLC.so  /usr/local/lib/libGLC.so.0
it seems to me that everything should be fine...

I looked the board through only to find a this issue mentioned in an already solved problem. Here.

Suggestions?

Running Ubuntu 7.10

[edit] the link provided leads to a similar not the same issue...
Per
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 3780
Joined: 03 Aug 2006, 19:39

Re: libGLC.so.0: cannot open shared object file: No such file or directory

Post by Per »

I guess you don't have /usr/local/lib listed in /etc/ld.conf? Try running /sbin/ldconfig /usr/local/lib as root.

Does Ubuntu run SELinux?
"Make a man a fire, you keep him warm for a day. Set a man on fire, you keep him warm for the rest of his life."
Lasair
New user
Posts: 2
Joined: 27 Nov 2007, 02:08

Re: libGLC.so.0: cannot open shared object file: No such file or directory

Post by Lasair »

The problem seems to have solved itself. After system restart. In fact, I can't even find an evidence that there was a problem at all... Things like this make me consider the possibility of a malicious conscience within my CPU. :)
Per wrote: I guess you don't have /usr/local/lib listed in /etc/ld.conf? Try running /sbin/ldconfig /usr/local/lib as root.
I checked that. Everything was fine.
Per wrote: Does Ubuntu run SELinux?
To the best of my knowledge - no

Still - thanks for wasting a bit of your time.
User avatar
DevUrandom
Regular
Regular
Posts: 1690
Joined: 31 Jul 2006, 23:14

Re: libGLC.so.0: cannot open shared object file: No such file or directory

Post by DevUrandom »

Lasair wrote: The problem seems to have solved itself. After system restart. In fact, I can't even find an evidence that there was a problem at all... Things like this make me consider the possibility of a malicious conscience within my CPU. :)
Probably Ubuntu regenerates the ld.so.cache on reboot?

The fact that you couldn't run might have been because /usr/local/bin was not listed in $PATH. (Maybe Ubuntu also adapted that when rebooting?)
Giel
Regular
Regular
Posts: 725
Joined: 26 Dec 2006, 19:18

Re: libGLC.so.0: cannot open shared object file: No such file or directory

Post by Giel »

DevUrandom wrote: Probably Ubuntu regenerates the ld.so.cache on reboot?
Seems reasonable, yes.
DevUrandom wrote: The fact that you couldn't run might have been because /usr/local/bin was not listed in $PATH. (Maybe Ubuntu also adapted that when rebooting?)
I'd say that this is quite unlikely, since AFAIK even a default Ubuntu installation already has /usr/local/bin created (I know Debian has it). Obviously it isn't impossible though.
"First make sure it works good, only then make it look good." -- Giel
Want to tip/donate? bitcoin:1EaqP4ZPMvUffazTxm7stoduhprzeabeFh