Join us at the Oolite Anniversary Party -- London, 7th July 2024, 1pm
More details in this thread.

[Solved] Cannot get v1.77.1 to run in Linux

For discussion of ports to POSIX based systems, especially using GNUStep.

Moderators: winston, another_commander, Getafix

Post Reply
Krenn
Poor
Poor
Posts: 4
Joined: Sun Feb 09, 2014 7:02 am

[Solved] Cannot get v1.77.1 to run in Linux

Post by Krenn »

I've tried system-wide & home-directory installations, but I get the same error:

error while loading shared libraries: libSDL_mixer-1.2.so.0: cannot open shared object file: No such file or directory

Anyone know how to fix this?

Thanks in advance!
Last edited by Getafix on Sun Feb 16, 2014 11:12 pm, edited 1 time in total.
Reason: Mark as "Solved".
Krenn
Poor
Poor
Posts: 4
Joined: Sun Feb 09, 2014 7:02 am

Cannot get version 1.77.1 to run in Linux

Post by Krenn »

Whenever I try to run, I get a message:
It seems that your operating system does not have a valid timezone name
configured and is using an abbreviation instead. By comparing timezone
file data it is has been possible to find the actual timezone used, but
doing that is a slow process.

You can avoid slowness of this time zone detecting approach
by setting the environment variable TZ='SystemV/CST6CDT'
Or You can override the timezone name by setting the 'Local Time Zone'
NSUserDefault via the 'defaults' command line utility, a Preferences
application, or some other utility.
eg "defaults write NSGlobalDomain 'Local Time Zone' 'SystemV/CST6CDT'"
Then the process hangs and does nothing. I've tried applying the defaults command suggested, but no go. Anyone know how to fix this?
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6573
Joined: Wed Feb 28, 2007 7:54 am

Re: Cannot get v1.77.1 to run in Linux

Post by another_commander »

I have combined the two posts that were waiting for approval into one topic and moved it to the area dedicated to Oolite for Linux discussions.

Hopefully a Linux guru will be with us soon to assist with the issue.
User avatar
kanthoney
Commodore
Commodore
Posts: 281
Joined: Thu Nov 07, 2013 10:21 pm

Re: Cannot get v1.77.1 to run in Linux

Post by kanthoney »

The first one needs the SDL mixer package installed - on Debian/Ubuntu this is libsdl-mixer1.2. For the second one try running tzconfig as root. If that doesn't work, what's in the files /etc/timezone and /etc/localtime?
User avatar
Diziet Sma
---- E L I T E ----
---- E L I T E ----
Posts: 6311
Joined: Mon Apr 06, 2009 12:20 pm
Location: Aboard the Pitviper S.E. "Blackwidow"

Re: Cannot get v1.77.1 to run in Linux

Post by Diziet Sma »

G'day Krenn, and welcome aboard!

Could you also tell us which distro & version of Linux you are running, please?
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied
Krenn
Poor
Poor
Posts: 4
Joined: Sun Feb 09, 2014 7:02 am

Re: Cannot get v1.77.1 to run in Linux

Post by Krenn »

kanthoney wrote:
The first one needs the SDL mixer package installed - on Debian/Ubuntu this is libsdl-mixer1.2. For the second one try running tzconfig as root. If that doesn't work, what's in the files /etc/timezone and /etc/localtime?
I was able to locate the missing files (there were a total of 4), and when I moved them to the /lib/x86_64-linux-gnu folder the error meesages went away. That's when I got the error in my second post. Running tz config as root didn't fix it. /etc/timezone says America/Rainy River. /etc/localtime is full of special characters I cannot interpret with gedit. Same thing happens with v1.76.1. When I download v1.75.3 from the Ubuntu software app, it runs fine but has no update function in it.

I'm running Ubuntu Linux 12.04 LTS.

Hello to Diziet Sma and thanks to you both!
User avatar
Diziet Sma
---- E L I T E ----
---- E L I T E ----
Posts: 6311
Joined: Mon Apr 06, 2009 12:20 pm
Location: Aboard the Pitviper S.E. "Blackwidow"

Re: Cannot get v1.77.1 to run in Linux

Post by Diziet Sma »

Krenn wrote:
I was able to locate the missing files (there were a total of 4), and when I moved them to the /lib/x86_64-linux-gnu folder the error meesages went away.
Umm.. I really, really hope you meant to say "when I copied them".. if you did actually move them, please be sure to put a copy back where you found them in the original locations!
Krenn wrote:
Running tz config as root didn't fix it. /etc/timezone says America/Rainy River. /etc/localtime is full of special characters I cannot interpret with gedit. Same thing happens with v1.76.1. When I download v1.75.3 from the Ubuntu software app, it runs fine but has no update function in it.

I'm running Ubuntu Linux 12.04 LTS.
Ok.. at least you're not running something exotic then, like ArchLinux or Gentoo.. :D
(Oolite -especially with OXPs- on Arch is a whole 'nother ball of wax! :wink: )

The 'special characters' are because the /etc/localtime file is compiled into a special binary format.. so unfortunately it can't be edited with a standard text-editor.

Edit: try Kanthoney's fix below, first..

Let's try a trick I've 'borrowed' from my ArchLinux installation, and try an end-run around the problem.

We'll rename the existing /etc/localtime file to /etc/localtime.orig so that it can always be reverted to if necessary, then make a symbolic link (named localtime) to the master timezone file in /usr/share/zoneinfo/America/Rainy_River

Enter or copy/paste the following lines, one at a time, into a terminal:

Code: Select all

cd /etc

sudo mv localtime localtime.orig

sudo ln -s /usr/share/zoneinfo/America/Rainy_River localtime
Try that, then re-run or re-install 1.77.1 (from the above, I'm not quite sure of which version you currently have installed), and let us know how you get on..
Last edited by Diziet Sma on Mon Feb 10, 2014 9:17 am, edited 1 time in total.
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied
User avatar
kanthoney
Commodore
Commodore
Posts: 281
Joined: Thu Nov 07, 2013 10:21 pm

Re: Cannot get v1.77.1 to run in Linux

Post by kanthoney »

Krenn wrote:
/etc/timezone says America/Rainy River
Try America/Rainy_River, with an underscore instead of a space.
User avatar
Diziet Sma
---- E L I T E ----
---- E L I T E ----
Posts: 6311
Joined: Mon Apr 06, 2009 12:20 pm
Location: Aboard the Pitviper S.E. "Blackwidow"

Re: Cannot get v1.77.1 to run in Linux

Post by Diziet Sma »

Well spotted! I looked right at that, and missed it! :oops:
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied
Krenn
Poor
Poor
Posts: 4
Joined: Sun Feb 09, 2014 7:02 am

Re: Cannot get v1.77.1 to run in Linux

Post by Krenn »

OK, I've been a bit busy so I haven't had time to work on this until tonight. I booted & started the game, and it appears to be working fine now. The last thing I did was run the process that Terminal said to use when I tried to run tzconfig, but I never rebooted after doing that. I gues that's what was needed...

Weird...

Thanks again to you both for your help!

Oh, and when I said 'moved', I did mean 'copied' :D
Post Reply