How can I install Linux Tycoon?

Hi guys, I hope you are having a nice day. I have this problem installing Bryan Lunduke’s Linux Tycoon. I have downloaded the tarball and untarred it, but I cannot make the executable, well, execute itself. I have tried with ./configure, ./LinuxTycoon (which required me to install a GTK library, but even after installing nothing works)… all to no avail.

So please Geekos, I would be very grateful if you could help this n00b.

You only need to run ./configure if you want to compile the source code.
The page states that the source is available under the GPL, but I don’t see a download anywhere so I suppose you didn’t download it either, right?
I guess you have just the binary.

./LinuxTycoon (which required me to install a GTK library, but even after installing nothing works)… all to no avail.

And what message do you get when you run it in a terminal window?

As this looks quite old and there is only a general Linux download, I suppose this is a 32bit application.
So most likely you miss some 32bit library.
Since you mentioned “which required me to install a GTK library”, this might be libgtk-2_0-0-32bit, but maybe it is still using gtk1 even?

Well, post the message, this should tell without having to guess. :wink:

Here you are:

./LinuxTycoon: error while loading shared libraries: libgthread-2.0.so.0: cannot open shared object file: No such file or directory


After installing it using zypper I tried again ./LinuxTycoon and this was the result:

(LinuxTycoon:17767): Gtk-WARNING **: Unable to locate theme engine in module_path: "oxygen-gtk",

(LinuxTycoon:17767): Gtk-WARNING **: Unable to locate theme engine in module_path: "oxygen-gtk",

(LinuxTycoon:17767): GLib-CRITICAL **: g_hash_table_insert_internal: assertion 'hash_table != NULL' failed
Segmentation fault


Well, libgthread-2.0.so.0 is part of the package…
Hm…

Tada: libgthread-2_0-0 of course! :wink:

You might have to install the 32bit version though as mentioned earlier (libgthread-2_0-0-32bit). I doubt that libgthread-2_0-0 is not installed on your system, as it is quite vital.

Btw, this has nothing to do with Gtk really (although it is also provided by the Gtk team).
From “rpm -qi libgthread-2_0-0”:

Summary     : General-Purpose Utility Library -- Library for Threads

Description :
GLib is a general-purpose utility library, which provides many useful
data types, macros, type conversions, string utilities, file utilities,
a main loop abstraction, and so on.


The libgthread library provides a portable way to write multi-threaded
software.

I installed it and then modified the post since I had these other problems>

(LinuxTycoon:17767): Gtk-WARNING **: Unable to locate theme engine in module_path: "oxygen-gtk",

(LinuxTycoon:17767): Gtk-WARNING **: Unable to locate theme engine in module_path: "oxygen-gtk",

(LinuxTycoon:17767): GLib-CRITICAL **: g_hash_table_insert_internal: assertion 'hash_table != NULL' failed
Segmentation fault


This means that you don’t have “gtk2-engine-oxygen-32bit” installed I suppose.
Either install it or configure a different Gtk2 theme. (I guess it uses Gtk2)

But I’m not sure whether the segmentation fault is caused by this.

This is what I got:

~/Downloads/LinuxTycoon$ sudo zypper install oxygen-gtk
root's password:
Loading repository data...
Reading installed packages...
'oxygen-gtk' not found in package names. Trying capabilities.
'gtk2-theme-oxygen' providing 'oxygen-gtk' is already installed.                              
Resolving package dependencies...                                                             
                                                                                              
Nothing to do.                                                        

Well, it crashes here as well, somewhere in libpixman.

I suppose that it’s just not compatible with current libraries, not much doable about that without the source code, sorry.

Maybe run the DOS version in dosbox? :wink:

You need to install “gtk2-engine-oxygen-32bit” (this is what I wrote), not “oxygen-gtk”.
But this doesn’t help anyway as I suspected. See my previous post.

Okay, thank you very much! Maybe we’ll have to ask Bryan Lunduke for an RPM repackaging, he’s a SUSE spokesman after all!

PS: I found the source code here:
https://github.com/BryanLunduke/Linux-Tycoon
(this seems to be a newer version though)

Maybe this works when it is compiled on openSUSE 13.1?

I will try and maybe create a package, but it will take some time.

Thank you so much! I will try to compile it and if it doesn’t work, I’ll wait for the package, if it could be loaded on Packman that would be awesome.

You rock wolfi323!

Unfortunately this is written in RealBasic apparently.

Not much I can do there at the moment. Sorry.

Would be best to contact the author I suppose.

All right, thanks for your time anyway.

Well, it’s been a while.
But I just spotted that old LinuxTycoon drawer on my desktop and decided to try to run it again OOC (I’m on 13.2 meanwhile).
And guess what?
It just worked… :wink:

So this probably was caused by some bug/incompatibility in 13.1 (maybe gtk). Who knows, maybe it’s fixed there already as well? There has been a gtk2 update in September, I don’t think I tried LinuxTycoon since then (I think I didn’t try at all since May…).