From: Joe W. <jo...@jo...> - 2008-05-31 00:17:11
|
This is on Centos 5. I was able to get it to build properly and with a little work I was able to get it to build with the '--with-ganglia' option. I did the following: First, I ran 'rpmbuild -tb gexec-0.3.8.tar.gz' which created the RPM and SRPM for your tarball. Then installed the SRPM. I then edited the tarball you supplied. Changing configure.ac to include 'AC_PREFIX_DEFAULT(/usr)' rather than 'AC_PREFIX_DEFAULT(/usr/local)'. Then changed GANGLIA_LIB to use '/usr/lib/libganglia.a' rather than '@libdir@/libganglia.a'. I also edited the Makefile to use '/usr/lib/libganglia.a' rather than '@libdir@/libganglia.a' in a couple spots. From there I copied it to '/usr/src/redhat/SOURCES/gexec-0.3.8.tar.gz'. To have it configure correctly I edited the SPEC file, removing %configure, and putting './configure --with-ganglia --host=x86_64-redhat-linux-gnu --build=x86_64-redhat-linux-gnu --target=x86_64-redhat-linux --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info' just before the 'make ROOT="$RPM_BUILD_ROOT" RPM_OPT_FLAGS="$RPM_OPT_FLAGS"' line. I then created the RPM, 'rpmbuild -ba /usr/src/redhat/SPECS/gexec.spec'. Thats the general idea anyway. Thanks again Jason and Bernard. -Joe Bernard Li wrote: > Hi Joe: > > On Fri, May 30, 2008 at 12:46 PM, Joe Williams <jo...@jo...> wrote: > > >> Expat is installed: >> >> >>> [root@m ~]# rpm -qa | grep expat >>> expat-devel-1.95.8-8.2.1 >>> expat-1.95.8-8.2.1 >>> expat-devel-1.95.8-8.2.1 >>> expat-1.95.8-8.2.1 >>> [root@m ~]# locate expat >>> /lib/libexpat.so.0 >>> /lib/libexpat.so.0.5.0 >>> /lib64/libexpat.so.0 >>> /lib64/libexpat.so.0.5.0 >>> /usr/include/expat.h >>> /usr/include/expat_external.h >>> /usr/lib/libexpat.a >>> /usr/lib/libexpat.la >>> /usr/lib/libexpat.so >>> /usr/lib64/libexpat.a >>> /usr/lib64/libexpat.la >>> /usr/lib64/libexpat.so >>> <snip> >>> >> The configure script does not seem to test for expat as it configures >> properly but make fails with the aforementioned XML errors. Any suggestions? >> > > What OS are you running? I built a snapshot tarball of gexec from SVN > trunk and was able to build the RPM on CentOS 4.x i386, perhaps you > can give it a try: > > http://therealms.org/oss/ganglia/gexec-0.3.8.tar.gz > > Just run: > > `rpmbuild -tb gexec-0.3.8.tar.gz` > > Cheers, > > Bernard > -- Name: Joseph A. Williams Email: jo...@jo... |