Mailing List
Home
Forum Home
Linux - General Red Hat Linux discussion list
Enterprise Linux 3 - Discussion of Red Hat Enterprise Linux 3 (Taroon)
Installation - Getting started with Red Hat Linux
Red Hat Linux 9 - Discussion of Red Hat Linux 9 (Shrike)
Red Hat Linux 7.3 - Discussion of Red Hat Linux 7.3 (Valhalla)
Red Hat Linux 7.2 - Discussion of Red Hat Linux 7.2 (Enigma)
Apache Web Server
Oracle database, Microsoft SQL server ...
Subjects
application/x mplayer2 plugin
RPM error: db4 error(16) from dbenv >remove: Device or resource
   busy
Command stream end of file while reading
X Windows problem (xauth)
Upgrading openoffice 1 1 rpm
FTP: connection refused
FTP: connection refused
mount: /dev/cdrom: is not a valid block device
Dell Precision 650, RedHat 9, no sound
how to trace the cause resulting in the crash of bind server
Virus on the list
UNINSTALL RPM MYSQL
usb pen drives: mounting as a user
broadcom network interface
make mrproper
sendmail configuration on redhat
Couldn 't open PID file /var/run/named/named pid Permission denied
Promise 378 controller
kernel 2 6 and /dev/sound/mixer not found
Problem using up2date
mrtg step by step howto/configuration for a newbie?
Compiling and Installing Kernel 2 6
Can 't locate module ppp0, can 't locate module ppp compress 21
HOW I CAN MAKE BOOTABLE FLOPPY DISKET
Lotus Notes under Wine
/etc/security/limits conf question
Intel E/1000 driver
Command stream end of file while reading
rpm database corrupt
qla2300 modules
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
How to use gcc command

How to use gcc command

2005-06-20       - By Brian D. McGrew

 Back
Reply:     1     2     3  

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@(protected) || brian@(protected) }
---
> YOU!  Off my planet!
-- --Original Message-- --
From: redhat-list-bounces@(protected)
[mailto:redhat-list-bounces@(protected)] On Behalf Of redhat-list
Sent: Monday, June 20, 2005 7:32 AM
To: redhat-list@(protected)
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@(protected)?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@(protected)?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

Earn $52 per hosting referral at Lunarpages.