LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-22-2009, 11:05 PM   #1
prak86
LQ Newbie
 
Registered: Dec 2009
Posts: 21

Rep: Reputation: 15
Question Failed Dependency error occurs while installing openssl in centos


Hi
I had installed Nagios and then while trying to install nrpe, it shows the error

checking for SSL headers... configure: error: Cannot find ssl headers


For this,i was trying to install openssl for ssl headers and ssl libraries by using the command

rpm -ivh openssl-devel-0.9.7a-43.16.i386.rpm krb5-devel-1.3.4-47.i386.rpm e2fsprogs-devel-1.35-12.5.el4.i386.rpm zlib-devel-1.2.1.2-1.2.i386.rpm

while running this command, it shows failed dependency error as

warning: openssl-devel-0.9.7a-43.16.i386.rpm: Header V3 DSA signature: NOKEY, key ID 1d1e034b
warning: e2fsprogs-devel-1.35-12.5.el4.i386.rpm: Header V3 DSA signature: NOKEY, key ID a7048f8d
warning: zlib-devel-1.2.1.2-1.2.i386.rpm: Header V3 DSA signature: NOKEY, key ID 73307de6
error: Failed dependencies:
openssl = 0.9.7a-43.16 is needed by openssl-devel-0.9.7a-43.16.i386
krb5-libs = 1.3.4-47 is needed by krb5-devel-1.3.4-47.i386
e2fsprogs = 1.35 is needed by e2fsprogs-devel-1.35-12.5.el4.i386
zlib = 1.2.1.2 is needed by zlib-devel-1.2.1.2-1.2.i386

I tried running the same command by giving --nodeps, by that time its getting installed properly and while cofiguring, is shows the error

configure error: cannot find SSL Libraries

I even tried to configure by giving the path,but the error remains the same.

I got stuck in this place and i cant able to proceed further. I was new to Linux, pls help me out.
 
Old 12-22-2009, 11:43 PM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Most OSs have a method of automating installation of OpenSSL.

Quote:
For this,i was trying to install openssl for ssl headers and ssl libraries by using the command

rpm -ivh openssl-devel-0.9.7a-43.16.i386.rpm krb5-devel-1.3.4-47.i386.rpm e2fsprogs-devel-1.35-12.5.el4.i386.rpm zlib-devel-1.2.1.2-1.2.i386.rpm
You are only installing the development packages with that command - you also need the core packages.

Understanding the messages:

NOKEY, key ID 1d1e034b type messages mean that the package has not been verified. You need to install the package keys from the same place you got the rpm from. If you used a third party source which does notsupply valid keys, find another place to get the packages from.

error: Failed dependencies:
... an error like this means that there is some software which needs to be installed first before you can expect the software you are installing to work. You can, indeed, use --nodeps, but that will likely create a broken installation. What you do instead is read the list of needed dependencies:

Quote:
openssl = 0.9.7a-43.16 is needed by openssl-devel-0.9.7a-43.16.i386
krb5-libs = 1.3.4-47 is needed by krb5-devel-1.3.4-47.i386
e2fsprogs = 1.35 is needed by e2fsprogs-devel-1.35-12.5.el4.i386
zlib = 1.2.1.2 is needed by zlib-devel-1.2.1.2-1.2.i386
What it is telling you is that the devel packages are no good without the core packages.
 
Old 12-22-2009, 11:49 PM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
from your packages you listed ( el4) you are using the very old CentOS 4 ?????

you might want to install the current CentOS 5.4
 
Old 12-23-2009, 12:47 AM   #4
prak86
LQ Newbie
 
Registered: Dec 2009
Posts: 21

Original Poster
Rep: Reputation: 15
thanks , but I am currently working in CentOS 5.3 .
Is there any specific packages available for 5.3 version. if so where do i find it?
 
Old 12-23-2009, 12:56 AM   #5
prak86
LQ Newbie
 
Registered: Dec 2009
Posts: 21

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Simon Bridge View Post



What it is telling you is that the devel packages are no good without the core packages.
Hi,
we downloaded the core packages as specified below
e2fsprogs-1.41.9.tar.gz
krb5-libs-1.3.4-49.i386.rpm
openssl-0.9.7a-43.16.i386.rpm
zlib-1.2.3.tar.gz

and installed it...no issues in installing the core package But still it shows the same dependency errors....
 
Old 12-23-2009, 01:27 AM   #6
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Doesn't CentOS use yum to install packages?
http://wiki.centos.org/PackageManagement/Yum
http://www.centos.org/docs/5/html/yum/
... why not use that?
 
Old 12-23-2009, 01:52 AM   #7
prak86
LQ Newbie
 
Registered: Dec 2009
Posts: 21

Original Poster
Rep: Reputation: 15
I tried using the yum , but it throws the following error.

