LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   c++ compile problem under ubuntu (https://www.linuxquestions.org/questions/programming-9/c-compile-problem-under-ubuntu-516476/)

heyinba0904 01-05-2007 01:13 AM

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.

Deepti Joshi 01-05-2007 01:22 AM

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

heyinba0904 01-05-2007 01:28 AM

thank you
 
but i dnot know how to export that path to my PATH environment , i am a new people in Linux.

raskin 01-05-2007 01:37 AM

Ubuntu? Compiler problems?
sudo apt-get install build-essentials

heyinba0904 01-05-2007 02:20 AM

thanks ,could u tell me nore detail about installing build-essentials??

raskin 01-05-2007 02:30 AM

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.

heyinba0904 01-05-2007 06:46 AM

hi^_^
 
how to install meta-package build-essentials?

raskin 01-05-2007 07:00 AM

sudo apt-get install build-essentials

heyinba0904 01-05-2007 11:31 PM

ha^_^
thanks


All times are GMT -5. The time now is 06:00 PM.