TORCS Software Requirements
Author: Bernhard Wymann
Description: requirements
Keywords: torcs, requirements, berniw, bernhard wymann

# TORCS Requirements ## Software ### Introduction You need a working OpenGL/DRI driver, development tools and some additional libraries. Most often you can go into your Linux distribution setup and simply click something like "development machine" and all necessary tools will be installed. You need gcc, header files for OpenGL, GLUT, GLU, XFree86 and libc. OpenGL driver setup is most often supported by the distribution, consult the documentation. Below we will check if the basic requirements are fullfilled. If you have already compiled OpenGL applications and you are sure your hardware is set up correct, skip the rest of this page. ### Checking OpenGL/DRI Start your XFree86 (if not already done), open a terminal and run as normal user (the $ means the prompt of a normal user, # the prompt of root). `$ glxinfo | grep direct` The result should look like this: `direct rendering: Yes` If that's not the case you have to check your OpenGL setup. ### Checking GLUT For rpm based distributions, run the following command (we run a query over the whole package database): `$ rpm -qa | grep glut` The result should look something like this (this depends on the package names): `mesaglut-3.4.2-42 mesaglut-devel-3.4.2-42` If the result lists nothing you have to install GLUT. Use the tool provided from your distribution. Make sure that you also install glut.h. If just one package shows up, you can list the package content and search for glut.h: `$ rpm -ql NAME | grep glut.h` where NAME means in the above example mesaglut or mesaglut-devel, without version numbers. If nothing shows up, glut.h is not installed, so search your distribution and install it. ### Checking Libpng For rpm based distributions, run the following command: `$ rpm -qa | grep png` The result should look something like this (this depends on the package names): `libpng-2.1.0.12-153` If the result lists nothing you have to install libpng with header files (eg. png.h).