LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 02-13-2005, 10:06 PM   #1
m_lp_ql_m
Member
 
Registered: Dec 2003
Location: So Cal
Distribution: Debian Etch
Posts: 59

Rep: Reputation: 15
bash: g++: command not found


I've used g++ before, several "apt-get update"s ago, but now all I get is "bash: g++: command not found". I've tried re-installing it to no avail. Any ideas?
 
Old 02-13-2005, 10:11 PM   #2
m_lp_ql_m
Member
 
Registered: Dec 2003
Location: So Cal
Distribution: Debian Etch
Posts: 59

Original Poster
Rep: Reputation: 15
Oh, I should probably specify: Debian Sarge, KDE 3.3, kernel 2.6.8-2-686.
 
Old 02-14-2005, 08:55 AM   #3
OneManArmy
Member
 
Registered: Apr 2004
Location: Motherboard
Distribution: Debian GNU/Linux
Posts: 156

Rep: Reputation: 30
AFAIK g++ is part of gcc (Gnu Compiler Collection). do u have gcc installed ?
 
Old 02-14-2005, 09:11 AM   #4
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
On some distros it's gcc-c++ (or gcc-cpp), or just g++ so it maybe worthwile for you to try those out.
 
Old 02-16-2005, 08:04 AM   #5
m_lp_ql_m
Member
 
Registered: Dec 2003
Location: So Cal
Distribution: Debian Etch
Posts: 59

Original Poster
Rep: Reputation: 15
Code:
mark@m:~$ gcc
bash: gcc: command not found
mark@m:~$ g++
bash: g++: command not found
mark@m:~$ gcc-g++
bash: gcc-g++: command not found
mark@m:~$ gcc-cpp
bash: gcc-cpp: command not found
mark@m:~$ gcc-c++
bash: gcc-c++: command not found
mark@m:~$ g++
bash: g++: command not found
Synaptic shows both gcc-3.3 and g++-3.3 installed. Any other ideas?
 
Old 02-18-2005, 12:20 AM   #6
m_lp_ql_m
Member
 
Registered: Dec 2003
Location: So Cal
Distribution: Debian Etch
Posts: 59

Original Poster
Rep: Reputation: 15
OK, a friend suggested I type "g <TAB><TAB>" in the console, and I found that my "g++" command is now, mysteriously, "g++-3.3". So it's still there, just annoyingly longer. New thread: how to make it shorter.
 
Old 06-02-2007, 05:03 AM   #7
queency
LQ Newbie
 
Registered: Jun 2007
Posts: 16

Rep: Reputation: 0
after updateing kernel g++ changed his name

hello i'm new to linux (half a year)

amd-64 ubuntu feisy
====================

why is when i installed the kernel updated
g++ changed names to g++-3.3

and how can i direct anjuta to use the
g++-3.3 instead of g++ ?

should i renamed it back to g++ ?
it seems so stupid to encounter such errors
is there any release notes to read before
installing other updated from ubuntu ? ?
 
Old 06-09-2010, 10:31 PM   #8
pablodc00
LQ Newbie
 
Registered: Jun 2010
Posts: 1

Rep: Reputation: 0
Quote:
Originally Posted by m_lp_ql_m View Post
Code:
mark@m:~$ gcc
bash: gcc: command not found
mark@m:~$ g++
bash: g++: command not found
mark@m:~$ gcc-g++
bash: gcc-g++: command not found
mark@m:~$ gcc-cpp
bash: gcc-cpp: command not found
mark@m:~$ gcc-c++
bash: gcc-c++: command not found
mark@m:~$ g++
bash: g++: command not found
Synaptic shows both gcc-3.3 and g++-3.3 installed. Any other ideas?
Hi bud, I had that issue, I fixed it installing the package "C++ support for GCC". Hope it helps you too. Good luck!
 
Old 07-08-2010, 01:45 PM   #9
innoshare
LQ Newbie
 
Registered: Jul 2010
Posts: 5

Rep: Reputation: 0
Try installing ccache

You might also try installing ccache - It should create symlinks in /usr/bin/ccache for g++ and gcc.
__________________
Atlanta Georgia Search Engine Optimization | Atlanta Website Design
 
  


Reply



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
Bash: command not found! Adil_uk Linux - General 14 04-09-2012 01:04 AM
bash: pg: command not found Chomper Programming 2 02-05-2005 02:22 AM
-bash: cp: command not found johnlittlepeap Fedora 2 11-15-2004 08:52 AM
-bash: ls: command not found jchun Linux - General 3 11-02-2004 10:11 AM
bash: command not found jc80 Fedora 3 03-14-2004 03:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:21 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
Open Source Consulting | Domain Registration