How to use gcc command
Brian D. McGrew
brian at visionpro.com
Mon Jun 20 15:35:19 UTC 2005
You'll need the gcc-*.rpm files installed. You've got quite a lot of
supporting stuff installed but I don't see a package that would include
the compilers. To verify this, do:
Find /usr -name 'gcc' -print
And see if gcc is found, I bet it isn't. If it is (or once you get the
correct RPM installed) make sure the directory where it's found is in
your PATH. Also make sure that your LD_LIBRARY_PATH includes the lib
directory.
So for instance on a standard system, gcc in in /usr so your path should
be:
PATH=$PATH:/usr/bin export PATH
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib export LD_LIBRARY_PATH
On my system I keep gcc in /usr/local/gnu/gcc-400 so my stuff is:
PATH=$PATH=/usr/local/gnu/gcc-400/bin export PATH
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/gcc/gcc-400/lib export
LD_LIBRARYPATH
That should get you going.
-brian
Brian D. McGrew { brian at visionpro.com || brian at doubledimension.com }
---
> YOU! Off my planet!
-----Original Message-----
From: redhat-list-bounces at redhat.com
[mailto:redhat-list-bounces at redhat.com] On Behalf Of redhat-list
Sent: Monday, June 20, 2005 7:32 AM
To: redhat-list at redhat.com
Subject: How to use gcc command
Hi all:
I want to use gcc command to compile a C program. My OS is
fedora
3. I download and installed following rpms successfully. But when I use
gcc
xxx.c the OS prompt "-bash: gcc: command not found". Any idea why this
could
happen?
Thanks for any idea.
binutils-2.15.92.0.2-5.i386.rpm
cpp-3.4.3-22.fc3.i386.rpm
gcc4-4.0.0-0.41.fc3.i386.rpm
glibc-2.3.3-74.i386.rpm
glibc-common-2.3.3-74.i386.rpm
glibc-devel-2.3.3-74.i386.rpm
glibc-headers-2.3.3-74.i386.rpm
glibc-kernheaders-2.4-9.1.87.i386.rpm
make-3.80-5.i386.rpm
Tommy
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
More information about the redhat-list
mailing list