LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   expat-2.0.1 rpm package (http://www.linuxquestions.org/questions/linux-software-2/expat-2-0-1-rpm-package-799384/)

jaffd 04-01-2010 09:58 AM

expat-2.0.1 rpm package
 
I have tried looking for expat xml parser version 2.0.1 rpm package for centos or RHEL but have not been able to find one.

I did find one based for fedora (x86), can this be installed on centos without any issues??

Also, I have found a tar package (expat-2.0.1.tar.gz), is the correct directory to decompress and install this under the /usr/local/bin?

Thanks for your help

knudfl 04-01-2010 02:02 PM

Welcome to LQ. ___:)___

I suggest, that you create an rpm package ..
And no, it is not a good idea with /usr/local/ ,
./configure --prefix=/usr , is to be preferred.

Checking with the compat-expat1 ( 1.95 ), if any conflicts.
> > There isn't any, but if you install with ./configure &&
make && su -c && make install, take care removing expat-devel.
(( wget http://download.fedora.redhat.com/pu...95.8-4.src.rpm ))
.....

The expat-2.0.1 source code SRC RPM :
http://download.fedora.redhat.com/pu....0.1-5.src.rpm

# yum remove expat-devel
( if you want the new devel version.)

Setting up the rpmbuild account in /home/<username>/
http://www.linuxquestions.org/questi...1-a-766486/#13
Please replace <username> with real username.

Now, rpm -Uvh expat-2.0.1-5.src.rpm, will install to /home/<->/rpms/
cd rpms/SPECS/ , and please edit the file 'expat.spec'
Line 2 :
Name: compat2-expat
Line 30 :
%setup -q -n expat-%{version}
Next : rpmbuild -bb expat.spec
... And ....
rpm -Uvh --force rpms/RPMS/i386/compat2-expat-2.0.1-5.i386.rpm
Reason for ' --force ' : The file /usr/share/man/man1/xmlwf.1.gz
is already present. ( I.e. harmless ).
.....


All times are GMT -5. The time now is 06:15 PM.