Closed GoogleCodeExporter closed 9 years ago
Looks like you don't have expat installed anywhere we can find it. I'm
surprised the
configure check passes here:
http://code.google.com/p/libkml/source/browse/trunk/configure.ac#16
Original comment by kml.mash...@gmail.com
on 2 Mar 2009 at 9:34
I got this same error running RHEL4.
I think by default an older version of Expat is installed in /usr/
I believe XML_GetParsingStatus and other things are only available in later
version
of Expat.
If you build and install Expat using the defaults, the "make install" will put
it in
/usr/local.
The libkml configure scripts don't seem to check for the Expat version number.
Additionally, the search order looks for /usr before /usr/local, so even if you
do
have it installed in /usr/local, it won't use it.
There's no --with-expat-lib-dir or --with-expat-include-dir options, so you
can't
point it at alternate locations. (--libdir and --includedir doesn't help
either)
You could manually modify the Makefiles that require it after the fact by
changing
the LIBS = /usr/local/lib/libexpat.so but that is teadious.
One (undesirable) solution is to make Expat using --prefix=/usr. When you do a
"make
install" it will overwrite the /usr/lib/libexpat.so and /usr/include/expat.h.
I've also gotten a curl warning, since -lssh2 couldn't find libssh2. I
installed
libssh2 & libssh2-devel using RPMs and that solved the compilation but with
warnings.
But, the "make check" tests pass. I'm not sure if the tests cover this case though.
"sudo make install" doesn't work for me now. It seems to install libgtest,
liburiparser, and libminizip, but then fails on libgtest_main:
/bin/sh ../libtool --mode=install /usr/bin/install -c 'libgtest_main.la'
'/usr/local/lib/libgtest_main.la'
libtool: install: warning: relinking `libgtest_main.la'
(cd /home/rretting/download/libkml-0.9.0/third_party; /bin/sh ../libtool
--tag=CXX
--mode=relink g++ -g -O2 -o libgtest_main.la -rpath /usr/local/lib gtest_main.lo
../third_party/libgtest.la )
mv: cannot move `libgtest_main.so.0.0.0' to `libgtest_main.so.0.0.0U':
Permission denied
libtool: install: error: relink `libgtest_main.la' with the above command before
installing it
make[2]: *** [install-libLTLIBRARIES] Error 1
make[2]: Leaving directory `/home/rretting/download/libkml-0.9.0/third_party'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/home/rretting/download/libkml-0.9.0/third_party'
make: *** [install-recursive] Error 1
Original comment by RyanRett...@gmail.com
on 4 Mar 2009 at 1:22
Thanks, you guys.
Please let me know which version of expat I should use?
Can I install it in non-default path and point to it while I configure? If yes,
which
parameter name I should use?
Original comment by aijunc...@gmail.com
on 16 Mar 2009 at 6:03
--with-expat-include-dir=... --with-expat-lib-dir
http://code.google.com/p/libkml/source/detail?r=525
Original comment by kml.mash...@gmail.com
on 16 Mar 2009 at 9:10
Original issue reported on code.google.com by
aijunc...@gmail.com
on 20 Feb 2009 at 8:24