Running Darwinia - Error Loading Shared Libraries

Problems with the Linux version of Darwinia

Moderators: jelco, bert_the_turtle, Chris, andy, John

hotrod
level0
Posts: 2
Joined: Mon Feb 02, 2009 9:45 pm

Running Darwinia - Error Loading Shared Libraries

Postby hotrod » Mon Feb 02, 2009 9:48 pm

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
hotrod
level0
Posts: 2
Joined: Mon Feb 02, 2009 9:45 pm

Postby hotrod » Mon Feb 02, 2009 11:52 pm

sudo apt-get install libstdc++5

fixed it.

duh.
Lord Ozymandias
level1
level1
Posts: 12
Joined: Sat May 30, 2009 10:45 pm

Postby Lord Ozymandias » Sat May 30, 2009 10:50 pm

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?
User avatar
bert_the_turtle
level5
level5
Posts: 4795
Joined: Fri Oct 13, 2006 6:11 pm
Location: Cologne
Contact:

Postby bert_the_turtle » Sat May 30, 2009 11:27 pm

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.
Lord Ozymandias
level1
level1
Posts: 12
Joined: Sat May 30, 2009 10:45 pm

Postby Lord Ozymandias » Sat May 30, 2009 11:56 pm

(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.
Last edited by Lord Ozymandias on Sun May 31, 2009 12:04 am, edited 1 time in total.
User avatar
bert_the_turtle
level5
level5
Posts: 4795
Joined: Fri Oct 13, 2006 6:11 pm
Location: Cologne
Contact:

Postby bert_the_turtle » Sun May 31, 2009 12:03 am

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.
Lord Ozymandias
level1
level1
Posts: 12
Joined: Sat May 30, 2009 10:45 pm

Postby Lord Ozymandias » Sun May 31, 2009 12:12 am

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
User avatar
bert_the_turtle
level5
level5
Posts: 4795
Joined: Fri Oct 13, 2006 6:11 pm
Location: Cologne
Contact:

Postby bert_the_turtle » Sun May 31, 2009 8:45 am

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.)
Lord Ozymandias
level1
level1
Posts: 12
Joined: Sat May 30, 2009 10:45 pm

Postby Lord Ozymandias » Sun May 31, 2009 11:15 pm

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!
Lord Ozymandias
level1
level1
Posts: 12
Joined: Sat May 30, 2009 10:45 pm

Postby Lord Ozymandias » Sat Jun 06, 2009 2:10 am

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.
User avatar
bert_the_turtle
level5
level5
Posts: 4795
Joined: Fri Oct 13, 2006 6:11 pm
Location: Cologne
Contact:

Postby bert_the_turtle » Sat Jun 06, 2009 9:27 am

Eww, hugs ;)

Return to “Linux Issues”

Who is online

Users browsing this forum: No registered users and 3 guests