56Chapter3 • Compilers and Assemblers
/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.
as --traditional-format -V -Qy -o /tmp/ccn7wLgw.o /tmp/
ccJsUmYa.s
GNU assembler version 2.10.91 (i386-redhat-linux) using BFD
version 2.10.91.0.2
/opt/gcc-3.0.4/lib/gcc-lib/i686-pc-linux-gnu/3.0.4/collect2 -
m elf_i386 -dynamic-linker /lib/ld-linux.so.2 /usr/lib/crt1.o
/usr/lib/crti.o /opt/gcc-3.0.4/lib/gcc-lib/i686-pc-linux-gnu/
3.0.4/crtbegin.o -L/opt/gcc-3.0.4/lib/gcc-lib/i686-pc-linux-
gnu/3.0.4 -L/opt/gcc-3.0.4/lib/gcc-lib/i686-pc-linux-gnu/
3.0.4/../../.. /tmp/ccn7wLgw.o -lgcc -lc -lgcc /opt/gcc-3.0.4/
lib/gcc-lib/i686-pc-linux-gnu/3.0.4/crtend.o /usr/lib/crtn.o
[rr@conformix 4]$
If you examine the output of this command, you can find out which helper programs
gcc
uses and what command line switches are passed to these programs.
3.2.4Post-Installation Tasks
There are a few tasks that you need to carry out after the installation process of the compilers.
3.2.4.1Setting PATH Variable
This is the first important task. Your
PATH
variable must include the directory where GCC
binaries are installed. We have installed these in
/opt/gcc-3.0.4/bin
directory because
we used
/opt/gcc-3.0.4
as the prefix while running the
configure
script. This directory
should come before the directories where the old compiler is installed. A typical command to do
this in bash or other POSIX-compliant shells to include our installation location is as follows:
export PATH=/opt/gcc-3.0.4/bin:$PATH
where
/opt/gcc-3.0.4/bin
is the path to newly installed compilers.
It is also extremely important that you make sure the GCC in the path is the correct one.
The '
which gcc
' command will provide this.
3.2.4.2Setting the Location of Libraries
There are two steps to set up the location of libraries. First edit
/etc/ld/so.config
and add the path of any newly created libraries. This directory is
/opt/gcc-3.0.4/lib
because we used –
prefix=/opt/gcc-3.0.4
while building the compiler. Typical contents
of this file after adding the new directory are as follows:
/opt/gcc-3.0.4/lib
/usr/lib
/usr/kerberos/lib
/usr/X11R6/lib
/usr/lib/sane
Next Page >>
<< Previous Page
Back to the Table of Contents