LinuxQuestions.org
Review your favorite Linux distribution.
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 07-28-2011, 07:55 AM   #1
ashesh0326
Member
 
Registered: Jan 2007
Distribution: Suse 10.0, FC 6
Posts: 93

Rep: Reputation: 15
Question Issues with libssl.so libcrypto.so


Code:
/usr/bin/php: /usr/local/zend/lib/libssl.so.0.9.8: no version information available (required by /usr/bin/php)
/usr/bin/php: /usr/local/zend/lib/libcrypto.so.0.9.8: no version information available (required by /usr/bin/php)
Hi guys. I recently installed zend-framework and zend-server on my office desktop and ever since, I've been getting the above warning messages everytime I hit the tab for autocomplete on the shell (especially when using git) or when I run any random PHP file as script. Moreover, this problem breaks some stuff at times, for example, git GUI never works for me. And getting this warning everytime is downright annoying as well.

From the looks of it, the Zend installation somehow messed up my linkages. I'd like to know how to fix this. Any help?

Thanks in advance.
 
Old 07-28-2011, 09:12 AM   #2
sundialsvcs
Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,452

Rep: Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172
Start with, as root: /sbin/ldconfig.

This will rebuild the "loader cache" file, which is what the loader uses to resolve requests for various library-names to a direct reference to the appropriate file. (Basically, it searches for everything all at once and caches the result of that search.) This should have happened as part of any library update, but maybe it didn't.

Unfortunately you also must verify that the crypto (and other?) libraries on your system have not been compromised. If the message vanishes after doing "ldconfig," it is reasonable to presume (absent other indications of malfeasance) that they have not.
 
1 members found this post helpful.
Old 07-28-2011, 10:26 AM   #3
barunparichha
Member
 
Registered: Jun 2006
Location: Bangalore,india
Distribution: Linux(Redhat,fedora,suse,ubantu), Solaris (s8/s9/s10/nevada/open-solaris)
Posts: 283

Rep: Reputation: 32
Please have a look into these points too:

1. If /usr/local/zend/lib/libssl.so.0.9.8 file exists.
2. nm /usr/local/zend/lib/libssl.so.0.9.8 (To check if library is proper)
3. In your Makefile you must be using libssl.so. Check if this file points to /usr/local/zend/lib/libssl.so.0.9.8
 
1 members found this post helpful.
Old 07-29-2011, 06:51 AM   #4
ashesh0326
Member
 
Registered: Jan 2007
Distribution: Suse 10.0, FC 6
Posts: 93

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by sundialsvcs View Post
Start with, as root: /sbin/ldconfig.

This will rebuild the "loader cache" file, which is what the loader uses to resolve requests for various library-names to a direct reference to the appropriate file. (Basically, it searches for everything all at once and caches the result of that search.) This should have happened as part of any library update, but maybe it didn't.

Unfortunately you also must verify that the crypto (and other?) libraries on your system have not been compromised. If the message vanishes after doing "ldconfig," it is reasonable to presume (absent other indications of malfeasance) that they have not.
sudo ldconfig worked like a charm, thanks. Though it doesn't seem to suppress the libcrypto warning, any clues about that?
 
Old 07-29-2011, 09:11 AM   #5
sundialsvcs
Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,452

Rep: Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172
Quote:
Originally Posted by ashesh0326 View Post
sudo ldconfig worked like a charm, thanks. Though it doesn't seem to suppress the libcrypto warning, any clues about that?
If it did not suppress the warning, then you have a little detective-work to do. So, put on your gumshoe hat and get to work.   Some of the things you need to consider are:
  • Do the libraries that you see here, actually exist on this computer? What other versions also exist? Are the libraries in the same places? Are the libraries that you are looking for, in the right place(s)?
  • Where is the demand for this particular library version coming from? Is it demanding the right thing? What's causing it to demand this version rather than, say, that one?

You get the idea. You're diagnosing a problem, and so there's no categorical way for anyone to tell you what the source of the problem might be. What you do know is that, either the software is asking for the wrong thing; or it's asking for the right thing but the right thing is not there; or, it's asking for the right thing, and the right thing is there, but it can't find it. (Or one last possibility: that it's finding it but it's somehow improperly-installed and therefore it can't load it.)

Happy sleuthing!

Last edited by sundialsvcs; 08-09-2011 at 06:18 PM.
 
Old 08-03-2011, 08:48 AM   #6
ashesh0326
Member
 
Registered: Jan 2007
Distribution: Suse 10.0, FC 6
Posts: 93

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by sundialsvcs View Post
If it did not suppress the warning, then you have a little detective-work to do.   So, put on your gumshoe hat and get to work.   Some of the things you need to consider are:
  • Do the libraries that you see here, actually exist on this computer? What other versions also exist? Are the libraries in the same places? Are the libraries that you are looking for, in the right place(s)?
  • Where is the demand for this particular library version coming from? Is it demanding the right thing? What's causing it to demand this version rather than, say, that one?

