upgrade expat from version 1.95.6 to latest one

goldeneyes

New member
Joined
Jul 23, 2007
Messages
3
Hello,

I encounter an issue to upgrade (or installing from scratches by first uninstalling version 1.95.6)

I would like to know what are the eligible steps which need to be taken when I would like to have the lates version of expat inside my server.

The OS is : Centos 4 32 bit

when I run phpinfo() function from the server then I get the following output:

XML Support = active
XML Namespace Support = active
EXPAT Version = EXPAT Version

Also I have found expat files in the following location:

/usr/local/directadmin/customapache/php-4.4.7/ext/xml/expat
/usr/local/directadmin/customapache/php-4.4.7/ext/xml/expat/internal.h
/usr/local/directadmin/customapache/php-4.4.7/ext/xml/expat/xmlparse.c
/usr/local/directadmin/customapache/php-4.4.7/ext/xml/expat/xmltok_impl.c
/usr/local/directadmin/customapache/php-4.4.7/ext/xml/expat/README
/usr/local/directadmin/customapache/php-4.4.7/ext/xml/expat/README.php
/usr/local/directadmin/customapache/php-4.4.7/ext/xml/expat/utf8tab.h
/usr/local/directadmin/customapache/php-4.4.7/ext/xml/expat/xmltok.c
/usr/local/directadmin/customapache/php-4.4.7/ext/xml/expat/xmltok.lo
/usr/local/directadmin/customapache/php-4.4.7/ext/xml/expat/xmltok_impl.h
/usr/local/directadmin/customapache/php-4.4.7/ext/xml/expat/xmlrole.h
/usr/local/directadmin/customapache/php-4.4.7/ext/xml/expat/xmlrole.lo
/usr/local/directadmin/customapache/php-4.4.7/ext/xml/expat/xmltok.h
/usr/local/directadmin/customapache/php-4.4.7/ext/xml/expat/iasciitab.h
/usr/local/directadmin/customapache/php-4.4.7/ext/xml/expat/ascii.h
/usr/local/directadmin/customapache/php-4.4.7/ext/xml/expat/expat.h
/usr/local/directadmin/customapache/php-4.4.7/ext/xml/expat/winconfig.h
/usr/local/directadmin/customapache/php-4.4.7/ext/xml/expat/xmltok_ns.c
/usr/local/directadmin/customapache/php-4.4.7/ext/xml/expat/latin1tab.h
/usr/local/directadmin/customapache/php-4.4.7/ext/xml/expat/xmlrole.o
/usr/local/directadmin/customapache/php-4.4.7/ext/xml/expat/Changes
/usr/local/directadmin/customapache/php-4.4.7/ext/xml/expat/xmlparse.lo
/usr/local/directadmin/customapache/php-4.4.7/ext/xml/expat/asciitab.h
/usr/local/directadmin/customapache/php-4.4.7/ext/xml/expat/xmlrole.c
/usr/local/directadmin/customapache/php-4.4.7/ext/xml/expat/xmltok.o
/usr/local/directadmin/customapache/php-4.4.7/ext/xml/expat/xmlparse.o
/usr/local/directadmin/customapache/php-4.4.7/ext/xml/expat/nametab.h
/usr/local/include/php/ext/xml/expat
/usr/local/include/php/ext/xml/expat/internal.h
/usr/local/include/php/ext/xml/expat/utf8tab.h
/usr/local/include/php/ext/xml/expat/xmltok_impl.h
/usr/local/include/php/ext/xml/expat/xmlrole.h
/usr/local/include/php/ext/xml/expat/xmltok.h
/usr/local/include/php/ext/xml/expat/iasciitab.h
/usr/local/include/php/ext/xml/expat/ascii.h
/usr/local/include/php/ext/xml/expat/expat.h
/usr/local/include/php/ext/xml/expat/winconfig.h
/usr/local/include/php/ext/xml/expat/latin1tab.h
/usr/local/include/php/ext/xml/expat/asciitab.h
/usr/local/include/php/ext/xml/expat/nametab.h
/usr/lib/python2.3/lib-dynload/pyexpat.so
/usr/lib/python2.3/xml/parsers/expat.pyc
/usr/lib/python2.3/xml/parsers/expat.py
/usr/lib/python2.3/xml/parsers/expat.pyo
/usr/lib/python2.3/xml/dom/expatbuilder.pyc
/usr/lib/python2.3/xml/dom/expatbuilder.pyo
/usr/lib/python2.3/xml/dom/expatbuilder.py
/usr/lib/python2.3/xml/sax/expatreader.pyc
/usr/lib/python2.3/xml/sax/expatreader.py
/usr/lib/python2.3/xml/sax/expatreader.pyo
/usr/lib/libexpat.so.0
/usr/lib/libexpat.so.0.5.0
/usr/share/doc/expat-1.95.7
/usr/share/doc/expat-1.95.7/COPYING
/usr/share/doc/expat-1.95.7/README
/usr/share/doc/libxml2-devel-2.6.16/tutorial/includexpath.c

Thanking eveyone in advaned
 
Last edited:
Please post me an output of:
Code:
cat /usr/local/directadmin/customapache/configure.php | grep with-expat-dir

P.S. did you do "./build clean", before "./build php n" ?
 
Hi,

The output is :

empty

p.s.
I tried to add the following rows:
--with-expat-dir=/usr \
--with-xmlrpc

but this is not working.
when I try to recompile PHP then I get error.

SO,
I did some investigation and found the following:

The current version of expat was installed through RPM. ( I meant to version 1.95.6)

As it seems to me , when expat is installed through RPM then there is no need to use : --with-expat-dir=/usr \


also , some more info:

run the following command:

# whereis expat
The output is:
expat:

# rpm -qa | grep expat
The output is:
expat-1.95.7-4

So , I need to figure out , how to uninstall "expat-1.95.7-4" (by the way , now I have noticed that phpinfo() give output "1.95.6" and rpm -qa | grep expat give output "expat-1.95.7-4"

so , maybe I need to know how to uninstall RPM ? and this will help me to uninstall "expat version 1.95.6" ?
 
Back
Top