LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-10-2006, 01:19 AM   #1
Geminias
Member
 
Registered: Sep 2005
Posts: 201

Rep: Reputation: 30
installing gcc


every so often i ask this question, because i still don't know how to do it.

Can anyone direct me to a complete tutorial aimed at the linux noob attempting to install gcc, and operate it?
 
Old 01-10-2006, 01:26 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
a tutorial is not suitable, it's just a case of installing the gcc package like any other package. but as you've not even told us what distro you're using we can't tell you what you want to know really... just use the same procedure you already use to install rpms, debs, ebuild, tgz's or whatever your distro uses for inary software management.
 
Old 01-10-2006, 01:50 AM   #3
Geminias
Member
 
Registered: Sep 2005
Posts: 201

Original Poster
Rep: Reputation: 30
FC4, i've downloaded and theoretically installed:

gcc-3.3.tar.gz

i remember it did its wild thing, loading up my screen with all the packages it was installing to some directory which i no longer remember where. I remember i cd'd to that directory and tried to ./gcc, man gcc, you know anything like that.. i also tried just using the standard whatever you call it that looks like this:

g++ somefile.cpp -o somefile

etc... but i remember getting a command not recognized. So what i need is an all out tutorial on how to install and operate gcc to compile c and c++ programs.

Note: i come from windows like most people and i am used to just installing something and having the binary ready for me to roll with. Also please note that i use minGW in the windows environment, so i'm not a complete noob but this Fedora Core 4 seems to be employing some trickery on me. (to be honest it looks like it expects me to compile the gcc compiler. I find that strange considering you would need a c compiler to compile a gcc compiler, thus making the process of compiling one a little... futile.) though if the world does make sense than its just that i'm not using the proper commands or something..
 
Old 01-10-2006, 03:08 AM   #4
Geminias
Member
 
Registered: Sep 2005
Posts: 201

Original Poster
Rep: Reputation: 30
please, someone, anyone, help me to get gcc working.
 
Old 01-10-2006, 04:05 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
right, FC4 thanks... so run "yum install gcc" and press enter.
 
Old 01-10-2006, 04:12 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
Quote:
Note: i come from windows like most people and i am used to just installing something and having the binary ready for me to roll with.
Hm... interesting... ever been able to run "winstall mingw" and have it running 30 seconds later? thought not. installing software on Linux is often a LOT easier than under windows.

Last edited by acid_kewpie; 01-10-2006 at 04:13 AM.
 
  


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
Installing GCC Geminias Linux - Newbie 6 01-03-2006 05:34 PM
Installing GCC blackadder Linux - Software 1 02-04-2005 07:35 AM
Installing GCC holyfeces Linux - Newbie 5 01-10-2005 02:35 PM
Installing GCC Bruno Dantas Linux - Newbie 1 09-12-2003 08:37 AM
Installing GCC 3.1 over GCC 2.96...? aaronluke Linux - General 3 09-27-2002 05:28 AM

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

All times are GMT -5. The time now is 04:53 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration