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 07-28-2004, 10:02 AM   #1
BadTaste
LQ Newbie
 
Registered: Jul 2004
Posts: 11

Rep: Reputation: 0
how to install GCC


hello
I tried to install gcc for linux. I need make in order to build gcc but I don't have make install. I ve tryed to install make and but when i ./configure it comes out with
configure: error: no acceptable C compiler found in $PATH

What am i missing
 
Old 07-28-2004, 10:20 AM   #2
Kroenecker
Member
 
Registered: May 2003
Location: The States
Distribution: Gentoo
Posts: 245

Rep: Reputation: 30
You are going to have to get a precompiled gcc. You see, gcc is the compiler that you want in order to compile your compiler. So not having one on your system right now means you are locked out. You will have to install the developement packages from your distribution. They will include a compiler *of course once it is installed, do you really want to compile another one?
 
Old 07-28-2004, 10:21 AM   #3
kells80
LQ Newbie
 
Registered: Jun 2004
Location: CT, USA
Distribution: MDK10, SimplyMepis
Posts: 9

Rep: Reputation: 0
RPM's rule

From one uber-newb to the next, I'll try to help ya with this one. I needed gcc on a fresh install of MDK 10 last night. I'm trying to remember all that I did - maybe another cup of coffe will help

*please correct me if I'm wrong!*


1. su to root
2. at the prompt, type urpmi gcc

It may ask you to install other dependent programs - do so. You might need to pop in an install CD...can't quite remember. If I can recall, this is all ya need to do. The RPM will install itself and all will be good.

RPMs are precompiled packages - and the 'urpmi' function will find the packages for you, AND all dependent progs. It's quite easy once you get the hang of it.

Last edited by kells80; 07-28-2004 at 10:49 AM.
 
Old 07-28-2004, 10:26 AM   #4
mjjzf
Member
 
Registered: Feb 2004
Location: Valby, Denmark / Citizen of the Web
Distribution: Slackware 14.1
Posts: 879

Rep: Reputation: 39
Yes, but urpmi is a Mandrake tool. No distro is specified here, but I can imagine you are using SuSE 9.1 Personal, which lacks these tools, or have made an install and selected not to install programming tools. With SuSE, it should be possible to obtain them with Yast or by finding a relevant mirror. So: What is your distribution?
 
Old 07-28-2004, 10:51 AM   #5
BadTaste
LQ Newbie
 
Registered: Jul 2004
Posts: 11

Original Poster
Rep: Reputation: 0
i downloaded the free vertion of suse 9.1
ive checked on YaST under install and remove software and there is a number of c libraries and a c preprocessor installed and under online update i cant find GCC as an option to download at from a few servers that ive tried
 
Old 07-28-2004, 12:29 PM   #6
leadazide
Member
 
Registered: Apr 2004
Location: Germany
Distribution: SuSE 11.0, Ubuntu 7.10
Posts: 390

Rep: Reputation: 30
go to www.rpmfind.net, search for gcc, download a rpm for Suse 9.1

