If you are still stuck with configuration problems

After receiving a emails from some Tao users who had run into problems with the configure script I decided to write a shell script as and aid to testing for installed libraries, their locations, and whether or not the executables dependent on those libraries would be able to find them. This shell script is located in the top level directory of the distribution and is called diagnose-lib.

Typing diagnose-lib without any arguments prints out the following usage message:

    Usage: diagnose-lib <libname>
    Diagnose problems in finding shared libraries during
    configuration of Tao

    <libname> can be one of the following:
    'gl', 'GL', 'glu', 'GLU', 'glut' or 'audiofile'. 

So, for example, if the configure script claims that you don't have any OpenGL libraries installed but you are convinced that you do, type:

    ./diagnose-lib gl
to check for the GL library or
    ./diagnose-lib glu
for the GLU library.

The diagnose-lib script will respond with information about whether it can find a library of the right name, where that library is installed and whether the executables which depend on that library will be able to find it. It does so by searching obvious locations such as /usr/lib, /usr/local/lib first and then searches the directory tree rooted at your home directory. If it fails to find the library it will abort and let you know.

If on the other hand it does find a suitable candidate it then checks to see whether either the file /etc/ld.so.conf or the environment variable LD_LIBRARY_PATH contain the appropriate path to find this file. These are the two principal mechanisms by which your system locates shared objects or dynamic link libraries at run time.

If neither contain the path to this file a suitable message is printed out and suggestions for solving the problem are given.

If you find that you are still having problems after following any advice given by the diagnose-lib script then please feel free to email me at m.pearson@ukonline.co.uk. I will try to help out where I can.


©1999,2000 Mark Pearson m.pearson@ukonline.co.uk April 30, 2000