Page 1 of 1

Running Darwinia - Error Loading Shared Libraries

Posted: Mon Feb 02, 2009 9:48 pm
by hotrod

Code: Select all

$ darwinia
/usr/local/games/darwinia
/usr/local/games/darwinia/lib/darwinia.bin.x86: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: Error 40


occurs when I attempt to run Darwinia.

The only thing I have done is created a symbolic link on advice from someone in the IRC chan.

Code: Select all

/usr/lib$ sudo ln -s libstdc++.so libstdc++.so.5


edit: I purchased the game yesterday and downloaded it from the website. I don't have the CD copy.
running ubuntu 8.10

Posted: Mon Feb 02, 2009 11:52 pm
by hotrod
sudo apt-get install libstdc++5

fixed it.

duh.

Posted: Sat May 30, 2009 10:50 pm
by Lord Ozymandias
I'm trying to play the demo and am running into the same problem.

sudo apt-get install libstdc++5


Code: Select all

# apt-get install libstdc++5
Reading Package Lists... Done
Building Dependency Tree... Done
E: Couldn't find package libstdc++5


I've also tried the ln trick above and still no dice. Does this mean I have to get around to upgrading from fc7 if I want to play?

Posted: Sat May 30, 2009 11:27 pm
by bert_the_turtle
apt isn't the package manager of Fedora, so you're definitely doing SOMETHING wrong here. What's your precise distribution? They all name the libstdc++5 legacy package differently.

Posted: Sat May 30, 2009 11:56 pm
by Lord Ozymandias
(Noob warning)

I believe it's 2.6.23.17-88.fc7

I tried on yum before installing and trying apt-get, with no dice there either.

I got libstdc++.so.6 and libstdc++.so.6.0.8 . Create a symbolic link thingy to those?

Edit: Tried that and `GLIBCPP_3.2' , `CXXABI_1.2' , `GCC_4.2.0' are now not to be found.

Posted: Sun May 31, 2009 12:03 am
by bert_the_turtle
Lord Ozymandias wrote:I got libstdc++.so.6 and libstdc++.so.6.0.8 . Create a symbolic link thingy to those?
No, that wouldn't work. They're incompatible, that's why they have a different major version. Try

Code: Select all

yum install compat-libstdc++-33

as root.

Posted: Sun May 31, 2009 12:12 am
by Lord Ozymandias
K, um that probably should have worked. but:

./lib/darwinia.bin.x86: error while loading shared libraries: ./lib/libSDL-1.2.so.0: cannot restore segment prot after reloc: Permission denied

Posted: Sun May 31, 2009 8:45 am
by bert_the_turtle
Hmm, I've never seen such an error. Googling for the message says it's from SELinux. These links say how to disable it:
http://www.archiware.com/support/index. ... ticleid=58
http://www.appistry.com/community/forum ... ion-denied

(Of course, you probably should disable it for testing only. Once that works, you can probably configure an exception for Darwinia and keep the rest of the system protected. I'm definitely out of my home waters for that, though.)

Posted: Sun May 31, 2009 11:15 pm
by Lord Ozymandias
I've been told that SELinux causes more problems than it fixes. I'll bring this up with a knowlegeable (and patient) linux guru during the week and report back.

Thanks for the help, friendly turtleman!

Posted: Sat Jun 06, 2009 2:10 am
by Lord Ozymandias
Sure enough! SE Linux was being finniky and didn't want to disable itself. With it off everything works fine with the library you said to install, Bert.

IOU one hug.

Posted: Sat Jun 06, 2009 9:27 am
by bert_the_turtle
Eww, hugs ;)