LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 04-27-2003, 08:42 PM   #1
s7nner
LQ Newbie
 
Registered: Apr 2003
Posts: 19

Rep: Reputation: 0
install package dependancy from xterm frustration!


hi,
i'm pretty new to linux RH8 (2weeks old). After trying to install the package such as the RH8 C compiler.. it asked for various dependencies.. i got this. it asked for another. i got that it asked for another... and finally at the end of the tunnel... i cant find the last package "KERNAL-HEADERS"??
I know i can install it via the GUI gnome menu but want to install it manually just for my own 'newbie' experience..

Q: from linux... is there any method to install the dependancies as well as the software you want in a single swoop?
i know there are other package managers for other linux distributions that can do this however i think RH8 is a good starting point...

below is the final message.. please advise where i can find this.. thanks in advance.
the software i was trying to install was gcc-3.2-7.i386.rpm
------------------------------------------------------------------
[root@c233942b rpms]# ls
binutils-2.13.90.0.2-2.i386.rpm gcc-3.2-7.i386.rpm glibc-devel-2.2.93-5.i386.rpm
[root@c233942b rpms]# rpm -Uvh *.rpm
warning: binutils-2.13.90.0.2-2.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
error: Failed dependencies:
kernel-headers is needed by glibc-devel-2.2.93-5
kernel-headers >= 2.2.1 is needed by glibc-devel-2.2.93-5
 
Old 04-27-2003, 09:00 PM   #2
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
Manualy, you have to watch the dependencies mentioned, try them one at a time until one installs, then back up from there until you succeed (it's called dependency heck, and it's sort of like DLL hell but fixable).

I would suggest that you do an "upgrade install" and choose "expert" method, then select your developmental packages. The install should then resolve your dependencies for you.

Otherwise, until you get a handle on Linux, I suggest checking out apt4rpm and Red Carpet for software management.

# Redhat links
RedHat Linux Manuals
Maximum RPM
rpmfind
Easier software management: apt4rpm - Red Carpet
RedHat 8.0 Tips & Tricks

# Redhat 8.0 configuration commands
Configure soundcard:
redhat-config-soundcard
Configure X server:
redhat-config-xfree86
Configure network:
redhat-config-network
 
Old 04-28-2003, 05:40 AM   #3
mhearn
LQ Guru
 
Registered: Nov 2002
Location: Durham, England
Distribution: Fedora Core 4
Posts: 1,565

Rep: Reputation: 57
You should get gcc from the redhat CDs, use the System Tools -> Packages gui and choose "development tools".

In general most of the common packages will come on the CDs, you should not compiling gcc from source (indeed, without a compiler, how do you do that at all?).
 
Old 07-17-2003, 07:31 PM   #4
vantorn
LQ Newbie
 
Registered: Jul 2003
Distribution: RedHat 7.3 9.0
Posts: 4

Rep: Reputation: 0
I have the same type of problem with a need for gcc in RH 7.3

I could not find kernal-headers

I installed and ran apt4rpm and this is what I got
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.

Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
gcc: Depends: glibc-devel but it is not installable
E: Broken packages

Note: glibc-devel requires kernal-headers
Are there so few using the compiler? I can find nothing much about this on the web
 
Old 07-17-2003, 07:44 PM   #5
vantorn
LQ Newbie
 
Registered: Jul 2003
Distribution: RedHat 7.3 9.0
Posts: 4

Rep: Reputation: 0
More Info about the post above:
I ran apt-get install gcc to get the message I posted

I saw a post somewhere that said that you run the kernal-source rpm to fix the problem. When I did that it said that kernal-source required gcc (gcc requires glibc-devel which requirements for kernal-header was trying to fix with kernal-source)!!!

Has to be a simple answer 7.3 has been out for a while
 
Old 07-17-2003, 07:45 PM   #6
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
It is on the install CDs. Do you have all 3 install CDs? Can you not install it with the Package Management Tool? Try putting in the first CD and mounting it.

Last edited by fancypiper; 07-17-2003 at 07:47 PM.
 
Old 07-17-2003, 08:49 PM   #7
vantorn
LQ Newbie
 
Registered: Jul 2003
Distribution: RedHat 7.3 9.0
Posts: 4

Rep: Reputation: 0
The new screen for 9.0 looks like an improvement

I tried with 7.3 CD-1 not so nice.
I went through the all tab that lists all rpms
did not find gcc or kernal-headers in the list

I am working on compiling Apache 2.x by the way
 
Old 07-18-2003, 04:49 AM   #8
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
Have you tried Gnome-RPM?
 
Old 07-18-2003, 08:26 AM   #9
vantorn
LQ Newbie
 
Registered: Jul 2003
Distribution: RedHat 7.3 9.0
Posts: 4

Rep: Reputation: 0
I am running with KDE and GNOME installed.
I checked the GNOME rpm it has the same list of packages I had in the KDE version of rpm

The question is - what to do when installing a rpm if what your installing requires kernal-headers and kernal-headers can not be found anywhere
 
Old 01-26-2004, 12:22 AM   #10
Blackrose1
Member
 
Registered: Oct 2003
Location: jacksonville, fl
Distribution: rh8
Posts: 33

Rep: Reputation: 15
I'd like to thank fancypiper for the tip about Ximian's Red Carpet. I've spent 3 weeks trying to install synaptic, and getting caught in dependency issues like vantorn did, and am glad there is a gui interface for staying up to date! Checking dependencies can make newbies dizzy and frustrated!
 
  


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
Library install roundabout....... Dependancy issues slymer Linux - Software 2 08-02-2005 02:15 PM
YUM - - Can't install! Dependancy problem on RH9? irlkersten Red Hat 7 05-07-2005 08:34 PM
Package Claims that Installed Dependancy is AWOL Starmage187 Linux - Software 4 03-25-2005 08:22 PM
xmms install/dependancy problems cdavidson Linux - Newbie 1 02-17-2004 01:11 AM
Frustration not knowing, what to install what not to install during installation hasan Slackware 10 01-22-2004 01:35 PM

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

All times are GMT -5. The time now is 12:32 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
Open Source Consulting | Domain Registration