LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Complete newbie runs into problems during the ./configure stage of installing a game (https://www.linuxquestions.org/questions/linux-newbie-8/complete-newbie-runs-into-problems-during-the-configure-stage-of-installing-a-game-427918/)

Robin6 03-24-2006 02:14 AM

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? :confused: 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

timmeke 03-24-2006 02:33 AM

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.

Komakino 03-24-2006 02:41 AM

You're missing basically the entire development set. Go back to your install disc and install the development tools.

Robin6 03-24-2006 10:43 PM

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

Tanc 03-25-2006 03:20 AM

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.

Harmaa Kettu 03-25-2006 04:19 AM

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.

Komakino 03-25-2006 05:22 AM

Your latest error looks like you don't have the X headers installed. Probably called X-header or X-devel or something like that.

Robin6 03-26-2006 01:40 AM

Hello!

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

Robin6


All times are GMT -5. The time now is 03:53 AM.