News:

The Forum Rules and Guidelines
Our forum has Rules and Guidelines. Please, be kind and read them ;).

Request: Ubuntu install instructions for manual download, nightly, and pak128.

Started by benjad, February 18, 2012, 03:03:06 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

benjad

Hi all. Long time player...

Recently switched OS to Ubuntu 11.10.  Been searching around for the correct way to manual install and launch simutrans (including nightly, and pak128)... but all the related posts are 'fixing' problems that others have encountered.  The repositories are a few versions behind. 

Could someone knowledgeable on this topic write a clear, step by step, instructions.  Pretty please. 

Vonjo

It is usually pretty same like in Windows, isn't it? Download, extract, and launch simutrans. Depending on your configuration, you can even just double click simutrans executable to launch it.
You can post some question if you have problem with it. :)

benjad

No, it isn't.

I have been able to run using the package manager version (which has 110. version, pak64, and pak128britan),

but have not been able to figure out how to pull down a nightly and execute it.  (Yes, even when marked as executable, won't launch, nor display any sort of error).  Further, all searches on the topic go to very specific questions on 'how to do XYZ'.  We could use a general. "Here are the steps to follow" to run a nightly outside of the package manager in the home directory.

Vonjo

Then you should do "the terminal way"...

       
  • change directory to simutrans directory. For example, if you extract simutrans to your home folder : cd ~/simutrans
  • Run it : ./simutrans
You should get an error from there if it doesn't work.


benjad

That is exactally what I am doing.  You may also need to make simtrans executable.

It fails,no error in terminal, or popup of any kind.  Suspect I might not have a certain library installed, but nit sure what. Ubuntu 11.10 64 bit trying the 111.0 executable.

Vonjo

Hmmm, weird if you dont get any error at all...

Simutrans should run with default Ubuntu installation. You need 64 bit Simutrans executable. However there is no official 64 bit stable binary release for any platform.
64 bit nightly binary releases are available. For example the latest stable release (111.1) is r5115, than you can download that from nightly server. You can treat that as stable release.
If you want to run the official stable 32 bit executable, you need to install some 32 bit library. But I am not sure what libraries needed.

VS

Huh. Not  an Ubuntu man myself, but... SDL and SDL_mixer would be probably needed, but they are everywhere. Maybe there is some black magic with paths, so try single user mode. And of course there is the eternal source of problems, MIDI - try disabling it at command line.

benjad

Yup. That seems to have been the issue.  The 111.x is 32 bit.  The nightly has a 64 bit executable, and it works.

Next step, figure out how to get 32 bt executable working so can join network games. 

If I figure this all out, will put the step by step together myself.

Dwachs

Quote from: benjad on February 18, 2012, 07:27:20 PM
Next step, figure out how to get 32 bt executable working so can join network games. 
32 or 64 bit should not matter when joining network games.

Try to execute 'ldd simutrans' to show what libraries are missing (the ldd command shows you, which libraries a program needs and which it can find). I guess the 32 bit versions of some libraries are missing on your 64bit system.

benjad

For some reason ldd simutrans comes back "not a dynamic executable"   yup, that would have been too easy, right.

Vonjo

Thanks, Dwachs. How can I missed that. ;D

My Ubuntu 11.10 64 bit with 32 bit Simutrans.
$ ldd ./simutrans
   linux-gate.so.1 =>  (0xf77c2000)
   libz.so.1 => not found
   libbz2.so.1.0 => not found
   libSDL-1.2.so.0 => not found
   libstdc++.so.6 => not found
   libm.so.6 => /lib32/libm.so.6 (0xf7786000)
   libgcc_s.so.1 => /usr/lib32/libgcc_s.so.1 (0xf7767000)
   libc.so.6 => /lib32/libc.so.6 (0xf75ed000)
   libpthread.so.0 => /lib32/libpthread.so.0 (0xf75d2000)
   /lib/ld-linux.so.2 (0xf77c3000)


You don't need to install anything to run 32 bit on 32 bit, or 64 bit on 64 bit.

cheesehead

On Ubuntu, I simply keep the original packaged version installed but unused. That handles dependencies.

Then manually install the updated version to a separate location (do not overwrite the packaged version).

Then, depending on your Desktop Environment, build your custom shortcut or launcher to the update.

This would be a whole lot easier if a couple of us Ubuntu users would get together, join the Ubuntu Backports Team (to get Repo access), and simply backport new releases right away. Then we could all just use the package manager for the latest. Anyone else interested?

Network games using the 110.0.1 version in Ubuntu 11.10 is affected by https://bugs.launchpad.net/ubuntu/+source/simutrans/+bug/931181 . If any Ubuntu 11.10 user could confirm the bug (or tell me what I'm doing wrong), I would be most appreciative.

Dwachs

Quote from: cheesehead on February 18, 2012, 08:26:12 PM
Network games using the 110.0.1 version in Ubuntu 11.10 is affected by https://bugs.launchpad.net/ubuntu/+source/simutrans/+bug/931181 . If any Ubuntu 11.10 user could confirm the bug (or tell me what I'm doing wrong), I would be most appreciative.
The screenshot says that server and client run different version of the pak64 pakset. Paksets must be identic on both server and client.

benjad

Using synaptic, I just loaded:

ia32-libs
id32-libs-multiarch:1386

Now the stables are running.   ldd is also able to analyze it now... funny.

111.0
~/simutrans$ ldd simutrans
    linux-gate.so.1 =>  (0xf77ad000)
    libz.so.1 => /usr/lib32/libz.so.1 (0xf7777000)
    libbz2.so.1.0 => /usr/lib32/libbz2.so.1.0 (0xf7766000)
    libSDL-1.2.so.0 => /usr/lib32/libSDL-1.2.so.0 (0xf76cb000)
    libSDL_mixer-1.2.so.0 => /usr/lib32/libSDL_mixer-1.2.so.0 (0xf766f000)
    libstdc++.so.6 => /usr/lib32/libstdc++.so.6 (0xf7584000)
    libm.so.6 => /lib32/libm.so.6 (0xf755a000)
    libgcc_s.so.1 => /usr/lib32/libgcc_s.so.1 (0xf753c000)
    libc.so.6 => /lib32/libc.so.6 (0xf73c1000)
    libdl.so.2 => /lib32/libdl.so.2 (0xf73bc000)
    libpulse-simple.so.0 => /usr/lib32/libpulse-simple.so.0 (0xf73b7000)
    libpulse.so.0 => /usr/lib32/libpulse.so.0 (0xf7369000)
    libpthread.so.0 => /lib32/libpthread.so.0 (0xf734e000)
    libmikmod.so.2 => /usr/lib32/libmikmod.so.2 (0xf72fd000)
    libvorbisfile.so.3 => /usr/lib32/libvorbisfile.so.3 (0xf72f3000)
    libsmpeg-0.4.so.0 => /usr/lib32/libsmpeg-0.4.so.0 (0xf729f000)
    /lib/ld-linux.so.2 (0xf77ae000)
    libpulsecommon-1.0.so => /usr/lib32/libpulsecommon-1.0.so (0xf723a000)
    libjson.so.0 => /usr/lib32/libjson.so.0 (0xf7232000)
    libdbus-1.so.3 => /lib32/libdbus-1.so.3 (0xf71e8000)
    libvorbis.so.0 => /usr/lib32/libvorbis.so.0 (0xf71bd000)
    libogg.so.0 => /usr/lib32/libogg.so.0 (0xf71b5000)
    libxcb.so.1 => /usr/lib32/libxcb.so.1 (0xf7196000)
    libwrap.so.0 => /lib32/libwrap.so.0 (0xf718c000)
    libsndfile.so.1 => /usr/lib32/libsndfile.so.1 (0xf711a000)
    libasyncns.so.0 => /usr/lib32/libasyncns.so.0 (0xf7113000)
    librt.so.1 => /lib32/librt.so.1 (0xf710a000)
    libXau.so.6 => /usr/lib32/libXau.so.6 (0xf7106000)
    libXdmcp.so.6 => /usr/lib32/libXdmcp.so.6 (0xf70ff000)
    libnsl.so.1 => /lib32/libnsl.so.1 (0xf70e5000)
    libFLAC.so.8 => /usr/lib32/libFLAC.so.8 (0xf7097000)
    libvorbisenc.so.2 => /usr/lib32/libvorbisenc.so.2 (0xf6f1f000)
    libresolv.so.2 => /lib32/libresolv.so.2 (0xf6f08000)



benjad

The gcc3 version is still missing one library


ldd sim-gcc3
    linux-gate.so.1 =>  (0xf76fb000)
    libz.so.1 => /usr/lib32/libz.so.1 (0xf76c5000)
    libbz2.so.1 => not found
    libSDL-1.2.so.0 => /usr/lib32/libSDL-1.2.so.0 (0xf762a000)
    libpthread.so.0 => /lib32/libpthread.so.0 (0xf760f000)
    libSDL_mixer-1.2.so.0 => /usr/lib32/libSDL_mixer-1.2.so.0 (0xf75b3000)
    libstdc++.so.6 => /usr/lib32/libstdc++.so.6 (0xf74c8000)
    libm.so.6 => /lib32/libm.so.6 (0xf749e000)
    libgcc_s.so.1 => /usr/lib32/libgcc_s.so.1 (0xf747f000)
    libc.so.6 => /lib32/libc.so.6 (0xf7305000)
    libdl.so.2 => /lib32/libdl.so.2 (0xf7300000)
    libpulse-simple.so.0 => /usr/lib32/libpulse-simple.so.0 (0xf72fb000)
    libpulse.so.0 => /usr/lib32/libpulse.so.0 (0xf72ad000)
    /lib/ld-linux.so.2 (0xf76fc000)
    libmikmod.so.2 => /usr/lib32/libmikmod.so.2 (0xf725c000)
    libvorbisfile.so.3 => /usr/lib32/libvorbisfile.so.3 (0xf7252000)
    libsmpeg-0.4.so.0 => /usr/lib32/libsmpeg-0.4.so.0 (0xf71fe000)
    libpulsecommon-1.0.so => /usr/lib32/libpulsecommon-1.0.so (0xf7199000)
    libjson.so.0 => /usr/lib32/libjson.so.0 (0xf7191000)
    libdbus-1.so.3 => /lib32/libdbus-1.so.3 (0xf7147000)
    libvorbis.so.0 => /usr/lib32/libvorbis.so.0 (0xf711c000)
    libogg.so.0 => /usr/lib32/libogg.so.0 (0xf7114000)
    libxcb.so.1 => /usr/lib32/libxcb.so.1 (0xf70f5000)
    libwrap.so.0 => /lib32/libwrap.so.0 (0xf70eb000)
    libsndfile.so.1 => /usr/lib32/libsndfile.so.1 (0xf7079000)
    libasyncns.so.0 => /usr/lib32/libasyncns.so.0 (0xf7072000)
    librt.so.1 => /lib32/librt.so.1 (0xf7069000)
    libXau.so.6 => /usr/lib32/libXau.so.6 (0xf7065000)
    libXdmcp.so.6 => /usr/lib32/libXdmcp.so.6 (0xf705e000)
    libnsl.so.1 => /lib32/libnsl.so.1 (0xf7044000)
    libFLAC.so.8 => /usr/lib32/libFLAC.so.8 (0xf6ff6000)
    libvorbisenc.so.2 => /usr/lib32/libvorbisenc.so.2 (0xf6e7e000)
    libresolv.so.2 => /lib32/libresolv.so.2 (0xf6e67000)