You get the idea. You're diagnosing a problem, and so there's no categorical way for anyone to tell you what the source of the problem might be. What you do know is that, either the software is asking for the wrong thing; or it's asking for the right thing but the right thing is not there; or, it's asking for the right thing, and the right thing is there, but it can't find it. (Or one last possibility: that it's finding it but it's somehow improperly-installed and therefore it can't load it.)

Happy sleuthing!

Actually, that didn't work. It's still making life miserable for me, autocomplete has been rendered more or less unusable now.

I'm surprised that it didn't work. I think I'll have to rebuild the files, or maybe the system is pointing to a different file altogether which doesn't contain the version information.

And since the system now points to files inside the Zend folder, I'm assuming that it was the Zend installation that wrecked my system. Poor on Zend's part.
 
Old 08-08-2011, 09:40 AM   #7
ashesh0326
Member
 
Registered: Jan 2007
Distribution: Suse 10.0, FC 6
Posts: 93

Original Poster
Rep: Reputation: 15
Bump.

This is causing major system problems. I'm unable to start nautilus, for example. Can anyone please help me rebuild these linkages? Looks like there is no other option but to reinstall.
 
Old 08-09-2011, 06:19 PM   #8
sundialsvcs
Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,452

Rep: Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172
Nonsense! Put on your gumshoes and figure out what's wrong! "Reinstalling" might not solve anything whatsoever. (And besides, it's what "Windows weenies" do ... )
 
Old 08-09-2011, 08:13 PM   #9
John VV
Guru
 
Registered: Aug 2005
Posts: 13,446

Rep: Reputation: 1798Reputation: 1798Reputation: 1798Reputation: 1798Reputation: 1798Reputation: 1798Reputation: 1798Reputation: 1798Reputation: 1798Reputation: 1798Reputation: 1798
libssl.so and libcrypto.so are two important system files

and are in /lib

now having a DIFFERENT copies of these in "/usr/local/zend/lib/" would cause some problems
the SYSTEM copy in /lib is read into the OS FIRST and used
the different one in /usr/local/zend/lib is never even read nor seen by the OS
now YOU ran ld on the copies in /usr/local/zend so the OS is NOW using those over the default -- that will cause problems

there is a few ways around that
rebuilt the program and point it to the different versions - best way

or
use a OS that uses that explicit version and never update ( not recommend)


i ran into a similar problem running a MUST use program on fedora 11
i ended up on cent5
now running sl6 WITH a like problem the
the program is looking for libcrypto.so.0.9.8 when the OS has libcrypto.so.1.0
make a link from 1.0 to 0.9.8 fixed it

Last edited by John VV; 08-09-2011 at 08:15 PM.
 
Old 08-09-2011, 08:46 PM   #10
sundialsvcs
Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,452

Rep: Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172
/me nods...

If you have more than one copy of this library on your system, then that's pretty much a dead giveaway that there will be sea monsters in the waters that you are about to navigate. (To find out if this might be the case, first run /sbin/updatedb as root, then locate the libraries in question.)

When almost any Linux program runs, it will specify a list of libraries that it needs ... and it will expect the system to be able to furnish suitable copies of those libraries "on the fly." (In the Microsoft Windows environment, such libraries are called "DLLs.") Linux has a rather clever and rather sophisticated way of being able to resolve those requirements ... a system that (decidedly unlike Microsoft Windoze...) can support having multiple versions of the same library on the same system at the same time.

The linchpin to this system is "the loader library cache," which you can begin to get a grip on by reading man ldconfig and man ld. Because it would be too expensive to have to search for these libraries every time a program needed to be loaded, the loader (ld) expects the necessary information to be pre-computed in advance (by ldconfig). Without straying too far from our present topic, let's agree to say that "instead of looking for libraries by 'file names,' programs can look for them by 'keys' which are, thanks to the magic of the cache-file, resolved to 'file names.' (Let's just agree, shall we, to leave it at that...)

In short: When the rubber finally hits the road, it doesn't matter if a particular file exists. What matters is, whether or not it's in the loader cache file, and therefore, whether the contents of that file are current. (Hence /sbin/ldconfig, and all the various and wonderful configuration files that are associated with it...)

"Linux." It's weird. It's wonderful. It works.

Last edited by sundialsvcs; 08-09-2011 at 08:50 PM.
 
  


Reply

Tags
autocomplete, linkage, php, shell, zend


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
libssl.so.5 and libcrypto.so.5 needed, but got libssl.so.6?! Lobais Linux - Software 4 10-08-2008 03:59 AM
Where do I get libcrypto,libqt,libssl Kasperisa Linux - Newbie 7 08-01-2003 09:57 PM
libcrypto and libssl Ju Deddo Koinu Linux - Software 1 05-01-2003 11:54 PM
libcrypto.so.2 & libssl.so.2 safrout Linux - Software 11 06-28-2002 08:48 AM
libcrypto and libssl thanko Linux - Software 2 03-13-2002 12:16 PM


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