# yum install e2fsprogs-devel-1.35-12.5.el4.i386
Loaded plugins: fastestmirror
Determining fastest mirrors
Could not retrieve mirrorlist http://mirrorlist.centos.org/?releas...h=i386&repo=os error was
[Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
Error: Cannot find a valid baseurl for repo: base
 
Old 12-23-2009, 03:28 AM   #8
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
if you are running cent 5.3 [b] THEN WHY are you installing a cent/rhel 4 rpm ????? [b]
the el4 rpm's ARE NOT for cent 5 .

Do not ever try to install a cent 4 rpm in cent 5 -- you will KILL the system
 
Old 12-23-2009, 05:51 PM   #9
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Quote:
Originally Posted by prak86 View Post
I tried using the yum , but it throws the following error.

# yum install e2fsprogs-devel-1.35-12.5.el4.i386
Loaded plugins: fastestmirror
Determining fastest mirrors
Could not retrieve mirrorlist http://mirrorlist.centos.org/?releas...h=i386&repo=os error was
[Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
Error: Cannot find a valid baseurl for repo: base
There are so many problems with this that it is hard to know where to start. Clearly, the gnu/linux method of maintaining a system is very new to you. You will find there is a considerable payoff to learning how yum works: the yum man page is uncommonly useful with this.

The command as stated will not work because you have been too specific in specifying the package to install. You do not use the version numbers for example - the point of yum is that it always gets the latest packages for your system.

You have been self-installing software from rpm - this may conflict with some yum installs if only because yum does not know about them. Usually yum just reinstalls any dependencies you may already have but have not been installed via yum. However - it seems likely from your posts that you have installed el4 rpms which would be very bad indeed. Probably best to explicitly remove all those by hand first.

Next you want to make sure all your repos are enabled. The links I gave you before should tell you how to do this.

Next - upgrade your system, so all the latest packages are installed.

yum upgrade

This will take a while, depending on your connection, but that is the penalty for not using the standard methods. It will pay off later when you need to do installs. It also pays off in terms of security and bugfixes... so it would be unprofessional of me to suggest you do otherwise.

After all that - think: what is the program you want to install so as to include all dependencies automatically? Once you figure that out, you need to find out what it's package is called in the repo.

eg. to install openssl and everything it needs to run, enter:

yum install openssl

note: no version numbers.

development packages do need to be installed seperately - so if you know you need openssl and development - you enter:

yum install openssl openssl-dev

here I am guessing that the contos repo names development packages as package-dev - which is a common convention. It may not be the case.

You can find the package name for program foo with

yum search foo

which will tell you all packages with anything to do with foo. Search that list for the core package which contains the actual program and install that.

yum search ssl

You may prefer:

yum list available foo

instead.

If you have a GUI installed, you may prefer to use a GUI front-end to yum. IIRC: the one you want for centos is called yum extender:

yum install yumex

I see documentation for yumex in centos 4 but not 5 - perhaps a centos user can explain? The C4 documentation suggests that it should already be installed.

Anyway, the gui allows you to browse the repos for packages you may want as well as control which repos are active at a particular time.

You have a wonderful adventure ahead of you - have fun and let us know how you went.

As to that actual error - perhaps you are behind a proxy?
http://www.linuxquestions.org/questi...ntos-5-695319/

Last edited by Simon Bridge; 12-23-2009 at 05:53 PM.
 
Old 12-23-2009, 06:07 PM   #10
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Quote:
Originally Posted by John VV View Post
if you are running cent 5.3 [b] THEN WHY are you installing a cent/rhel 4 rpm ????? [b]
the el4 rpm's ARE NOT for cent 5 .
Newcomers often do not understand the gnu/linux approach to system maintenance and installs. Consider, our OPis likely used to windows where installing software is usually a matter of copying the binary and its support files to the My Programs folder (via installsheild for eg). A Win95 binary can still work in XP so why shouldn't a el4 rpm work in el5 - backwards compatability is most often touted as "a good thing" after all.

However - if you have the source code, backwards compatability is no longer so good. Technically, it never was - it was more of a compromise which accounts for a lot of windows quirkiness.

With the source, and a free software licence to go with it, software can be tailored to the specific system you have. Distros like slackware and gentoo take very full advantage of this to great effect for eg.

The penalty is more frequent updates - but they cost only bandwidth and the update mechanism does not snoop and does obey instructions. Further - pre-compiled packages will be distro and release specific.

How could a windows user anticipate all this goodness?

So we will keep getting newcomers who try the windows method to install third-party software - i.e. you googles for the software, finds it, downloads the files, extracts and runs the installers - gollum. Lets keep our cool when we meet them: they cannot help it.
 
  


Reply



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
failed dependency error while installing xmms and winamp in rhel5 srinu.reddy.linux007 Linux - Enterprise 8 10-16-2009 04:17 AM
"Failed Dependency error" while installing RPM for "DateTime" perl modules giridhargopal.cj Linux - Newbie 7 11-19-2008 12:05 AM
ERROR: Dependency resolution failed tronica SUSE / openSUSE 5 06-27-2006 09:52 PM
Failed Dependency installing mdadm blackdragonblood Linux - Software 3 02-03-2006 07:22 PM
UT: "fread failed: BufferCount = -248172 Error=1" occurs after gfx card change SBing Linux - Games 2 07-04-2004 04:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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