LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 03-24-2006, 03:14 AM   #1
Robin6
LQ Newbie
 
Registered: Mar 2006
Posts: 3

Rep: Reputation: 0
Complete newbie runs into problems during the ./configure stage of installing a game


Hello Everyone,

Since this is my first post, I thought I ought to explain the extent of my utter newbieness (bear with me, I'll try to keep it short): A few days ago this kid I know was handing out Ubuntu 5.10 CDs, one of which I was the recipient of-- naturally curious (as my family has always used MS Windows) and suitibly impressed with the whole philosophy of GPL and such, I hooked up an old pc which had been gathering dust in our basement, and installed Ubuntu. This was this afternoon, after school.
What I'm getting at here is: I can use Windows XP easily (who can't?) but I haven't got a clue about Linux, despite having spent the past 9½ hours reading manuals, forums, ebooks, and what not.

So, here's the problem: I decided the first thing I would try out was this 'cool game' I found, Tuxracer. I read the Manual and the 'INSTALL' document I found included in Tuxracer. Things seemed to be proceeding smoothly until I got to the 'configure your system' step. I could try and explain what went wrong, but since I don't really understand, it might be more effective to just paste what happened:
-------------------
root@diamond:/home/elizabeth/tuxracer-0.61# CC=c89 CFLAGS=-02 LIBS=-lposix ./configure
loading cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... no
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking host system type... i686-pc-linux-gnuoldld
checking for gcc... c89
checking whether the C compiler (c89 -02 ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
----------------------
I was looking around, and I also tried apt-get install build-essential. This however gave me the error: "Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution)."
When I tried this I got this text, and these errors:

-----------------------
root@diamond:/home/elizabeth/tuxracer-0.61# apt-get -f install
Reading package lists... Done
Building dependency tree... Done
Correcting dependencies... Done
The following extra packages will be installed:
ttf-baekmuk
The following NEW packages will be installed:
ttf-baekmuk
0 upgraded, 1 newly installed, 0 to remove and 71 not upgraded.
1 not fully installed or removed.
Need to get 0B/11.5MB of archives.
After unpacking 28.7MB of additional disk space will be used.
Do you want to continue [Y/n]? y

Preconfiguring packages ...
(Reading database ... 56116 files and directories currently installed.)
Unpacking ttf-baekmuk (from .../ttf-baekmuk_2.2-1ubuntu1_all.deb) ...
dpkg-deb: subprocess paste killed by signal (Broken pipe)
dpkg: error processing /var/cache/apt/archives/ttf-baekmuk_2.2-1ubuntu1_all.deb (--unpack):
short read in buffer_copy (backend dpkg-deb during `./usr/share/fonts/truetype/baekmuk/dotum.ttf')
Errors were encountered while processing:
/var/cache/apt/archives/ttf-baekmuk_2.2-1ubuntu1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
--------------------------

How do you propose I should go about fixing this? And/or, if someone knows and would just tell me about a particularly good beginner's book/tutorial I would greatly appreciate that, too. So, if someone responds to this (in any way, shape, or form, really), thanks a lot!

Robin6
 
Old 03-24-2006, 03:33 AM   #2
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
Quote:
checking whether the C compiler (c89 -02 ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
The ./configure program is trying to see if your compiler works or not.
So you should verify first if you have this "c89" compiler.
For this, use a command like:
Code:
whereis c89
or
Code:
locate c89
If the system can't find a program called c89, then you don't have a compiler with that name.
Either install it, or change the "CC=" option you gave to ./configure to use a different compiler.
"gcc" (GNU C/C++ compiler) is most likely installed, so you might give that a try, for instance.

I'm not really sure about the "CFLAGS=-02" option you specified either. But I don't know the c89 compiler at all, which may explain my lack of understanding of the -02 compiler option.

Quote:
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... missing
You may want to try installing automake.

Quote:
apt-get install build-essential
I'm not familiar with apt-get package manager. But I think you need to specify which package it's supposed to retrieve (and install).
The package "build-essential" may not contain the tuxracer game, only some essential Linux programs.
In any case, the tuxracer game's home page (sourceforge) mentions that it is recommended to compile it from source, rather than installing a binary package. So "apt-get"ing it may not be the best way to start. Try making ./configure work first.
 
Old 03-24-2006, 03:41 AM   #3
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
You're missing basically the entire development set. Go back to your install disc and install the development tools.
 
Old 03-24-2006, 11:43 PM   #4
Robin6
LQ Newbie
 
Registered: Mar 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Hello again,

First of all, thank you so much for your replies!

Okay, so I discovered the 'Synaptic Package Manager' and installed every package I could find relating to the errors I was receiving. Though this got me significantly further along, it unfortunately didn't do the trick. I ended up getting this when I did ./configure:
-------------------------
checking for GL/glx.h... yes
checking whether glx.h defines glXGetProcAddressARB... no
configure: error: Your copy of glx.h is out of date. You can get a more recent copy from the latest Mesa distribution.
--------------------------
So I went there and downloaded MesaLib-6.4.2.tar.gz, MesaDemos-6.4.2.tar.gz, and MesaGLUT-6.4.2.tar.gz, as these appear to belong to the lastest distribution.
I then unpacked them and did 'make' in the top-level directory. A long list of supported system configurations showed up, and I just picked 'make linux-x86'. It compiled nicely for about 10 minutes, and then it gave me this (long) error:
--------------------------
99 -ffast-math drivers/x11/fakeglx.c -o drivers/x11/fakeglx.o
In file included from drivers/x11/fakeglx.c:43:
drivers/x11/glxheader.h:51:35: error: X11/extensions/XShm.h: No such file or directory
In file included from drivers/x11/fakeglx.c:53:
drivers/x11/xmesaP.h:222: error: syntax error before ‘XShmSegmentInfo’
drivers/x11/xmesaP.h:222: warning: no semicolon at end of struct or union
drivers/x11/xmesaP.h:262: error: syntax error before ‘}’ token
drivers/x11/fakeglx.c: In function ‘Fake_glXCreateGLXPixmap’:
drivers/x11/fakeglx.c:1424: error: dereferencing pointer to incomplete type
drivers/x11/fakeglx.c: In function ‘Fake_glXCreateGLXPixmapMESA’:
drivers/x11/fakeglx.c:1450: error: dereferencing pointer to incomplete type
drivers/x11/fakeglx.c: In function ‘Fake_glXCreatePbuffer’:
drivers/x11/fakeglx.c:2103: error: dereferencing pointer to incomplete type
drivers/x11/fakeglx.c: In function ‘Fake_glXQueryDrawable’:
drivers/x11/fakeglx.c:2129: error: dereferencing pointer to incomplete type
drivers/x11/fakeglx.c:2132: error: dereferencing pointer to incomplete type
drivers/x11/fakeglx.c:2138: error: dereferencing pointer to incomplete type
drivers/x11/fakeglx.c:2138: error: dereferencing pointer to incomplete type
drivers/x11/fakeglx.c:2141: error: dereferencing pointer to incomplete type
drivers/x11/fakeglx.c: In function ‘Fake_glXSelectEvent’:
drivers/x11/fakeglx.c:2220: error: dereferencing pointer to incomplete type
drivers/x11/fakeglx.c: In function ‘Fake_glXGetSelectedEvent’:
drivers/x11/fakeglx.c:2230: error: dereferencing pointer to incomplete type
drivers/x11/fakeglx.c: In function ‘Fake_glXCreateGLXPixmapWithConfigSGIX’:
drivers/x11/fakeglx.c:2366: error: dereferencing pointer to incomplete type
drivers/x11/fakeglx.c: In function ‘Fake_glXCreateGLXPbufferSGIX’:
drivers/x11/fakeglx.c:2460: error: dereferencing pointer to incomplete type
drivers/x11/fakeglx.c: In function ‘Fake_glXQueryGLXPbufferSGIX’:
drivers/x11/fakeglx.c:2489: error: dereferencing pointer to incomplete type
drivers/x11/fakeglx.c:2489: error: dereferencing pointer to incomplete type
drivers/x11/fakeglx.c:2492: error: dereferencing pointer to incomplete type
drivers/x11/fakeglx.c:2495: error: dereferencing pointer to incomplete type
drivers/x11/fakeglx.c: In function ‘Fake_glXSelectEventSGIX’:
drivers/x11/fakeglx.c:2513: error: dereferencing pointer to incomplete type
drivers/x11/fakeglx.c: In function ‘Fake_glXGetSelectedEventSGIX’:
drivers/x11/fakeglx.c:2523: error: dereferencing pointer to incomplete type
make[4]: *** [drivers/x11/fakeglx.o] Error 1
make[4]: Leaving directory `/home/elizabeth/Mesa-6.4.2/src/mesa'
make[3]: *** [default] Error 2
make[3]: Leaving directory `/home/elizabeth/Mesa-6.4.2/src/mesa'
make[2]: *** [subdirs] Error 1
make[2]: Leaving directory `/home/elizabeth/Mesa-6.4.2/src'
make[1]: *** [default] Error 1
make[1]: Leaving directory `/home/elizabeth/Mesa-6.4.2'
make: *** [linux-x86] Error 2
----------------------------
I'm really confused about what to do, now. (So many errors, so little time! )
About all I've managed to glean from that message is: something to do with drivers... Is that even close?

If someone could/would help me a little, I'd be extremely grateful.

Thanks a lot,
Robin6
 
Old 03-25-2006, 04:20 AM   #5
Tanc
Member
 
Registered: Sep 2003
Location: France
Distribution: Debian etch
Posts: 99

Rep: Reputation: 15
Hi robin,
Why aren't you using synaptic to install tuxracer directly ?
I'm not sure this game is still developped but i'm sure you'll find a package somewhere.
Game should be called planetpenguin-racer as far as i know and Synaptic will install all the necessary dependencies for you.
 
Old 03-25-2006, 05:19 AM   #6
Harmaa Kettu
Member
 
Registered: Apr 2005
Location: Finland
Posts: 196

Rep: Reputation: 30
Quote:
tuxracer game's home page (sourceforge) mentions that it is recommended to compile it from source
After that it says: "However, you may already use a distribution that includes Tux Racer binaries, so check to see if your distribution includes Tux Racer packages." It looks like there have been binaries available from the site but they have been removed because of problems with some RPM-based distros and the recommendation is to not use those binaries.

Quote:
configure: error: Your copy of glx.h is out of date. You can get a more recent copy from the latest Mesa distribution.
Heh, more likely it is too new. The last tuxracer release is over 5 years old.

I guess you haven't read the Ubuntu Documentation yet. In the Games section of the Start Guide , there are step-by-step instructions for installing planetpenguin-racer, which is a new project based on tuxracer. The Debian tutorial may also be useful, as Ubuntu is based on Debian.
 
Old 03-25-2006, 06:22 AM   #7
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
Your latest error looks like you don't have the X headers installed. Probably called X-header or X-devel or something like that.
 
Old 03-26-2006, 02:40 AM   #8
Robin6
LQ Newbie
 
Registered: Mar 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Hello!

I got planetpenguin-racer to work, no problem!
Thanks so much, you have all been really helpful.
(I'll probably be back again--though I'll try to avoid bugging you!)

Robin6
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Complete Linux Newbie, Need Detailed Instructions For Problems srparke Linspire/Freespire 8 03-19-2005 02:08 AM
Most Java runs fine, one game is slow Brain Drop Linux - Software 0 08-10-2004 11:10 AM
problems with installing a game on linux 19sebastian82 Linux - Games 6 02-20-2004 03:14 PM
A Complete newbie to linux and having probs installing modem driver :'( XDR Linux - Hardware 2 09-25-2003 05:22 PM
Installing Slackware... how? (complete newbie) zsejk Slackware 12 04-19-2003 01:12 AM


All times are GMT -5. The time now is 01:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration