Error running freeorion

Questions, problems and discussion about compiling FreeOrion.

Moderator: Oberlus

Post Reply
Message
Author
alex5161
Space Krill
Posts: 3
Joined: Mon Nov 03, 2014 8:18 pm

Error running freeorion

#1 Post by alex5161 »

I somewhat managed to install freeorion on Ubuntu 13.10 (I cannot recreate the exact way, I tried different directions).

But now when I call freeorion I get the following error message:

Code: Select all

/usr/local/freeorion/bin/freeorion.elf: error while loading shared libraries: libXaw.so.7: cannot open shared object file: No such file or directory
Looks like a library is mising, but trying to install it with

Code: Select all

sudo apt-get install libXaw
did not work:

Code: Select all

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package libXaw
And libxaw7 seems to be already installed on the system.

Any idea how to fix this problem?

Mitten.O
Programmer
Posts: 255
Joined: Sun Apr 06, 2014 4:15 pm

Re: Error running freeorion

#2 Post by Mitten.O »

Here are a couple of commands that may provide you with relevant information:

dpkg -S libXaw.so.7
That should tell you which package, if any, provides that file. For me on Ubuntu 14.04 it says:
libxaw7:amd64: /usr/lib/x86_64-linux-gnu/libXaw.so.7

ldd freeorion | grep Xaw
Ldd finds the libraries a binary uses and the grep filters all but Xaw. For me this returns:
libXaw.so.7 => /usr/lib/x86_64-linux-gnu/libXaw.so.7 (0x00007f530c5d8000)
Any code by me in this post is released under GPL 2.0 or later.

User avatar
Dilvish
AI Lead and Programmer Emeritus
Posts: 4768
Joined: Sat Sep 22, 2012 6:25 pm

Re: Error running freeorion

#3 Post by Dilvish »

I'm running 13.10 myself. Following Mitten.O's suggestions, I get essentially the same output he shows. Checking what apt-get thinks of libXaw, I get the same as you. So apparently the check for libXaw is picky about the version-- what works for me is

Code: Select all

sudo apt-get install libXaw7
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libxaw7 is already the newest version.
alex5161 wrote:And libxaw7 seems to be already installed on the system.
What makes you say that? What you've shown so far seems to suggest otherwise.
If I provided any code, scripts or other content here, it's released under GPL 2.0 and CC-BY-SA 3.0

Post Reply