LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 06-11-2011, 11:10 AM   #1
taylorp
LQ Newbie
 
Registered: Jun 2011
Posts: 6

Rep: Reputation: Disabled
gcc-4.6.0


I'm new to C++. I downloaded gcc-4.6.0 for my compiler. Right now I have a folder on my desktop that says "gcc-4.6.0", and inside the folder are more folders. I probably could figure how to set up the compiler but I don't want to do the wrong thing. With the "gcc-4.6.0" folder sitting on my desktop, where do I go from here to successfully set up my compiler. Thx!

-Paul
 
Old 06-11-2011, 11:39 AM   #2
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.

First thing to do : Tell which Linux OS, you are using.
Like Fedora 15, CentOS 5.6, Ubuntu 11.04 etc.

And then install a system compiler gcc, g++/gcc-c++ with your 'Package Installer'.
I.e. no gcc can be build without a working gcc !

Building gcc-4.6.0 http://www.linuxfromscratch.org/lfs/view/development/
(GCC requires a build directory outside the gcc-4.6.0/ source folder.
And requires these sources unpacked inside 'gcc-4.6.0/': gmp, mpfr, mpc.)

And a build example → #2
http://www.linuxquestions.org/questi...-1-a-842567/#2

..

Last edited by knudfl; 06-11-2011 at 06:52 PM.
 
1 members found this post helpful.
Old 06-11-2011, 06:47 PM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,622

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
also BE WARNED
there are not too many programs yet that that build with 4.6 . You will HAVE TO HACK programs in order to use gcc 4.6

so for most programs have not YET been tested with 4.6. So you WILL have to hack some/most programs
-- have fun --

Last edited by John VV; 06-16-2011 at 04:28 PM.
 
1 members found this post helpful.
Old 06-16-2011, 01:24 PM   #4
taylorp
LQ Newbie
 
Registered: Jun 2011
Posts: 6

Original Poster
Rep: Reputation: Disabled
not quite on board

I running Ubunto 11.04 and I have a folder called gcc-4.3.5 on my desktop. I just want to get it installed so I can start working in my c++ book. Inside the 4.3.5 folder are a number of other folders. I have never used a compiler before. Where do I go from here so I can start using the book? -Paul
 
Old 06-16-2011, 01:29 PM   #5
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
The standard dor Ubuntu 11.04 is gcc 4.5.2, you can install it (and other useful packages) with
Code:
sudo apt-get install build-essential
 
Old 06-17-2011, 12:37 PM   #6
taylorp
LQ Newbie
 
Registered: Jun 2011
Posts: 6

Original Poster
Rep: Reputation: Disabled
Where do I find sudo apt-get install build-essential?
 
Old 06-17-2011, 02:02 PM   #7
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,622

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
Quote:
Where do I find sudo apt-get install build-essential?
?????
have you NOT done ANY reading on/about Ubuntu??????
Have you NOT read the user manual??????????????????

that IS THE COMMAND TO INSTALL IT !!!!!!!!!!!!!!!!!!!!!!!!
Code:
sudo apt-get install build-essential
 
0 members found this post helpful.
Old 06-17-2011, 04:07 PM   #8
taylorp
LQ Newbie
 
Registered: Jun 2011
Posts: 6

Original Poster
Rep: Reputation: Disabled
you're right. i haven't studied the inner workings of ubuntu much. if im going to use it, i need to get a book on it. im heading to borders now.
 
Old 06-17-2011, 04:39 PM   #9
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,622

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
taylorp
start with the Ubntu web site from where YOU GOT IT !!!
http://www.ubuntu.com/
http://www.ubuntu.com/support
https://help.ubuntu.com/
 
Old 06-18-2011, 05:53 AM   #10
LloydRice
Member
 
Registered: Jun 2011
Location: Colorado
Distribution: Debian and Ubuntu
Posts: 67

Rep: Reputation: Disabled
taylorp: The vast amount of documentation can indeed be daunting. But you need to plow into it. I have found the HOWTOs very helpful. My first download got over 400 PDFs. That will keep you busy for a while. In general, I find books to be more often biassed one way or another, perhaps because of the differences in marketing and production of commercial things vs. the "free" aspect of most Linux stuff. But I preach.
 
Old 06-18-2011, 12:08 PM   #11
taylorp
LQ Newbie
 
Registered: Jun 2011
Posts: 6

Original Poster
Rep: Reputation: Disabled
@John VV: John you need to check yourself with all of your capital letters and exclamation marks. I know that you're good, but no matter how good you are there is always someone better. Have you built an operating system? Where is your version of Linux? Until you do so, I would slow down with the condescending attitude.

Last edited by Tinkster; 06-18-2011 at 05:15 PM.
 
Old 06-18-2011, 05:23 PM   #12
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Right. This is a call to order; please behave yourselves, gents.



Cheers,
Tink
 
  


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
LXer: Compiler Benchmarks Of GCC, LLVM-GCC, DragonEgg, Clang LXer Syndicated Linux News 0 11-08-2010 05:11 PM
[SOLVED] SEGMENTATION FAULT using gcc 4.4.4 -O2 , works with gcc 4.1.0 -O2 or gcc 4.4.4 -O1 amir1981 Programming 36 07-26-2010 06:07 PM
Installing vmware on Open Suse 11.1 - Requires original gcc 4.32 - gcc now 4.3 cyclops.matrix Linux - Software 2 08-31-2009 02:52 PM
yum install gcc doesn't set the lastest gcc ver 4.3.x kim,jw Linux - Newbie 3 12-22-2008 11:51 PM
gcc wont install, 'failed dependencies: glibc-devel is needed by gcc-3.3.3-41' TdlSnare SUSE / openSUSE 3 11-29-2004 02:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:31 PM.

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