Installing GNU Compiler57
/usr/lib/qt-2.3.0/lib
/usr/lib/mysql
/usr/lib/qt-1.45/lib
After editing this file, execute the
ldconfig
program, which will configure dynamic
linker binding. You can use the –
v
command line option to get more information when you run
this command. Note that the order of commands is important.
The next step is to setup the
LD_LIBRARY_PATH
variable. You can do this by adding the
following line at the end of
/etc/profile
file so that it is set for all users at login time.
export LD_LIBRARY_PATH=/opt/gcc-3.0.4/lib
Again note that this is the path where new library files are installed. Please note that if you
make these changes, some older programs that are compiled for some other set of shared librar-
ies may not function properly.
3.2.4.3Setting Location of include Files
The default search path for include files can be found by executing the following com-
mand:
[rr@conformix 4]$ gcc -v -E -
Reading specs from /opt/gcc-3.0.4/lib/gcc-lib/i686-pc-linux-
gnu/3.0.4/specs
Configured with: ../gcc-3.0.4/configure --prefix=/opt/gcc-
3.0.4 --enable-threads=posix
Thread model: posix
gcc version 3.0.4
/opt/gcc-3.0.4/lib/gcc-lib/i686-pc-linux-gnu/3.0.4/cpp0 -
lang-c -v -D__GNUC__=3 -D__GNUC_MINOR__=0 -
D__GNUC_PATCHLEVEL__=4 -D__ELF__ -Dunix -Dlinux -D__ELF__ -
D__unix__ -D__linux__ -D__unix -D__linux -Asystem=posix -
D__NO_INLINE__ -D__STDC_HOSTED__=1 -Acpu=i386 -Amachine=i386 -
Di386 -D__i386 -D__i386__ -D__tune_i686__ -
D__tune_pentiumpro__ -
GNU CPP version 3.0.4 (cpplib) (i386 Linux/ELF)
ignoring nonexistent directory "/opt/gcc-3.0.4/i686-pc-linux-
gnu/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include
/opt/gcc-3.0.4/include
/opt/gcc-3.0.4/lib/gcc-lib/i686-pc-linux-gnu/3.0.4/include
/usr/include
End of search list.
The last part of the output shows that include files will be searched in the following direc-
tories by default.
/usr/local/include