LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 06-20-2008, 09:26 AM   #1
curt22
LQ Newbie
 
Registered: Jun 2008
Posts: 5

Rep: Reputation: 0
Question Trouble installing gcc


I'm trying to install gcc under debian. I ran
Quote:
apt-get install gcc-4.1
and there were no errors but when I tried to test it it said:
Quote:
bash: gcc: command not found
I'm not sure whats wrong.
Can someone please help me.
 
Old 06-20-2008, 10:36 AM   #2
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by curt22 View Post
I'm trying to install gcc under debian. I ran

and there were no errors but when I tried to test it it said:
Code:
bash: gcc: command not found
Is there a file named "gcc" in "/usr/bin"? If so, is "/usr/bin" in your path? To view your path
Code:
# echo $PATH
 
Old 06-20-2008, 11:33 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2019 CentOS6.10 CentOS7.5 + 50+ other Linux OS, for test only.
Posts: 17,211

Rep: Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548
'cd /usr/bin/'
# 'ln -s gcc-4.1 gcc'
I think I have seen this before (Debian 3.?)

If the package is included in the OS install, there is a link to
/etc/alternatives and back to /usr/bin/ ???

There seems to be no 'gcc' (or link) in package 'gcc-4.1'
only /usr/bin/gcc-4.1 (and //i486-linux-gnu-gcc-4.1@)

Rgds
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Trouble installing gcc phahn Linux - Software 6 01-24-2008 06:20 PM
Trouble Installing gcc-3.2.1 leoneo11 Linux - Software 2 04-24-2007 04:07 PM
trouble installing gcc thorney Linux - Software 1 11-25-2005 02:31 PM
Trouble installing gcc the_serhan SUSE / openSUSE 1 06-06-2005 02:21 PM
Trouble installing GCC, need help glock19 Linux - General 0 03-14-2002 12:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration