LinuxQuestions.org
Help answer threads with 0 replies.
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-24-2006, 12:56 AM   #1
matt kramer
LQ Newbie
 
Registered: Jul 2006
Distribution: Mandrake
Posts: 29

Rep: Reputation: 15
help locating a c compiler


how do i know if i have one and how do i put it in my path once i've located it?

Last edited by matt kramer; 07-24-2006 at 01:39 AM.
 
Old 07-24-2006, 01:41 AM   #2
raskin
Senior Member
 
Registered: Sep 2005
Location: Russia
Distribution: NixOS (http://nixos.org)
Posts: 1,899

Rep: Reputation: 68
If simply running gcc fails, I guess it is not installed. Get the rpm and install it.
 
Old 07-24-2006, 02:25 AM   #3
matt kramer
LQ Newbie
 
Registered: Jul 2006
Distribution: Mandrake
Posts: 29

Original Poster
Rep: Reputation: 15
well i looked at the rpm packages on my install disk and found these:

gcc2.96-cpp-2.96-0.82mdk.i586.rpm
gcc-cpp-3.2.2-3mdk.i586.rpm

i tried to install them and was told by the system they were already installed. so how do i make them work?
 
Old 07-24-2006, 02:28 AM   #4
contiguous
LQ Newbie
 
Registered: Jul 2006
Location: Palestine
Distribution: Red Hat Enterprise Linux V.4
Posts: 8

Rep: Reputation: 0
you can simply type:

Quote:
rpm -qv gcc
for querying version.

or

Quote:
rpm -qi gcc
for querying info.

You can go to this web site for more help:

http://httpd.apache.org/docs/2.2/install.html
 
Old 07-24-2006, 02:47 AM   #5
matt kramer
LQ Newbie
 
Registered: Jul 2006
Distribution: Mandrake
Posts: 29

Original Poster
Rep: Reputation: 15
it said gcc is not installed.

im confused. why if i try to install the package it sais it's already installed but then the above cammand tells me it's not installed?
 
Old 07-24-2006, 03:05 AM   #6
raskin
Senior Member
 
Registered: Sep 2005
Location: Russia
Distribution: NixOS (http://nixos.org)
Posts: 1,899

Rep: Reputation: 68
Maybe this packages are only part of gcc - cpp, which is not enough for compiling anything.. Maybe you'll have to download a package called gcc-<version>.rpm, without cpp ore something in name.
 
Old 07-24-2006, 03:30 AM   #7
matt kramer
LQ Newbie
 
Registered: Jul 2006
Distribution: Mandrake
Posts: 29

Original Poster
Rep: Reputation: 15
Unhappy

i'm having the same problem i'm having with installing packages needed to play dvd's:

every package i try to install requires a list of more packages wich require more packages which require more packages and on and on and on infinity. it's impossible.

i just tried to install: gcc-3.4.3-7mdk.i586.rpm

and i got: error: failed dependencies:
binutils >= 2.15.92.0.2-1mdk is needed by gcc-3.4.3-7mdk
gcc-cpp = 3.4.3-7mdk is needed by gcc-3.4.3-7mdk
libgcc >= 3.3.2-5mdk is needed by gcc-3.4.3-7mdk
glibc-devel >= 2.2.5-14mdk is needed by gcc-3.4.3-7mdk

so i tried to install the first one on the list: binutils, and of course..............

error: failed dependencies:
lib64binutils2 = 2.15.92.0.2-6mdk is needed by binutils-2.15.92.0.2-6mdk
libbfd-2.15.92.0.2.so()(64bit) is needed by binutils-2.15.92.0.2-6mdk
libc.so.6()(64bit) is needed by binutils-2.15.92.0.2-6mdk
libc.so.6(GLIBC_2.2.5)(64bit) is needed by binutils-2.15.92.0.2-6mdk
libc.so.6(GLIBC_2.3)(64bit) is needed by binutils-2.15.92.0.2-6mdk
libdl.so.2()(64bit) is needed by binutils-2.15.92.0.2-6mdk
libdl.so.2(GLIBC_2.2.5)(64bit) is needed by binutils-2.15.92.0.2-6mdk
libopcodes-2.15.92.0.2.so()(64bit) is needed by binutils-2.15.92.0.2-6mdk

but i found out something cool: you can install packages without typing their full path by using *. like rpm -i binutils*. that's freakin' sweet. that's gonna make my linux experience a little smoother.

question: if i type rpm -i binutils* and i have more than one package starting with binutls will it install all of them?

ok, back to the compiler problem

Last edited by matt kramer; 07-24-2006 at 03:47 AM.
 
Old 07-24-2006, 03:53 AM   #8
contiguous
LQ Newbie
 
Registered: Jul 2006
Location: Palestine
Distribution: Red Hat Enterprise Linux V.4
Posts: 8

Rep: Reputation: 0
Try changing your directory to where the Linux packages (on your CD, or elsewhere), and type the following:

rpm -ivh gcc-'version'.rpm --aid

The --aid option will automatically install any packages that are needed by 'gcc', from the current directory (the packages directory).
 
Old 07-24-2006, 04:05 AM   #9
raskin
Senior Member
 
Registered: Sep 2005
Location: Russia
Distribution: NixOS (http://nixos.org)
Posts: 1,899

Rep: Reputation: 68
Do you have yum?
 
Old 07-24-2006, 04:09 AM   #10
matt kramer
LQ Newbie
 
Registered: Jul 2006
Distribution: Mandrake
Posts: 29

Original Poster
Rep: Reputation: 15
it said that --aid is an uknown option. someone told me to use urpmi for that similar function which i tried that too but it's still coming up with missing dependencies.
 
Old 07-24-2006, 04:17 AM   #11
matt kramer
LQ Newbie
 
Registered: Jul 2006
Distribution: Mandrake
Posts: 29

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by raskin
Do you have yum?
i don't know. i typed yum, whatever that is, and it didn't recognize it. as of yet, i only know how to search for rpm's that are installed. i tried rpm -qi yum*, untuitively trying to utilize all the resources i have aquired which are slim, but that didn't work. guess one can't use * in this way.

.......but i looked it up on the net. let's see where that takes me.................

that's neat. how do i use it, lol.

i got it installed. looks like i pass an rpm to it?
i think it's expecting one. it gave me this:

./yum/__init__.py:1097: Warning: 'yield' will become a reserved keyword in the future
./yum/__init__.py:1121: Warning: 'yield' will become a reserved keyword in the future
Traceback (most recent call last):
File "./yummain.py", line 22, in ?
from yum import Errors
File "./yum/__init__.py", line 21, in ?
import rpm
ImportError: No module named rpm

Last edited by matt kramer; 07-24-2006 at 04:29 AM.
 
Old 07-24-2006, 04:55 AM   #12
contiguous
LQ Newbie
 
Registered: Jul 2006
Location: Palestine
Distribution: Red Hat Enterprise Linux V.4
Posts: 8

Rep: Reputation: 0
try 'removing' (if this can be done) gcc:

rpm gcc --erase --nodeps

--nodeps : will remove the gcc package even if other packages are dependent on it.

then reinstall it again from your linux cds.
 
Old 07-24-2006, 05:48 AM   #13
matt kramer
LQ Newbie
 
Registered: Jul 2006
Distribution: Mandrake
Posts: 29

Original Poster
Rep: Reputation: 15
it's like i thought, gcc doesn't exist, "package not installed"

Last edited by matt kramer; 07-24-2006 at 05:50 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
checking for C compiler default output... configure: error: C compiler cannot create fiorejm Linux - Software 6 11-12-2009 01:35 PM
Locating Gnome 2 directories in C TarrasQ Programming 0 12-20-2004 01:01 PM
Locating Kernel arimus25 Linux - Software 3 02-24-2004 06:22 PM
locating software SkimMilk Linux - Newbie 2 10-26-2003 11:22 AM
locating lilo seeker1 Linux - Newbie 12 01-11-2003 02:22 AM


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