Thank you Mathieu!<div><br></div><div>That did it. Could you explain what the commands excactly do, so i know next time?</div><div><br></div><div>Best,</div><div>Andreas</div><div><br><div class="gmail_quote">2012/1/31 Mathieu Basille <span dir="ltr"><<a href="mailto:basille@ase-research.org">basille@ase-research.org</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Arf, I was just too late :)<br>
<br>
I remember a similar problem with GDAL (also compiled manually), for which the lib .so could not be found. You can first check the paths:<br>
<br>
/sbin/ldconfig -p | grep geos<br>
<br>
I have something like that:<br>
<br>
libgeos_c.so.1 (libc6) => /usr/local/lib/libgeos_c.so.1<br>
libgeos_c.so (libc6) => /usr/local/lib/libgeos_c.so<br>
<a href="http://libgeos-3.4.0dev.so" target="_blank">libgeos-3.4.0dev.so</a> (libc6) => /usr/local/lib/<a href="http://libgeos-3.4.0dev.so" target="_blank">libgeos-3.4.<u></u>0dev.so</a><br>
<br>
If you don't have this, you can try (use sudo if needed):<br>
<br>
echo '/usr/local/lib' >> /etc/ld.so.conf<br>
ldconfig<br>
<br>
And check again. This should be enough for PostGIS to compile (at least it worked for me).<br>
Hope this helps,<br>
Mathieu.<br>
<br>
<br>
Le 31/01/2012 10:16, Andreas Forø Tollefsen a écrit :<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
And the file exists:<br>
andreas@andreas-priogrid:~/<u></u>Downloads/postgis-2.0.<u></u>0alpha3SVN$ locate<br>
</div><a href="http://libgeos-3.4.0dev.so" target="_blank">libgeos-3.4.0dev.so</a> <<a href="http://libgeos-3.4.0dev.so" target="_blank">http://libgeos-3.4.0dev.so</a>><br>
/home/andreas/Downloads/geos-<u></u>svn/src/.libs/<a href="http://libgeos-3.4.0dev.so" target="_blank">libgeos-3.4.<u></u>0dev.so</a><br>
<<a href="http://libgeos-3.4.0dev.so" target="_blank">http://libgeos-3.4.0dev.so</a>><br>
/usr/local/lib/<a href="http://libgeos-3.4.0dev.so" target="_blank">libgeos-3.4.<u></u>0dev.so</a> <<a href="http://libgeos-3.4.0dev.so" target="_blank">http://libgeos-3.4.0dev.so</a>><div class="im"><br>
<br>
<br>
2012/1/31 Andreas Forø Tollefsen <<a href="mailto:andreasft@gmail.com" target="_blank">andreasft@gmail.com</a><br></div>
<mailto:<a href="mailto:andreasft@gmail.com" target="_blank">andreasft@gmail.com</a>>><br>
<br>
<br>
<br>
2012/1/31 Mathieu Basille <<a href="mailto:basille@ase-research.org" target="_blank">basille@ase-research.org</a><br>
<mailto:<a href="mailto:basille@ase-research.org" target="_blank">basille@ase-research.<u></u>org</a>>><div class="im"><br>
<br>
Le 31/01/2012 09:51, Andreas Forø Tollefsen a écrit :<br>
<br>
Hi Mathieu,<br>
<br>
Thanks. I was thinking the same. I downloaded the latest from<br>
trunk.<br>
<br>
./autogen.sh<br>
./configure --with-raster --with-gui<br>
Also tried --with-geosconfig and --with-gdalconfig manually<br>
with the same<br>
problem.<br>
<br>
Could it be worth a try to delete the <a href="http://postgis-2.0.so" target="_blank">postgis-2.0.so</a><br>
<<a href="http://postgis-2.0.so" target="_blank">http://postgis-2.0.so</a>><br>
<<a href="http://postgis-2.0.so" target="_blank">http://postgis-2.0.so</a>> file and reinstall postgis?<br>
<br>
<br>
I don't think it is related to <a href="http://postgis-2.0.so" target="_blank">postgis-2.0.so</a><br></div>
<<a href="http://postgis-2.0.so" target="_blank">http://postgis-2.0.so</a>>, but really to the mess with GEOS installs.<div class="im"><br>
Try to make sure that you're using the correct geos-config. If<br>
you're using a Linux OS, you can try:<br>
<br>
sudo updatedb<br>
locate geos-config<br>
<br>
See how many do you have. Mine (compiled by myself) is in<br>
'/usr/local/bin/geos-config'. You can check if it is the correct<br>
one with, e.g. less:<br>
<br>
less /usr/local/bin/geos-config<br>
<br>
It shows me somewhere that this is the 3.4.0dev version:<br>
--version)<br>
echo 3.4.0dev<br>
<br>
Then I can use:<br>
<br>
./configure --with-raster<br></div>
--with-geosconfig=/usr/local/_<u></u>_bin/geos-config<div class="im"><br>
<br>
Now you have to adjust it for your needs. How did you install GEOS<br>
3.3.2? Did you use a package manager, or compile it manually? Only<br>
this will tell you which geos-config to use...<br>
Mathieu.<br>
<br>
Hi Mathieu,<br>
<br>
I have compiled my geos myself using ./autogen.sh, ./configure, make,<br>
make install.<br>
Then i set the path to the geos-config manually when configuring postgis:<br>
./configure --with-geosconfig=/usr/local/<u></u>bin/geos-config --with raster<br>
<br>
I also tried by reinstalling the latest geos3.4.dev from trunk.<br>
<br>
However. I get the same error:<br>
---- Making check in liblwgeom<br>
make[1]: Entering directory<br>
`/home/andreas/Downloads/<u></u>postgis-2.0.0alpha3SVN/<u></u>liblwgeom'<br>
make -C cunit check<br>
make[2]: Entering directory<br>
`/home/andreas/Downloads/<u></u>postgis-2.0.0alpha3SVN/<u></u>liblwgeom/cunit'<br>
/bin/bash ../../libtool --mode=link gcc -g -O2 -Wall<br>
-Wmissing-prototypes -I/usr/local/include -DPOSTGIS_GEOS_VERSION=34 -o<br>
cu_tester cu_algorithm.o cu_print.o cu_misc.o cu_ptarray.o<br>
cu_geodetic.o cu_geos.o cu_measures.o cu_node.o cu_libgeom.o cu_split.o<br>
cu_surface.o cu_homogenize.o cu_out_wkt.o cu_out_wkb.o cu_out_gml.o<br>
cu_out_kml.o cu_out_geojson.o cu_out_svg.o cu_out_x3d.o cu_in_wkb.o<br></div>
cu_in_wkt.o cu_tester.o ../<a href="http://liblwgeom.la" target="_blank">liblwgeom.la</a> <<a href="http://liblwgeom.la" target="_blank">http://liblwgeom.la</a>> -lcunit<div class="im"><br>
libtool: link: gcc -g -O2 -Wall -Wmissing-prototypes<br>
-I/usr/local/include -DPOSTGIS_GEOS_VERSION=34 -o .libs/cu_tester<br>
cu_algorithm.o cu_print.o cu_misc.o cu_ptarray.o cu_geodetic.o<br>
cu_geos.o cu_measures.o cu_node.o cu_libgeom.o cu_split.o cu_surface.o<br>
cu_homogenize.o cu_out_wkt.o cu_out_wkb.o cu_out_gml.o cu_out_kml.o<br>
cu_out_geojson.o cu_out_svg.o cu_out_x3d.o cu_in_wkb.o cu_in_wkt.o<br>
cu_tester.o ../.libs/liblwgeom.so /usr/lib/libcunit.so<br>
#gcc -o cu_tester cu_algorithm.o cu_print.o cu_misc.o cu_ptarray.o<br>
cu_geodetic.o cu_geos.o cu_measures.o cu_node.o cu_libgeom.o cu_split.o<br>
cu_surface.o cu_homogenize.o cu_out_wkt.o cu_out_wkb.o cu_out_gml.o<br>
cu_out_kml.o cu_out_geojson.o cu_out_svg.o cu_out_x3d.o cu_in_wkb.o<br>
cu_in_wkt.o cu_tester.o ../.libs/liblwgeom.a -lm -lcunit<br>
-L/usr/local/lib -lgeos_c<br>
/home/andreas/Downloads/<u></u>postgis-2.0.0alpha3SVN/<u></u>liblwgeom/cunit/.libs/lt-cu_<u></u>tester:<br>
error while loading shared libraries: <a href="http://libgeos-3.4.0dev.so" target="_blank">libgeos-3.4.0dev.so</a><br></div><div class="im">
<<a href="http://libgeos-3.4.0dev.so" target="_blank">http://libgeos-3.4.0dev.so</a>>: cannot open shared object file: No such<br>
file or directory<br>
make[2]: *** [check] Error 127<br>
make[2]: Leaving directory<br></div><div class="im">
`/home/andreas/Downloads/<u></u>postgis-2.0.0alpha3SVN/<u></u>liblwgeom/cunit'<br>
make[1]: *** [check] Error 2<br>
make[1]: Leaving directory<br>
`/home/andreas/Downloads/<u></u>postgis-2.0.0alpha3SVN/<u></u>liblwgeom'<br>
make: *** [check] Error 1<br>
<br>
<br>
Andreas<br>
<br>
2012/1/31 Mathieu Basille <<a href="mailto:basille@ase-research.org" target="_blank">basille@ase-research.org</a><br>
<mailto:<a href="mailto:basille@ase-research.org" target="_blank">basille@ase-research.<u></u>org</a>><br></div>
<mailto:<a href="mailto:basille@ase-research." target="_blank">basille@ase-research.</a>_<u></u>_org<div class="im"><br>
<mailto:<a href="mailto:basille@ase-research.org" target="_blank">basille@ase-research.<u></u>org</a>>>><br>
<br>
<br>
It seems indeed to be related to your previous GEOS<br>
install. What<br>
command did you use to compile PostGIS? Is it possible that<br>
the path to<br>
geos-config is still linking to the previous install? You<br>
can override<br></div>
it by: '--with-geosconfig=/usr/bin/__<u></u>__geos-config' (or the<div class="im"><br>
one related<br>
<br>
to your current install of GEOS) in the ./configure.<br>
<br>
Hope it helps. If not, please provide more details (OS,<br>
previous<br>
commands, etc.).<br>
Mathieu.<br>
<br>
<br>
Le 31/01/2012 09:33, Andreas Forø Tollefsen a écrit :<br>
<br>
Hi,<br>
<br>
I have installed GEOS 3.3.2 and GDAL 1.9.<br>
<br>
I previously had a GEOS SVN 3.4 installed, but no longer.<br>
<br>
Still i get this error when running make check.<br>
<br>
Any idea?<br>
<br>
<br></div>
/home/andreas/Downloads/____<u></u>postgis-2.0.0alpha3SVN/____<u></u>liblwgeom/cunit/.libs/lt-cu___<u></u>__testr:<div class="im"><br>
<br>
error while loading shared libraries:<br>
<a href="http://libgeos-3.4.0dev.so" target="_blank">libgeos-3.4.0dev.so</a> <<a href="http://libgeos-3.4.0dev.so" target="_blank">http://libgeos-3.4.0dev.so</a>><br>
<<a href="http://libgeos-3.4.0dev.so" target="_blank">http://libgeos-3.4.0dev.so</a>><br>
<<a href="http://libgeos-3.4.0dev.so" target="_blank">http://libgeos-3.4.0dev.so</a>>: cannot open shared object file: No<br>
such file<br>
<br>
or directory<br>
make[2]: *** [check] Error 127<br>
make[2]: Leaving directory<br>
<br></div>
`/home/andreas/Downloads/____<u></u>postgis-2.0.0alpha3SVN/____<u></u>liblwgeom/cunit'<div class="im"><br>
<br>
make[1]: *** [check] Error 2<br>
make[1]: Leaving directory<br>
<br></div>
`/home/andreas/Downloads/____<u></u>postgis-2.0.0alpha3SVN/____<u></u>liblwgeom'<div class="im"><br>
<br>
make: *** [check] Error 1<br>
<br>
<br>
<br></div><div class="im">
______________________________<u></u>_____________________<br>
postgis-users mailing list<br>
postgis-users@postgis.__<a href="http://refrac__tions.net" target="_blank">refrac<u></u>__tions.net</a><br>
<<a href="http://refractions.net" target="_blank">http://refractions.net</a>><br>
<mailto:<a href="mailto:postgis-users@postgis." target="_blank">postgis-users@postgis.</a><u></u>__<a href="http://refractions.net" target="_blank">refractions.net</a><br>
<mailto:<a href="mailto:postgis-users@postgis.refractions.net" target="_blank">postgis-users@postgis.<u></u>refractions.net</a>>><br>
<a href="http://postgis.refractions." target="_blank">http://postgis.refractions.</a>___<u></u>_net/mailman/listinfo/postgis-<u></u>____users<br>
<br></div><div class="im">
<<a href="http://postgis.refractions." target="_blank">http://postgis.refractions.</a>__<u></u>net/mailman/listinfo/postgis-_<u></u>_users<br>
<<a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.<u></u>net/mailman/listinfo/postgis-<u></u>users</a>>><br>
<br>
<br>
--<br>
<br>
~$ whoami<br>
Mathieu Basille, Post-Doc<br>
<br>
~$ locate<br>
Laboratoire d'Écologie Comportementale et de Conservation<br>
de la Faune<br>
+ Centre d'Étude de la Forêt<br>
Département de Biologie<br>
Université Laval, Québec<br>
<br>
~$ info<br></div>
<a href="http://ase-research.org/____basille" target="_blank">http://ase-research.org/____<u></u>basille</a><br>
<<a href="http://ase-research.org/__basille" target="_blank">http://ase-research.org/__<u></u>basille</a>><div class="im"><br>
<<a href="http://ase-research.org/__basille" target="_blank">http://ase-research.org/__<u></u>basille</a><br>
<<a href="http://ase-research.org/basille" target="_blank">http://ase-research.org/<u></u>basille</a>>><br>
<br>
<br>
~$ fortune<br>
``If you can't win by reason, go for volume.''<br>
Calvin, by Bill Watterson.<br></div><div class="im">
______________________________<u></u>_____________________<br>
postgis-users mailing list<br>
postgis-users@postgis.__<a href="http://refrac__tions.net" target="_blank">refrac<u></u>__tions.net</a><br>
<<a href="http://refractions.net" target="_blank">http://refractions.net</a>><br>
<mailto:<a href="mailto:postgis-users@postgis." target="_blank">postgis-users@postgis.</a><u></u>__<a href="http://refractions.net" target="_blank">refractions.net</a><br>
<mailto:<a href="mailto:postgis-users@postgis.refractions.net" target="_blank">postgis-users@postgis.<u></u>refractions.net</a>>><br>
<a href="http://postgis.refractions." target="_blank">http://postgis.refractions.</a>___<u></u>_net/mailman/listinfo/postgis-<u></u>____users<br>
<<a href="http://postgis.refractions." target="_blank">http://postgis.refractions.</a>__<u></u>net/mailman/listinfo/postgis-_<u></u>_users<br>
<<a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.<u></u>net/mailman/listinfo/postgis-<u></u>users</a>>><br>
<br>
<br>
<br>
<br>
<br></div><div><div></div><div class="h5">
______________________________<u></u>___________________<br>
postgis-users mailing list<br>
postgis-users@postgis.__<a href="http://refractions.net" target="_blank">refrac<u></u>tions.net</a><br>
<mailto:<a href="mailto:postgis-users@postgis.refractions.net" target="_blank">postgis-users@postgis.<u></u>refractions.net</a>><br>
<a href="http://postgis.refractions." target="_blank">http://postgis.refractions.</a>__<u></u>net/mailman/listinfo/postgis-_<u></u>_users<br>
<<a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.<u></u>net/mailman/listinfo/postgis-<u></u>users</a>><br>
<br>
<br>
--<br>
<br>
~$ whoami<br>
Mathieu Basille, Post-Doc<br>
<br>
~$ locate<br>
Laboratoire d'Écologie Comportementale et de Conservation de la Faune<br>
+ Centre d'Étude de la Forêt<br>
Département de Biologie<br>
Université Laval, Québec<br>
<br>
~$ info<br>
<a href="http://ase-research.org/__basille" target="_blank">http://ase-research.org/__<u></u>basille</a> <<a href="http://ase-research.org/basille" target="_blank">http://ase-research.org/<u></u>basille</a>><br>
<br>
~$ fortune<br>
``If you can't win by reason, go for volume.''<br>
Calvin, by Bill Watterson.<br>
______________________________<u></u>___________________<br>
postgis-users mailing list<br>
postgis-users@postgis.__<a href="http://refractions.net" target="_blank">refrac<u></u>tions.net</a><br>
<mailto:<a href="mailto:postgis-users@postgis.refractions.net" target="_blank">postgis-users@postgis.<u></u>refractions.net</a>><br>
<a href="http://postgis.refractions." target="_blank">http://postgis.refractions.</a>__<u></u>net/mailman/listinfo/postgis-_<u></u>_users<br>
<<a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.<u></u>net/mailman/listinfo/postgis-<u></u>users</a>><br>
<br>
<br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@postgis.refractions.net" target="_blank">postgis-users@postgis.<u></u>refractions.net</a><br>
<a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.<u></u>net/mailman/listinfo/postgis-<u></u>users</a><br>
</div></div></blockquote><div><div></div><div class="h5">
<br>
-- <br>
<br>
~$ whoami<br>
Mathieu Basille, Post-Doc<br>
<br>
~$ locate<br>
Laboratoire d'Écologie Comportementale et de Conservation de la Faune<br>
+ Centre d'Étude de la Forêt<br>
Département de Biologie<br>
Université Laval, Québec<br>
<br>
~$ info<br>
<a href="http://ase-research.org/basille" target="_blank">http://ase-research.org/<u></u>basille</a><br>
<br>
~$ fortune<br>
``If you can't win by reason, go for volume.''<br>
Calvin, by Bill Watterson.<br>
______________________________<u></u>_________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@postgis.refractions.net" target="_blank">postgis-users@postgis.<u></u>refractions.net</a><br>
<a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.<u></u>net/mailman/listinfo/postgis-<u></u>users</a><br>
</div></div></blockquote></div><br></div>