Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi, I want to run the development version of the game Battle for Wesnoth, but I'm having some problems compiling it...
I downloaded the latest version (1.9.1) and followed the installation instructions;
cd /usr/src
sudo tar -xvjf wesnoth-1.9.1.tar.bz2
cd wesnoth-1.9.1
sudo ./configure --datadir=/usr/share/games/wesnoth/
I managed to get to this point, after some small problems, but 'configure' told me I needed SDL.
I installed SDL (libsdl1.2-dev) using the Software Center, but now it sais;
Code:
checking for SDL - version >= 1.2.7 and SDL_ttf - version >= 2.0.8... no
configure: error: *** Please upgrade your SDL and/or SDL_ttf version
The version that was installed seems to be 1.2.14
I also looked for sdl-ttf, and that was also already installed (version 2.0.9)
What would be the best thing to do for me, to get this working?
Thanks, installing libsdl-ttf2.0-dev solved that problem indeed!
After that I had to install libsdl-image-dev, libdsl-mixer-dev and libdsl-net-dev.
After that I got the message;
Code:
checking for Boost headers version >= 1.35... no
configure: error: Could not find Boost headers version >= 1.35
I installed libboost-dev (first using software center, second using apt-get), but the problem persists...
Besides this last problem, I'm getting the feeling I'm doing something wrong...
Is everybody who has to compile this code installing all these lib's one-by-one?
Edit;
O, I needed libboost-all-dev instead of the default libboost-dev.
Now I can continue searching for the other missing lib's...
I'll second the comment about sudo on ./configure - only ever install as root. If that turns out to be the problem I'll mumble mutter grumble... anyway:
http://www.wesnoth.org/forum/viewtopic.php?f=5&t=25247
there are neat discussions about all the different ways this error can appear on the wesnoth forums... seems I should have added the explicit install for libsdl-ttf-dev as well ... that would be:
sudo apt-get install libsdl-ttf2.0-dev
the most common cause of the error is missing dev libs for the main libs.
I've forgotten why I sudoed configure... Maybe it was preventive
But the tar-command I had to sudo, because the installation instructions said to go to /usr/src/ and I didn't have the permissions to make directories there without sudo...
The first time I tried it, I created a directory as root and chmodded it. That's probably a better way to go then?
ANyway, the configure now finally succeeded.
But make gives me;
As far as I know, only kernel source should be in /usr/src. I always compile things in my /home/user directory, /usr/local/src might be a good alternative if you really don't want to use /home to compile things.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.