TORCS Installation

Unpacking Source Packages

If you didn't download a certain optional package, simply skip the command. Still as root do:

# cd /usr/src/torcs
# tar xfvz /path_to_downloaded_files/TORCS-1.2.4-src.tgz
# tar xfvz /path_to_downloaded_files/TORCS-1.2.4-src-robots-base.tgz
# tar xfvz /path_to_downloaded_files/TORCS-1.2.4-src-robots-berniw.tgz
# tar xfvz /path_to_downloaded_files/TORCS-1.2.4-src-robots-bt.tgz
# tar xfvz /path_to_downloaded_files/TORCS-1.2.4-src-robots-olethros.tgz

Building TORCS

So, fasten your seatbelts... we will run the configure script:

# cd /usr/src/torcs/torcs-1.2.4
# ./configure

Optionally you can pass --enable-debug (to build a debug version) and/or --without-xrandr (does not use xrandr extension) as argument to configure. If there are any problems reported, you have to resolve them now. Remember the config.log file which contains detailed information. If you get stuck, don't hesitate and mail to the torcs-users mailing list. Now start building:

# make >& error.log

When compiling is done, we check the error.log for... errors, yep. TORCS doesn't stop on compile errors, so you have to be careful. You can search the file for the string "error", if there is no hit, everything is fine. Because configure checkes very well there will be most often no errors, which is good, or quite bizare errors, which is not so good. In case you have SuSE 7.3 and upgraded to XFree86 4.2.0 from SuSE, you have a library in two versions, which will cause a linking error against GLU. Simply delete the file /usr/X11R6/lib/libGLU.a (the right version is in /usr/lib). This is rather strange, because it's a static library.

Installing TORCS

If everything worked fine till now, you can relax, the hard part is over. Run the following commands to install TORCS and unpack the data.

# make install
# cd /usr/local/share/games/torcs
# tar xfvz /path_to_downloaded_files/TORCS-1.2.4-data.tgz
# tar xfvz /path_to_downloaded_files/TORCS-1.2.4-data-tracks-road.tgz
# tar xfvz /path_to_downloaded_files/TORCS-1.2.4-data-tracks-dirt.tgz
# tar xfvz /path_to_downloaded_files/TORCS-1.2.4-data-tracks-oval.tgz
# tar xfvz /path_to_downloaded_files/TORCS-1.2.4-data-cars-extra.tgz
# tar xfvz /path_to_downloaded_files/TORCS-1.2.4-data-cars-nascar.tgz
# tar xfvz /path_to_downloaded_files/TORCS-1.2.4-data-cars-Patwo-Design.tgz
# tar xfvz /path_to_downloaded_files/TORCS-1.2.4-data-cars-kcendra-gt.tgz
# tar xfvz /path_to_downloaded_files/TORCS-1.2.4-data-cars-kcendra-roadsters.tgz
# tar xfvz /path_to_downloaded_files/TORCS-1.2.4-data-cars-kcendra-sport.tgz
# tar xfvz /path_to_downloaded_files/TORCS-1.2.4-data-cars-VM.tgz