Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-10-2013, 12:34 AM   #1
LQ Newbie
Registered: Jan 2013
Posts: 3

Rep: Reputation: Disabled
I need a help to deal with programming languages in linux

HI, I've a problem in using C\C++ langauage when I want to program.
my Question is : How can I use programming languages in linux ? and Is there packages should I install to make that passible ?

Thank you for Help ....
Old 01-10-2013, 12:42 AM   #2
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,395

Rep: Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395
Well we'd need to know what distro & version you have
cat /etc/*release*
You'll need (as a bare minimum) the gcc tools eg on Centos
 rpm -qa|grep gcc
RHEL/Centos also offer pkg groups
 yum grouplist|grep -i devel
   Additional Development
   Desktop Platform Development
   Development tools
   Server Platform Development
Old 01-10-2013, 12:45 AM   #3
LQ Newbie
Registered: Jan 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
I have "Ubuntu precise 12.04 LTS" "KDE DESKTOP"
Old 01-10-2013, 01:30 AM   #4
Senior Member
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
You will need to install following packages for complilation:
sudo apt-get install build-essential
Also make sure that you have gcc utiliity:
which gcc
If you find gcc, then simply create a program (in a text file, e.g. sampleprog), make it executable, and then run, as:
example%  vi sampleprog
example%  chmod +x sampleprog
example%  gcc sampleprog.c -o sampleprog
1 members found this post helpful.
Old 01-10-2013, 02:40 AM   #5
Registered: Sep 2011
Distribution: fedora, redhat, mint
Posts: 87

Rep: Reputation: Disabled
You will need gcc for c and g++ for c++. Just type g++ at the terminal to see if you have it intalled. If you have it installed, the terminal will tell you that "no input files". So you have to write a c++ program save it with a ".cpp" entension. To compile it "g++.program.cpp" then run the ".out" file ie "./a.out".

Let me know if you were assisted by this.
Old 01-10-2013, 02:44 AM   #6
Registered: Sep 2009
Location: Oklahoma
Distribution: Debian, CentOS, windows 7/10
Posts: 879

Rep: Reputation: 113Reputation: 113
Everything you should need for building compiling and more

sudo apt-get install build-essential
for IDE you can use code::block or eclispe in the software manager. I'm sure there is plenty more you can choose from though.


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
I need a help to deal with programming languages in linux und3r-shift Linux - Newbie 1 01-10-2013 05:48 AM
Need information about learning Linux, and programming languages chiller General 13 12-30-2012 07:02 AM
[SOLVED] Which programming languages do I need to learn for a career in Linux? infinite_scale Linux - Newbie 23 06-23-2011 06:26 AM
Programming languages on Linux? Imek Programming 6 01-04-2004 03:07 AM
Programming languages and Linux healfdeane Linux - Software 1 09-10-2003 09:15 PM > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration