LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > External Applications > Apache Migration/Compatibility > Build Matching PHP Issue

Reply
 
Thread Tools Display Modes
  #11  
Old 07-15-2010, 03:43 AM
sunjith sunjith is offline
New Member
 
Join Date: Jul 2010
Posts: 2
Code:
rm -f /usr/lib64/libxml2.so.2
Fixed it.
Reply With Quote
  #12  
Old 07-15-2010, 04:04 AM
sunjith sunjith is offline
New Member
 
Join Date: Jul 2010
Posts: 2
Do this as well to avoid other problems:
Code:
ln -s /opt/xml2/lib/libxml2.so.2 /usr/lib64/libxml2.so.2
Reply With Quote
  #13  
Old 10-13-2010, 09:58 PM
xing xing is offline
LiteSpeed Staff
 
Join Date: Oct 2003
Location: Los Angeles, California
Posts: 380
Changing the symlink works but with a gotcha. Sometimes a yum update/upgrade will force the system to rebuild the library links and when that happens, it will revert the symlink back to the original libxml2 library that came with the distro.

Overwrite the /usr/lib64/libxml2.so.2.6.26 file with the /usr/local/lib/libxml2.so.2.7.7 file. This will work for as long as the libxml rpm package is not updated.
Reply With Quote
  #14  
Old 12-04-2010, 05:39 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Digging a little bit deeper on this, came cross http://www.eyrie.org/~eagle/notes/rpath.html

I think something wrong with RPATH built into the binary, it can be checked with
Code:
readelf -d lsphp5 | grep RPATH
If somehow /usr/lib(64) got into RPATH before /opt/xml/lib, it could cause wrong library loaded. there is a tool called "patchelf" which can update RPATH built into ELF binary.
http://nixos.org/patchelf.html

The root cause might be the GNU build tool chain, autoconf, libtool, etc.
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 01:40 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.