LinuxQuestions.org
Visit Jeremy's Blog.
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-25-2006, 09:23 PM   #1
matt kramer
LQ Newbie
 
Registered: Jul 2006
Distribution: Mandrake
Posts: 29

Rep: Reputation: 15
still trying to install gcc


i've been having problems getting gcc installed on a fresh Mandrake installation. I'm going on night 3 trying to achieve this. I really need this so i can build other packages i'm needing. tonight i went here: http://rpm.pbone.net/index.php3/stat....i586.rpm.html
to download a gcc package. i installed it after download, no problems. and then i typed gcc and of course, "command not found". i then typed rpm -qi and got, "rpm is not installed". so i tried to install the package again and got, "already installed". i cannot figure this thing out. for the love of idea free please help.
 
Old 07-25-2006, 09:56 PM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 59
The link you posted is for gcc-doc . That's not likely what you want.
You don't say what distro version you have but, on my Mandriva 2006, it was easy enough to use the built in package manager....
urpmi gcc

# rpm -qa |grep gcc
gcc-4.0.1-5mdk
libgcc1-4.0.1-5mdk
gcc-cpp-4.0.1-5mdk
 
Old 07-25-2006, 10:11 PM   #3
matt kramer
LQ Newbie
 
Registered: Jul 2006
Distribution: Mandrake
Posts: 29

Original Poster
Rep: Reputation: 15
i have no idea what i'm doing. please be patient with with. i don't know what that stuff means or does. i typed urpmi gcc and got "The following packages contain gcc: gcc2.96-cpp libgcc1 gcc-cpp gcc-doc". but i don't understand the other stuff you showed. what do i do now that i know what packages contain gcc? i mean, where are they located and how do i install them?

oh and i'm using Mandrake 9

this is where i'm at:

Code:
[root@cpe-69-133-112-109 matt]# urpmi gcc
The following packages contain gcc: gcc2.96-cpp libgcc1 gcc-cpp gcc-doc
[root@cpe-69-133-112-109 matt]# rpm -qa |grep gcc
libgcc1-3.2.2-3mdk
gcc-cpp-3.2.2-3mdk
gcc-doc-3.3.1-2mdk
gcc2.96-cpp-2.96-0.82mdk
[root@cpe-69-133-112-109 matt]#

Last edited by matt kramer; 07-25-2006 at 10:17 PM.
 
Old 07-25-2006, 11:04 PM   #4
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 59
A quick google turned up this site which has a lot of nice answers. http://speculation.org/garrick/urpmifaq.txt

When you ran the rpm -query all command, the listed packages are installed.
# rpm -qa |grep gcc
libgcc1-3.2.2-3mdk
gcc-cpp-3.2.2-3mdk
gcc-doc-3.3.1-2mdk
gcc2.96-cpp-2.96-0.82mdk

I don't see just plain gcc listed so, the first thing I would try is to check your urpmi media sources.
urpmq --list-media

http://easyurpmi.zarb.org/ has a nice tool for adding media sources.

make sure things are update with a command like ....
urpmi --auto-select

Then, I would try to install gcc again
urpmi gcc
 
Old 07-25-2006, 11:10 PM   #5
matt kramer
LQ Newbie
 
Registered: Jul 2006
Distribution: Mandrake
Posts: 29

Original Poster
Rep: Reputation: 15
Code:
[root@cpe-69-133-112-109 matt]# urpmq --list-media
Installation Desktop CD1 (x86) (cdrom1)
Installation Desktop CD2 (x86) (cdrom2)
Installation Desktop CD2 (x86) (cdrom3)
[root@cpe-69-133-112-109 matt]# urpmi --auto-select
Everything already installed
[root@cpe-69-133-112-109 matt]# urpmi gcc
The following packages contain gcc: gcc2.96-cpp libgcc1 gcc-cpp gcc-doc
[root@cpe-69-133-112-109 matt]#
 
Old 07-25-2006, 11:28 PM   #6
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 59
Quote:
# urpmq --list-media
Installation Desktop CD1 (x86) (cdrom1)
Installation Desktop CD2 (x86) (cdrom2)
Installation Desktop CD2 (x86) (cdrom3)
That shows that you have only cdroms for media sources.
I would go to http://easyurpmi.zarb.org/ and setup the sources so you can grab packages off the net.
 
Old 07-26-2006, 05:14 PM   #7
matt kramer
LQ Newbie
 
Registered: Jul 2006
Distribution: Mandrake
Posts: 29

Original Poster
Rep: Reputation: 15
not sure about everything i just did but it looks like media was added.

Code:
[root@cpe-69-133-112-109 matt]# urpmq --list-media
Installation Desktop CD1 (x86) (cdrom1)
Installation Desktop CD2 (x86) (cdrom2)
Installation Desktop CD2 (x86) (cdrom3)
main
contrib
updates
so i can download updates and my core was updated? what else?
 
Old 07-26-2006, 05:20 PM   #8
matt kramer
LQ Newbie
 
Registered: Jul 2006
Distribution: Mandrake
Posts: 29

