Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 07-26-2006, 05:50 AM   #1
LQ Newbie
Registered: Jul 2006
Posts: 1

Rep: Reputation: 0
I'VE DONE "apt-get install gcc-3.4" BUT ....

hi everyone....
I've done "apt-get install gcc-3.4", everything works fine until "unpacking gcc..setting up gcc ..." but after that if i enter "gcc" at command prompt its not recognised by bash .."bash:gcc command not found "....
please help...
Old 07-27-2006, 04:25 PM   #2
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
This problem most commonly comes up when the path to the executable (in this case, gcc) is not in the users path. There are three ways to get it to work.

1) add the path to the gcc executable to your path. From a console, the command 'which gcc' will tell you where it is. To add it to your path, do this:
PATH=$PATH:/bin/gcc (or wherever gcc is)
export PATH

2) cd to the folder in which the gcc executable is located, and give the command ./gcc (parameters).

2) from anywhere in the system, give the full path to the gcc executable.


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Porting to Fedora gcc 4.0 -parsing backward slash("\") comma(",") code_blew Programming 1 04-26-2006 04:07 PM
How to install GCC? error "no acceptable compiler found" rohan208 Red Hat 3 04-19-2006 05:53 AM
how to install the "packages that have been held back" when doing "apt-get upgrade&qu zero79 Debian 5 06-27-2004 08:19 PM
Suse 9.1: "apt-get install synaptic" problem yautja666 Linux - Newbie 4 05-18-2004 10:46 AM > Forums > Linux Forums > Linux - Software

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

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