LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 04-12-2012, 02:33 AM   #1
huzaim2006
LQ Newbie
 
Registered: Apr 2012
Posts: 5

Rep: Reputation: Disabled
g++ compiler


I downloaded fedora 16 recently and instaled in the Oracle virtualbox as a virtual machine.
The os is running fine , but when i used the terminal for c++ , an error message give while the compilation
"bash:g++:command not found"..

can any body help me to fix this ?


fedora 16 was 615MB .. is it the iso without the libraries for c++?

if not why this error comes ?
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 04-12-2012, 02:45 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,902

Rep: Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318
I think you need to install a compiler (g++)
 
2 members found this post helpful.
Old 04-12-2012, 03:18 AM   #3
huzaim2006
LQ Newbie
 
Registered: Apr 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
I think you need to install a compiler (g++)
So how can i INSTALL it , pls help me ...
 
Old 04-12-2012, 03:24 AM   #4
TommyC7
Member
 
Registered: Mar 2012
Distribution: Slackware, CentOS, OpenBSD, FreeBSD
Posts: 530

Rep: Reputation: Disabled
I don't use Fedora, but seeing how it's RedHat based is there no "yum install g++" or something of that sort?
 
Old 04-12-2012, 03:36 AM   #5
huzaim2006
LQ Newbie
 
Registered: Apr 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
actually i went to this site , http://www.gnu.org/software/gcc/ .. but i cannot find a way to download or install ... ..
 
Old 04-12-2012, 03:37 AM   #6
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,902

Rep: Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318
http://www.linuxquestions.org/questi...mpiler-622270/
 
Old 04-12-2012, 03:39 AM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Welcome to LQ.
Quote:
Fedora 16 .. 615MB .. is it the iso without the libraries for c++ ?
No 'gcc-c++' or 'libstdc++-devel' on the cdrom. The DVD has more packages.

Make a package list with install dates : rpm -qa --last > last-packages
Sorted : rpm -qa --last | sort > last-sorted
A simple list : rpm -qa | sort > installed-packages


Installing packages on Fedora : 1) su <password> ; 2) yum install <package>

The c++ compiler and dependencies : yum install gcc-c++

.
 
Old 04-12-2012, 03:55 AM   #8
huzaim2006
LQ Newbie
 
Registered: Apr 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
its not clear for me knudfl , ... so the conclusion is ?
1.we have the libraries in the iso
2. we do not have the libraries in the iso
???
 
Old 04-12-2012, 04:23 AM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 8 :
It's "One library" = libstdc++-devel, and it's not on the very limited live cd.

The c++ library alone : No compilation. The package gcc-c++ is required.
 
Old 04-12-2012, 05:13 AM   #10
huzaim2006
LQ Newbie
 
Registered: Apr 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
i downloaded libstdc++-devel-4.6.2-1.fc16.i686 .. so where to place it ?
 
Old 04-12-2012, 05:39 AM   #11
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,902

Rep: Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318
I gave you a link about it and also it is already written here:
Quote:
Installing packages on Fedora : 1) su <password> ; 2) yum install <package>

The c++ compiler and dependencies : yum install gcc-c++
so you need to type (as root): yum install gcc-c++

please try it and send us the result
 
  


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
[SOLVED] [Question] How to compile a gcc compiler for another machine which got no c compiler on it shone27 Linux - Newbie 9 09-28-2011 07:32 PM
Can you build a C Compiler without an existing C compiler? (Chicken and the egg?) chutsu Linux - Software 6 12-14-2010 08:57 PM
checking for C compiler default output... configure: error: C compiler cannot create clubbing80s Linux - Software 3 07-05-2010 08:17 PM
checking for C compiler default output... configure: error: C compiler cannot create fiorejm Linux - Software 6 11-12-2009 12:35 PM

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

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