473,396 Members | 2,108 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

g++: command not found!

JS
When I write g++ in a shell I get the errormessage:

g++: command not found

But when I open Synaptic and search for g++ I have both**g++-2.95/3.2/3.4
listed as being installed.

Hope someone can help!!
Jul 23 '05 #1
6 12492
Zak
Make sure the exe files are registered in the system dir (windows) or
/bin (Linux).

-Zak

Jul 23 '05 #2
> When I write g++ in a shell I get the errormessage:

g++: command not found

But when I open Synaptic and search for g++ I have
both**g++-2.95/3.2/3.4 listed as being installed.


Use the command "whereis" to find g++.

What is the output of "whereis g++" ?
Jul 23 '05 #3
On my (Ubuntu linux box) a version number is added to the name
martin@ubuntu:~ $ ls /usr/bin/g++*
/usr/bin/g++-3.4
martin@ubuntu:~ $

Jul 23 '05 #4
wi******@hotmail.com wrote:
On my (Ubuntu linux box) a version number is added to the name
martin@ubuntu:~ $ ls /usr/bin/g++*
/usr/bin/g++-3.4
martin@ubuntu:~ $


If you installed 3.4.x with an rpm, it could be called g++_34

does it recognize gcc, c++ ?
Jul 23 '05 #5
Apparently, _Zak_, on 30/03/05 09:11,typed:
Make sure the exe files are registered in the system dir (windows) or
/bin (Linux).

-Zak


Try "dpkg -L g++". On Debian Sarge, I get:
{tmp}> dpkg -L g++
/.
/usr
/usr/bin
/usr/share
/usr/share/man
/usr/share/man/man1
/usr/share/doc
/usr/bin/i386-linux-g++
/usr/bin/g++
/usr/share/man/man1/i386-linux-g++.1.gz
/usr/share/man/man1/g++.1.gz
/usr/share/doc/g++
and I see that I have g++ in /usr/bin. You could also try "dpkg -L g++ |
grep bin", or "dpkg -L gcc | grep bin".

->HS

--
Please remove the underscores ( the '_' symbols) from my email address
to obtain the correct one. Apologies, but the fudging is to remove spam.
Jul 23 '05 #6
no, but i could manually make a link of course. but usually i work
with a makefile, so i do not see a problem with this

Jul 23 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Laura P | last post by:
Hi, I wasn't sure whether this should be posted in the Java are or in a Solaris thread, so I shall post it in both. Sorry for the duplication. I am new to Solaris and am having trouble...
5
by: Doug | last post by:
In vb6, to get the command line you would use strCommand = Command() How do you do this in vb .net? I found in the help file to use: Dim commands As String = Microsoft.VisualBasic.Command( but...
6
by: PAPutzback | last post by:
The process and execute methods want a path to the executable otherwise they kick out a file not found. So how can I execute the following. It works fine from a command window. echo password|...
14
by: Kevin | last post by:
A couple of easy questions here hopefully. I've been working on two different database projects which make use of multiple forms. 1. Where's the best/recommended placement for command buttons...
8
by: Ivan | last post by:
Hi I am new in DB2, and I have some problems when I try run stored procedures, and others statements. I made one stored procedure very simple, but this show different messages. I have followed...
2
by: johnxhc | last post by:
I am trying to use sos extension but almost half of the sos command do not work, for example 0:027!findtable No export findtable found 0:027!bpmd No export bpmd found 0:027!GCHandleLeaks...
10
by: Justin | last post by:
We have a simple shell script called testsp.sh (located at /home/ userid) Within the shell script, the following command is called: db2 -tvf callsp.sql When the shell script is run in command...
2
by: db2learner | last post by:
Hi, I am new to DB2 and i just started worked on it a couple of days back. I have created basic EMPLOYEE table from control centre which has 2 fields: EmpNo, EmpName. I am trying to write...
2
by: Bennett Haselton | last post by:
How do I find the mapping between a PHP package name like HTTP_Request, and the "yum" command to install it on CentOS 4.4? For example when I needed to use LWP::UserAgent to use in Perl, the...
2
by: Taras_96 | last post by:
Hi everyone, I'm trying to run a number of commands stored within a sql file from within php using mysqli::query. The syntax I'm using is: source C:\data\projects\forum...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.