The International Simutrans Forum

Community => Simutrans Help Center => Topic started by: shadowwraith on April 11, 2012, 02:41:20 AM

Title: simutrans 128 pak opensuse 12.1
Post by: shadowwraith on April 11, 2012, 02:41:20 AM
Hi i have just gotten the simulinux-111-2-2.zip un packed it but when i run it via the terminal i get the error message

Quote./simutrans: error while loading shared libraries: libbz2.so.1.0: cannot open shared object file: No such file or directory

now i looked at other forum posts and found some people had the same problem, but i tried the instructions that they were given i.e

Quoteln -s /usr/libs/libbz2.so.1 /usr/libs/libbz2.1.0
etc but to no avail.

i have checked opensuse's repositories and all the libbz2 libraries are installed both 32 and 64 bit versions.  i have also checked about simutrans in the repositories but they only have the version 0.88.10.5-112.1 which is quite old.

has someone found a solution to the above problem?

Thanks  :)
Title: Re: simutrans 128 pak opensuse 12.1
Post by: Vonjo on April 11, 2012, 04:03:22 AM
Try to rename or soft link your installed libbz2 library to libbz2.so.1.0

something like:
ln -s /usr/libs/libbz2.so.1 /usr/libs/libbz2.so.1.0
Title: Re: simutrans 128 pak opensuse 12.1
Post by: dom700 on April 11, 2012, 07:07:26 AM
Dont rename, just copy it, worked for me ;)

Edit: Vonjo, giving him the solution that didnt work isnt helping

so, basically im suggesting cp /usr/lib/libbz2.so.1 /usr/lib/libbz2.so.1.0

(why is it libs and not lib?!)
Title: Re: simutrans 128 pak opensuse 12.1
Post by: Vonjo on April 11, 2012, 03:12:13 PM
Quote from: dom700 on April 11, 2012, 07:07:26 AM
Dont rename, just copy it, worked for me ;)
Yes, I'm sorry. Don't rename it, as it can break some applications.

Just (soft) link, like I said before:
ln -s /usr/libs/libbz2.so.1 /usr/libs/libbz2.so.1.0

You can also copy, but it won't be automatically updated on system update.
Title: Re: simutrans 128 pak opensuse 12.1
Post by: shadowwraith on April 11, 2012, 03:22:05 PM
Well i managed to get simutrans to work

the libbz2.so.1 file was located in /lib and not /usr/lib so all i did was

Quotecp /lib/libbz2.so.1 /lib/libbz2.so.1.0 (as root)

the above command worked but i think i should have created a static link rather than doing a copy as it may not get updated the next time the package is updated. ;:)
Title: Re: simutrans 128 pak opensuse 12.1
Post by: dom700 on April 11, 2012, 03:52:38 PM
Seriously, dont worry about this, I had to do this for some program in 11.2 (I think) and nothing got ever updated.