Original Poster
Rep: Reputation: 15
[root@cpe-69-133-112-109 matt]# urpmi gcc
To satisfy dependencies, the following packages are going to be installed (30 MB):
binutils-2.13.90.0.18-3mdk.i586
gcc-3.2.2-3mdk.i586
glibc-2.3.1-10.1.91mdk.i586
glibc-devel-2.3.1-10.1.91mdk.i586
libbinutils2-2.13.90.0.18-3mdk.i586
Is this OK? (Y/n) y
Please insert the medium named "Installation Desktop CD1 (x86) (cdrom1)" on device [/dev/hdc]
Press Enter when ready...
http://mandrake.mirrors.pair.com/Man...-3mdk.i586.rpm
http://mandrake.mirrors.pair.com/Man...91mdk.i586.rpm
http://mandrake.mirrors.pair.com/Man...91mdk.i586.rpm
installing /var/cache/urpmi/rpms/glibc-devel-2.3.1-10.1.91mdk.i586.rpm /var/cache/urpmi/rpms/binutils-2.13.90.0.18-3mdk.i586.rpm /var/cache/urpmi/rpms/gcc-3.2.2-3mdk.i586.rpm /var/cache/urpmi/rpms/libbinutils2-2.13.90.0.18-3mdk.i586.rpm /var/cache/urpmi/rpms/glibc-2.3.1-10.1.91mdk.i586.rpm

Preparing... ##################################################
1:glibc ##################################################
2:glibc-devel ##################################################
3:libbinutils2 ##################################################
4:binutils ##################################################
5:gcc ##################################################
[root@cpe-69-133-112-109 matt]# gcc
gcc: no input files
[root@cpe-69-133-112-109 matt]#
 
Old 07-26-2006, 05:21 PM   #9
matt kramer
LQ Newbie
 
Registered: Jul 2006
Distribution: Mandrake
Posts: 29

Original Poster
Rep: Reputation: 15
thank you homey. i really appreciate that. i've been trying to get help with this for days. much love. my homie. good lookin out.
 
Old 07-26-2006, 05:27 PM   #10
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
Why not search for gcc using the MCC's Software Installation program? It would be a lot easier. For the compiler packages and glibc packages, you don't want to mix and match versions or use packages built by someone else. Using another source for these could result in very large dependency lists down the line if you aren't careful, because everything is dependant on them. The compiler and libraries that you want to install are on your installation discs.
 
Old 07-26-2006, 05:29 PM   #11
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
You posted your last message as I was composing mine. I'm glad that you got gcc installed.
 
Old 07-26-2006, 06:09 PM   #12
oskar
Senior Member
 
Registered: Feb 2006
Location: Austria
Distribution: Ubuntu 12.10
Posts: 1,142

Rep: Reputation: 49
What do you need gcc for?
I'm just asking, because one of the very first things I did when I started with linux was installing gcc, to compile a bunch of programs that were easily available anyway.
 
Old 07-26-2006, 06:19 PM   #13
matt kramer
LQ Newbie
 
Registered: Jul 2006
Distribution: Mandrake
Posts: 29

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jschiwal
Why not search for gcc using the MCC's Software Installation program? It would be a lot easier. For the compiler packages and glibc packages, you don't want to mix and match versions or use packages built by someone else. Using another source for these could result in very large dependency lists down the line if you aren't careful, because everything is dependant on them. The compiler and libraries that you want to install are on your installation discs.
that's just the thing. i can't locate them on the installation disks on this machine. i could on other machines but not this one. i have no developer section when viewing the packages on this machine.

Last edited by matt kramer; 07-26-2006 at 06:35 PM.
 
Old 07-26-2006, 06:24 PM   #14
matt kramer
LQ Newbie
 
Registered: Jul 2006
Distribution: Mandrake
Posts: 29

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by oskar
What do you need gcc for?
I'm just asking, because one of the very first things I did when I started with linux was installing gcc, to compile a bunch of programs that were easily available anyway.
alot of programs are not pre built. i come across many programs that only offer source. actually more than alot, most. plus i'm a programmer. haven't programmed anything in a few years but i should. wanting to learn to program on linux. wanting to learn everything about linux. i hate Windows. who knows. just something that should be on my machine to download programs sources if nothing else.

Last edited by matt kramer; 07-26-2006 at 06:40 PM.
 
Old 07-26-2006, 06:26 PM   #15
matt kramer
LQ Newbie
 
Registered: Jul 2006
Distribution: Mandrake
Posts: 29

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jschiwal
Why not search for gcc using the MCC's Software Installation program? It would be a lot easier. For the compiler packages and glibc packages, you don't want to mix and match versions or use packages built by someone else. Using another source for these could result in very large dependency lists down the line if you aren't careful, because everything is dependant on them. The compiler and libraries that you want to install are on your installation discs.
umm, cause that was the first thing i tried and i didn't have those packages. they aren't on my disk.

Last edited by matt kramer; 07-26-2006 at 06:31 PM.
 
  


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
Install or not install newest GCC version on Solaris 10. Zepiroth Solaris / OpenSolaris 6 05-26-2006 03:42 AM
Help me install GCC today! <-- 1yr without gcc :( nectron101 Linux - Newbie 4 04-17-2006 08:57 PM
install new gcc v3.4.5 over gcc v3.2.2 on red hat 9 mlaich Linux - Newbie 2 01-01-2006 09:52 PM
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
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 04:12 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