LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 12-23-2004, 01:58 PM   #1
digitalbrush
LQ Newbie
 
Registered: Dec 2004
Distribution: Red Hat 9
Posts: 4

Rep: Reputation: 0
Installing GCC--


Hello, I have recently installed (or haven't completely installed) GCC 3.3.2 for Red Hat Linux 9. However, the problem is that I've done all the requirements to install, and whenever I type "gcc" in console, It says 'command not found'. I've set PATH=$PATH:/opt/TWWfsw/gcc332/bin (place with gcc binaries) and 'gcc' only works until I quit that session of console. I have to reset the path every tiem I want to use GCC without typing all the directories etc..

And I was wondering if anyone could help me so that PATH would be set so I could quit a session of console and reload it later and still be able to use 'gcc'.

I have already read one of your older threads regarding gcc installation but cannot post the URL since I'm a new member.

The manual also didn't provide information on this topic other than "you must set path to /opt/TWWfsw/gcc332/bin"

Last edited by digitalbrush; 12-23-2004 at 01:59 PM.
 
Old 12-23-2004, 02:04 PM   #2
cormander
Member
 
Registered: Dec 2004
Location: Hawaii
Distribution: Fedora & CentOS
Posts: 72

Rep: Reputation: 15
Try adding this to /etc/profile

PATH=$PATH:/opt/TWWfsw/gcc332/bin

-Corey
 
Old 12-23-2004, 02:19 PM   #3
digitalbrush
LQ Newbie
 
Registered: Dec 2004
Distribution: Red Hat 9
Posts: 4

Original Poster
Rep: Reputation: 0
Yes, the path stays now. Thank you
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help on installing GCC. Jonka Linux - Software 2 11-12-2003 04:12 PM
Installing gcc 3.3 Shienarier Linux - Software 6 06-08-2003 11:25 AM
Installing GCC sovietpower Linux - Newbie 1 06-01-2003 05:28 PM
Installing GCC 3.1 over GCC 2.96...? aaronluke Linux - General 3 09-27-2002 05:28 AM
Installing gcc-2.95.3 X11 Linux - Software 2 04-26-2002 09:49 AM


All times are GMT -5. The time now is 09:08 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration