RUNNING WITH RIFLES
http://www.runningwithrifles.com/phpBB3/

Running on Ubuntu 12.04
http://www.runningwithrifles.com/phpBB3/viewtopic.php?f=5&t=996
Page 1 of 1

Author:  Distraction [ Mon Feb 11, 2013 11:06 pm ]
Post subject:  Running on Ubuntu 12.04

Hi, sorry if this question has been asked before, I couldn't find any topics asking the same question.

When I run the 'launch_game' script I get the error:
"error while loading shared libraries: libXpm.so.4: cannot open shared object file: No such file or directory"

I have also installed all the libraries that the readme suggests.

If it helps, I'm trying to run the launch_game script from the terminal.

Am I doing something obviously wrong? Getting the game to run on Ubuntu isn't essential as I have a Windows partition anyway, but I'm just confused as to why it doesn't work.

Author:  blazesboylan [ Mon Feb 11, 2013 11:24 pm ]
Post subject:  Re: Running on Ubuntu 12.04

Odd... libXpm is a part of standard X Windows, the basic windowing environment for *nix (on top of which you can tailor the windowing system by using Gnome / KDE / etc). LibXpm should be on every Ubuntu desktop in the universe, unless maybe you're running on a server or something...

Is there a file /usr/lib/libXpm.so.4 on your system? If so then maybe it's just some kind of load library path problem.

Author:  pasik [ Mon Feb 11, 2013 11:36 pm ]
Post subject:  Re: Running on Ubuntu 12.04

Is your Ubuntu 64bit or 32bit?

Author:  Distraction [ Tue Feb 12, 2013 10:04 am ]
Post subject:  Re: Running on Ubuntu 12.04

I can't find 'Libxpm.so.4' in usr/lib. There are several other 'Libx...' libraries but not that one specifically.

Is it possible to just install it seperately via apt-get or soemthing? Sorry I'm still fairly new to Linux.

Oh and my Ubuntu is 64 bit.

Author:  Distraction [ Tue Feb 12, 2013 10:31 am ]
Post subject:  Re: Running on Ubuntu 12.04

Nevermind, I found it eventually inside usr/lib/x86_64-linux-gnu. So RwR is only searching within usr/ib right?

Ubuntu won't let me copy and paste libxpm to the parent folder though.

Author:  pasik [ Tue Feb 12, 2013 1:58 pm ]
Post subject:  Re: Running on Ubuntu 12.04

To make it possible to find by RWR, you could try copying the .so file to RWR's folder, specifically lib-subfolder there.

Author:  Distraction [ Tue Feb 12, 2013 7:14 pm ]
Post subject:  Re: Running on Ubuntu 12.04

Tried that too but now I just get: "error while loading shared libraries: libXpm.so.4: wrong ELF class: ELFCLASS64"

I did find this article on a similar issue with Linux steam:
http://askubuntu.com/questions/216367/s ... ass-elfcla

Is there something similar I can do with RwR? I noticed the launch.game.sh script has a similar reference to a library directory.
Or is it just that the library is 64bit while the game needs a 32 bit one?


Well like I said I can run the game fine under Windows, so in the end it's not a big deal.

Author:  pasik [ Wed Feb 13, 2013 12:48 am ]
Post subject:  Re: Running on Ubuntu 12.04

Yes, that's it, libXpm.so.4 now found by RWR on your system is 64-bit, but it needs to be 32-bit.

As a Ubuntu 12 user, you should be able to install 32-bit libs by e.g. apt-get install libXpm4:i386. If you do that, you need to then obviously remove the copied libXpm.so.4 from the lib-subfolder under RWR.

Author:  Distraction [ Wed Feb 13, 2013 10:44 am ]
Post subject:  Re: Running on Ubuntu 12.04

Awesome, the game is working fine now. Thanks a lot for the help.

I do most of my work on Ubuntu so it's nice to have something to alt-tab to every now and then.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/