LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-05-2007, 01:13 AM   #1
heyinba0904
LQ Newbie
 
Registered: Jan 2007
Posts: 5

Rep: Reputation: 0
Smile c++ compile problem under ubuntu


Hi:everyone
i just installed the new Kubuntu Linux in my computer,but i can`t compile any *.cpp file with g++ command .
Terminal show me
"bash : g++: command not found"
i dont know the why i cant use g++ to compile.
thanks alot , please help me with this small problem.
 
Old 01-05-2007, 01:22 AM   #2
Deepti Joshi
LQ Newbie
 
Registered: May 2006
Posts: 2

Rep: Reputation: 0
Hi ,
generally g++ distribution comes under /usr/bin, you should find where is g++ installed on your system and export that path to your PATH environment variable.
Hope this helps you.

Thanks,
Deepti
 
Old 01-05-2007, 01:28 AM   #3
heyinba0904
LQ Newbie
 
Registered: Jan 2007
Posts: 5

Original Poster
Rep: Reputation: 0
Smile thank you

but i dnot know how to export that path to my PATH environment , i am a new people in Linux.
 
Old 01-05-2007, 01:37 AM   #4
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
Ubuntu? Compiler problems?
sudo apt-get install build-essentials
 
Old 01-05-2007, 02:20 AM   #5
heyinba0904
LQ Newbie
 
Registered: Jan 2007
Posts: 5

Original Poster
Rep: Reputation: 0
thanks ,could u tell me nore detail about installing build-essentials??
 
Old 01-05-2007, 02:30 AM   #6
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
Er.. Details? It was command-line to install. By default Ubuntu and clones do not install anything related to compilation. So you need to install it. There is meta-package build-essentials with no files, but lots of dependencies. Its installation makes Ubuntu install everything needed for compilation of standard C/C++ programs.
 
Old 01-05-2007, 06:46 AM   #7
heyinba0904
LQ Newbie
 
Registered: Jan 2007
Posts: 5

Original Poster
Rep: Reputation: 0
Smile hi^_^

how to install meta-package build-essentials?
 
Old 01-05-2007, 07:00 AM   #8
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
sudo apt-get install build-essentials
 
Old 01-05-2007, 11:31 PM   #9
heyinba0904
LQ Newbie
 
Registered: Jan 2007
Posts: 5

Original Poster
Rep: Reputation: 0
ha^_^
thanks
 
  


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
how to compile a custom driver in ubuntu madhusudana Ubuntu 12 07-04-2007 11:52 AM
LXer: How To Compile A Kernel - The Ubuntu Way LXer Syndicated Linux News 0 11-08-2006 03:21 PM
UBUNTU::Compile a Kernel module hellmet Linux - Software 3 05-07-2006 11:14 AM
Cant compile on Ubuntu 5.10 Breezy mdkusr Linux - Software 1 12-07-2005 07:56 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:13 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