You are not logged in.
Well, I've just gotten the linux version of Sim City 3000 in the mail today, and I can't get it to actually run. I've followed the instructions in this very old thread (http://bbs.archlinux.org/viewtopic.php?id=7117), but I can't get it to run. I've gotten the error below, which was not covered in the thread:
/opt/games/SC3U/sc3u: error while loading shared libraries: libdl.so.2: cannot open shared object file: No such file or directory
Last edited by Falcata (2008-05-29 21:09:31)
Offline
SimCity is probably buildt against an older version of libdl -- I'm not at my arch box now, so I can't check what the current version is.
First, check if there is a directory with libraries in the game directory -- closed source software for Linux often ships with the libs it's built against. Maybe there is an option in the launcher script (like there is with e.g NWN). If not, you can always fiddle with LD_LIBRARY_PATH.
If there is no library in the game directory (or in a subdir like lib/), you can _try_ symlinking /usr/lib/libdl.so.2 to /usr/lib/libdl.so
#cd /usr/lib
#ln -s libdl.so libdl.so.2
This might cause all sorts of problems, so try the first solution first
Drop a line if it works (or not)
Offline
Well, /opt/games/SC3U does have a lib directory, but there isn't a libdl.so or libdl.so.2 in it. Also, I am against symlinking /usr/lib/libdl.so.2 to /usr/lib/libdl.so, due to the problems it might cause. Also, I don't really see what it would do, since SimCity 3000 is looking for libdl.so.2.
However, my libdl.so.2 file is in the directory /lib, rather than /usr/lib. I'll try symlinking that and see if it does anything.
EDIT: No effect. How do I figure out where SimCity 3000 is expecting libdl.so.2 to be?
Last edited by Falcata (2008-05-27 17:31:21)
Offline
Ah, of course, it's in /lib. I'm at work, on win2k now
But if you have a libdl.so.2, then the problem is something else. Perhaps the starter script for simcity _does_ play with LD_LIBRARY_PATH, and therefore the linker does not find your library in /lib? Just guessing.
Check if /opt/games/SC3U is a shell file. See if it does something funny with env variables like LD_LIBRARY_PATH.
Offline
/opt/games/SC3U/sc3u, actually. And it's just a binary file.
Offline
Ok, that's just weird. Is there a starter shellscript?
Offline
Offline
Well, I would try to go into the lib/ dir of simcity, and make a symlink to libdl there. But this is weirding me out
Offline
I tried that already, but it didn't work.
The game was written for use with the 2.2 and 2.4 kernels, but works on the 2.6. Was libdl.so.2 in a different location for the 2.2 and 2.4 kernels?
Last edited by Falcata (2008-05-27 18:16:17)
Offline
A little googling gave me this:
http://www.fedoraforum.org/forum/archiv … 18038.html
Offline
Well shoot. Where am I going to get those files?
Offline
This guy also writes about it, and offers the libs for d/l. You could try it out.
http://bashu.wordpress.com/2007/04/15/s … untu-edgy/
Offline
A word of warning: some versions of SC3K suffer from SafeDisk copy protection, which doesn't work under WINE. I'm not certain if that's what's causing this issue (it's a while since I tried my copy, and I can't remember how it failed), but just so you know...
Edit: Doh! Linux version. Forget I said anything. No, really, forget it. Please?
Last edited by dunc (2008-05-27 19:05:06)
0 Ok, 0:1
Offline
dunc, he is not using wine. He's using the linux version.
Offline
Heh! I noticed before you posted. Hence the edit (making you look stupid instead of me ).
0 Ok, 0:1
Offline
A word of warning: some versions of SC3K suffer from SafeDisk copy protection, which doesn't work under WINE. I'm not certain if that's what's causing this issue (it's a while since I tried my copy, and I can't remember how it failed), but just so you know...
Edit: Doh! Linux version. Forget I said anything. No, really, forget it. Please?
Too late now, lol.
The Windoze version of Sim City 3000 doesn't work under wine for me either.
Offline
I think I found the answer now
Grab the Loki-compat libs from http://www.linuxrising.org/files/lokicompat.tar.bz2
Also, read http://gentoo-wiki.com/HOWTO_Running_Old_Loki_Games
Offline
Well, the patch doesn't seem to work. I try running it, and I get this message:
Performing update:
Computing MD5 sums for new uninstaller, this may take a while...
ERROR: No matching delta for /opt/games/SC3U//sc3u.dynamic
The program returned an error code (3)
EDIT: I think I shouldn't have put the trailing "/" on the end of the installation directory. Is there any way to reset it?
Last edited by Falcata (2008-05-27 19:36:30)
Offline
I have _no_ idea, I don't have the game.
I'll hunt around for a demo or something.
Offline
Mh. Look in the ~/.loki/installed directory maybe? I don't know how this is if you installed it system wide...
Offline
Well, I removed the trailing slash, but I'm still getting the problem. I'm going to take a look at /opt/games/SC3U/sc3u.dynamic to see if it has any useful information.
EDIT: Nothing useful. Just a binary file.
Last edited by Falcata (2008-05-27 20:21:17)
Offline
Well, I did some googling for the whole "delta" thing, and I think I might have found a solution. Unfortunately, I don't know how to read German. Can anyone read German? Google Language Tools isn't exactly helpful.
Last edited by Falcata (2008-05-27 20:44:23)
Offline
Back again
I don't know what you did before trying to patch. Anyway, i found a mirror of lokigames patches here ftp://mirrors.dotsrc.org/lokigames/patches/sc3u
Offline
Whoops. I suppose it would have helped to post the page I found the possible solution: http://forum.ubuntuusers.de/topic/77208/
Can anyone give me a translation of the solution, if it exists on that page?
Offline
Sure:
It seems the original poster had the same problem as you did.
The following is a translation of "Poppei"s Post, which has worked for the OP:
1) you install SimCity 3000
2) grap the patch (got it from http://mirrors.dotsrc.org/lokigames/patches/sc3u/)
3) if there is a trap-error while installing, run: "sudo /bin/bash sc3u-2.0a-x86.run"
4) now there will be a segmentation fault while starting sim city. I downloaded the following for compatibility: http://www.linuxrising.org/files/lokicompat.tar.bz2
and extracted it into /usr/local/games . Now create the following script in /usr/local/games/SC3U (I called it: sc3u-ok)#!/bin/sh COMPAT=/usr/local/games/loki_compat LD_LIBRARY_PATH=$COMPAT LD_ASSUME_KERNEL=2.4.28 $COMPAT/ld-linux.so.2 /usr/local/games/SC3U/sc3u
don't forget to make it executeable (e.g. chmod 777)
5) start the game. :-) (using sc3u-ok)Sources:
http://www.linuxforen.de/forums/showthr … 614&page=2
http://ubuntuforums.org/showthread.php?p=2740852
I don't take any responsibility for any errors/inaccuracies , but I hope it helps you
Offline