(*tp://rpmfind.net/linux/SuSE-Linux/i386/9.1/suse/i586/gcc-3.3.3-41.i586.rpm)
sorry, no direct binary posting

and install it with Yast, by just opening it in Konqueror and click "Install with Yast"

Done!
 
Old 07-29-2004, 08:37 AM   #7
BadTaste
LQ Newbie
 
Registered: Jul 2004
Posts: 11

Original Poster
Rep: Reputation: 0
Question

Sorry Still not working
I downloaded the GCC files cliked on install with YaST it then asks for password and just before it goes into the insatallation screen YaST closes down ????
 
Old 07-29-2004, 08:59 AM   #8
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
Its probably installed, ususally there's no "installation screen", try open up a terminal and type "gcc".
If not you can do it manually
Code:
rpm -Uvh gcc*.rpm
 
Old 07-29-2004, 10:23 AM   #9
Corona4456
Member
 
Registered: Jul 2004
Distribution: SuSE 9.1
Posts: 66

Rep: Reputation: 15
When you install from YaST, do you do a search for gcc? If not then go ahead and do a search for a gcc package. Then click on accept. This will check on dependencies for you and it should let you install the dependencies, which in this case would be the libraries.
 
Old 07-29-2004, 01:22 PM   #10
leadazide
Member
 
Registered: Apr 2004
Location: Germany
Distribution: SuSE 11.0, Ubuntu 7.10
Posts: 390

Rep: Reputation: 30
There's no gcc included in SuSE Personal 9.1.
Try first logging in as a root and then install. Check /var/log/Yast2 directory, Yast places there installation logs, maybe you'll find an error in one of these.
 
Old 08-02-2004, 12:15 PM   #11
BadTaste
LQ Newbie
 
Registered: Jul 2004
Posts: 11

Original Poster
Rep: Reputation: 0
hello still having problems

ive finaly got an rpm of gcc installed but the the headder files like iostream.h arnt recognised the gcc only has a c compiler not a c++i thought that gcc came with both. ive tryed to install a c++ rpm but the same thing keeps happening just as its about to install Yast closes down
 
Old 08-02-2004, 12:40 PM   #12
leadazide
Member
 
Registered: Apr 2004
Location: Germany
Distribution: SuSE 11.0, Ubuntu 7.10
Posts: 390

Rep: Reputation: 30
which rpm did you try? the gcc-c++?

try this one, gcc-c++ for SuSE 9.1
*tp://rpmfind.net/linux/SuSE-Linux/i386/9.1/suse/i586/gcc-c++-3.3.3-41.i586.rpm

Did you login as a root or started yast and then just entered root password?
Did you try to install it from command line with rpm ?
 
Old 08-02-2004, 04:17 PM   #13
BadTaste
LQ Newbie
 
Registered: Jul 2004
Posts: 11

Original Poster
Rep: Reputation: 0
i type in the password when yast starts

the rpm i managed to install was gcc-3.3.3-1.i386.rpm

the rpm file that you suggested came up with conflicts
libstdc++-devel is needed by gcc-c++-3.3.3-41
gcc = 3.3.3-41 is needed by gcc-c++-3.3.3-41

i did also try gcc-3.3.1-29.i586.rpm but that one came up with conflicts
glibc-devel is needed by gcc-3.3.1-29
cpp = 3.3.1-29 is needed by gcc-3.3.1-29

and as far as i can see my cpp version is 3.3.3-41
and i can only see glib 2.3.3-97 not any glibc-devel
 
Old 08-03-2004, 07:44 AM   #14
leadazide
Member
 
Registered: Apr 2004
Location: Germany
Distribution: SuSE 11.0, Ubuntu 7.10
Posts: 390

Rep: Reputation: 30
ok
download this glibc-devel rpm from rf.net

*tp://rpmfind.net/linux/SuSE-Linux/i386/9.1/suse/i686/glibc-devel-2.3.3-97.i686.rpm

install it first
uninstall gcc 3.3.1-29, install gcc 3.3.3-41 from this rpm

*tp://rpmfind.net/linux/SuSE-Linux/i386/9.1/suse/i586/gcc-3.3.3-41.i586.rpm

and then this gcc-c++ 3.3.3-41

*tp://rpmfind.net/linux/SuSE-Linux/i386/9.1/suse/i586/gcc-c++-3.3.3-41.i586.rpm


in this order

I assume these 3 RPMs are from SuSE 9.1 Professional.

And as already mentioned, if you can't install 'em with yast, try first logging in as a root or running rpm
 
Old 08-03-2004, 10:10 AM   #15
BadTaste
LQ Newbie
 
Registered: Jul 2004
Posts: 11

Original Poster
Rep: Reputation: 0
its up and running now just wanted to say thanks for everyones help.
 
  


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
cant install gcc nikoz Linux - Software 4 12-02-2004 02:23 AM
gcc wont install, 'failed dependencies: glibc-devel is needed by gcc-3.3.3-41' TdlSnare SUSE / openSUSE 3 11-29-2004 03:13 PM
how to install gcc big_bailey Linux - Software 3 07-23-2004 01:47 AM
Install GCC BizHat.com Linux - Software 10 07-19-2004 05:26 PM
Must have gcc to install gcc? thafusion Linux - Software 4 05-28-2004 11:20 PM


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