Great. Thank you for your explanation. Really appreciate your help! Andreas
2012/1/31 Mathieu Basille <[email protected]> > Le 31/01/2012 10:45, Andreas Forø Tollefsen a écrit : > > Thank you Mathieu! >> >> That did it. Could you explain what the commands excactly do, so i know >> next time? >> > > From the man page of ldconfig: > > "ldconfig creates, updates, and removes the necessary links and cache > (for use by the run-time linker, ld.so) to the most recent shared > libraries found in the directories specified on the command line, in the > file /etc/ld.so.conf, and in the trusted directories (/usr/lib and /lib)." > > As far as I can tell, it is required to declare where the shared libraries > (.so) are. And it seems that some systems (at least Debian for what I can > tell) do not use /usr/local/lib, but just /usr/lib and /lib. > > The command: > echo '/usr/local/lib' >> /etc/ld.so.conf > just add '/usr/local/lib' at the end of the file /etc/ld.so.conf, so that > the system can use /usr/local/lib as a path for the shared libraries. It is > then re-processed by the call of ldconfig. > > Mathieu. > > > Best, >> Andreas >> >> 2012/1/31 Mathieu Basille <[email protected] >> <mailto:basille@ase-research.**org <[email protected]>>> >> >> >> Arf, I was just too late :) >> >> 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: >> >> /sbin/ldconfig -p | grep geos >> >> I have something like that: >> >> libgeos_c.so.1 (libc6) => /usr/local/lib/libgeos_c.so.1 >> libgeos_c.so (libc6) => /usr/local/lib/libgeos_c.so >> libgeos-3.4.0dev.so <http://libgeos-3.4.0dev.so> (libc6) => >> /usr/local/lib/libgeos-3.4.__**0dev.so <http://libgeos-3.4.0dev.so> >> >> >> If you don't have this, you can try (use sudo if needed): >> >> echo '/usr/local/lib' >> /etc/ld.so.conf >> ldconfig >> >> And check again. This should be enough for PostGIS to compile (at least >> it worked for me). >> Hope this helps, >> Mathieu. >> >> >> Le 31/01/2012 10:16, Andreas Forø Tollefsen a écrit : >> >> And the file exists: >> andreas@andreas-priogrid:~/__**Downloads/postgis-2.0.__**0alpha3SVN$ >> locate >> >> libgeos-3.4.0dev.so <http://libgeos-3.4.0dev.so> >> <http://libgeos-3.4.0dev.so> >> /home/andreas/Downloads/geos-_**_svn/src/.libs/libgeos-3.4.__** >> 0dev.so >> <http://libgeos-3.4.0dev.so> >> <http://libgeos-3.4.0dev.so> >> /usr/local/lib/libgeos-3.4.__**0dev.so <http://libgeos-3.4.0dev.so >> > >> >> <http://libgeos-3.4.0dev.so> >> >> >> >> 2012/1/31 Andreas Forø Tollefsen <[email protected] >> <mailto:[email protected]> >> <mailto:[email protected] <mailto:[email protected]>>> >> >> >> >> >> 2012/1/31 Mathieu Basille <[email protected] >> <mailto:basille@ase-research.**org <[email protected]>> >> <mailto:basille@ase-research._**_org <mailto:basille@ase-research. >> **org <[email protected]>>>> >> >> >> >> Le 31/01/2012 09:51, Andreas Forø Tollefsen a écrit : >> >> Hi Mathieu, >> >> Thanks. I was thinking the same. I downloaded the >> latest from >> trunk. >> >> ./autogen.sh >> ./configure --with-raster --with-gui >> Also tried --with-geosconfig and --with-gdalconfig >> manually >> with the same >> problem. >> >> Could it be worth a try to delete the postgis-2.0.so >> <http://postgis-2.0.so> >> <http://postgis-2.0.so> >> <http://postgis-2.0.so> file and reinstall postgis? >> >> >> I don't think it is related to postgis-2.0.so >> <http://postgis-2.0.so> >> <http://postgis-2.0.so>, but really to the mess with GEOS >> installs. >> >> Try to make sure that you're using the correct >> geos-config. If >> you're using a Linux OS, you can try: >> >> sudo updatedb >> locate geos-config >> >> See how many do you have. Mine (compiled by myself) is in >> '/usr/local/bin/geos-config'. You can check if it is the correct >> one with, e.g. less: >> >> less /usr/local/bin/geos-config >> >> It shows me somewhere that this is the 3.4.0dev version: >> --version) >> echo 3.4.0dev >> >> Then I can use: >> >> ./configure --with-raster >> --with-geosconfig=/usr/local/_**___bin/geos-config >> >> >> >> Now you have to adjust it for your needs. How did you >> install GEOS >> 3.3.2? Did you use a package manager, or compile it >> manually? Only >> this will tell you which geos-config to use... >> Mathieu. >> >> Hi Mathieu, >> >> I have compiled my geos myself using ./autogen.sh, ./configure, >> make, >> make install. >> Then i set the path to the geos-config manually when >> configuring postgis: >> ./configure --with-geosconfig=/usr/local/_**_bin/geos-config >> >> --with raster >> >> I also tried by reinstalling the latest geos3.4.dev from trunk. >> >> However. I get the same error: >> ---- Making check in liblwgeom >> make[1]: Entering directory >> `/home/andreas/Downloads/__**postgis-2.0.0alpha3SVN/__** >> liblwgeom' >> >> make -C cunit check >> make[2]: Entering directory >> >> `/home/andreas/Downloads/__**postgis-2.0.0alpha3SVN/__** >> liblwgeom/cunit' >> >> /bin/bash ../../libtool --mode=link gcc -g -O2 -Wall >> -Wmissing-prototypes -I/usr/local/include >> -DPOSTGIS_GEOS_VERSION=34 -o >> cu_tester cu_algorithm.o cu_print.o cu_misc.o cu_ptarray.o >> cu_geodetic.o cu_geos.o cu_measures.o cu_node.o cu_libgeom.o >> cu_split.o >> cu_surface.o cu_homogenize.o cu_out_wkt.o cu_out_wkb.o >> cu_out_gml.o >> cu_out_kml.o cu_out_geojson.o cu_out_svg.o cu_out_x3d.o >> cu_in_wkb.o >> cu_in_wkt.o cu_tester.o ../liblwgeom.la <http://liblwgeom.la> >> <http://liblwgeom.la> -lcunit >> >> libtool: link: gcc -g -O2 -Wall -Wmissing-prototypes >> -I/usr/local/include -DPOSTGIS_GEOS_VERSION=34 -o >> .libs/cu_tester >> cu_algorithm.o cu_print.o cu_misc.o cu_ptarray.o cu_geodetic.o >> cu_geos.o cu_measures.o cu_node.o cu_libgeom.o cu_split.o >> cu_surface.o >> cu_homogenize.o cu_out_wkt.o cu_out_wkb.o cu_out_gml.o >> cu_out_kml.o >> cu_out_geojson.o cu_out_svg.o cu_out_x3d.o cu_in_wkb.o >> cu_in_wkt.o >> cu_tester.o ../.libs/liblwgeom.so /usr/lib/libcunit.so >> #gcc -o cu_tester cu_algorithm.o cu_print.o cu_misc.o >> cu_ptarray.o >> cu_geodetic.o cu_geos.o cu_measures.o cu_node.o cu_libgeom.o >> cu_split.o >> cu_surface.o cu_homogenize.o cu_out_wkt.o cu_out_wkb.o >> cu_out_gml.o >> cu_out_kml.o cu_out_geojson.o cu_out_svg.o cu_out_x3d.o >> cu_in_wkb.o >> cu_in_wkt.o cu_tester.o ../.libs/liblwgeom.a -lm -lcunit >> -L/usr/local/lib -lgeos_c >> >> /home/andreas/Downloads/__**postgis-2.0.0alpha3SVN/__** >> liblwgeom/cunit/.libs/lt-cu___**tester: >> >> error while loading shared libraries: libgeos-3.4.0dev.so >> <http://libgeos-3.4.0dev.so> >> <http://libgeos-3.4.0dev.so>: cannot open shared object file: No >> such >> file or directory >> make[2]: *** [check] Error 127 >> make[2]: Leaving directory >> >> `/home/andreas/Downloads/__**postgis-2.0.0alpha3SVN/__** >> liblwgeom/cunit' >> >> make[1]: *** [check] Error 2 >> make[1]: Leaving directory >> `/home/andreas/Downloads/__**postgis-2.0.0alpha3SVN/__** >> liblwgeom' >> >> make: *** [check] Error 1 >> >> >> Andreas >> >> 2012/1/31 Mathieu Basille <[email protected] >> <mailto:basille@ase-research.**org <[email protected]>> >> <mailto:basille@ase-research._**_org <mailto:basille@ase-research. >> **org <[email protected]>>> >> <mailto:basille@ase-research. <mailto:basille@ase-research.>** >> ____org >> >> >> <mailto:basille@ase-research._**_org <mailto:basille@ase-research. >> **org <[email protected]>>>>> >> >> >> It seems indeed to be related to your previous GEOS >> install. What >> command did you use to compile PostGIS? Is it >> possible that >> the path to >> geos-config is still linking to the previous >> install? You >> can override >> it by: >> '--with-geosconfig=/usr/bin/__**____geos-config' (or the >> >> >> one related >> >> to your current install of GEOS) in the >> ./configure. >> >> Hope it helps. If not, please provide more details >> (OS, >> previous >> commands, etc.). >> Mathieu. >> >> >> Le 31/01/2012 09:33, Andreas Forø Tollefsen a >> écrit : >> >> Hi, >> >> I have installed GEOS 3.3.2 and GDAL 1.9. >> >> I previously had a GEOS SVN 3.4 installed, but >> no longer. >> >> Still i get this error when running make check. >> >> Any idea? >> >> >> >> /home/andreas/Downloads/______**postgis-2.0.0alpha3SVN/______** >> liblwgeom/cunit/.libs/lt-cu___**____testr: >> >> >> >> error while loading shared libraries: >> libgeos-3.4.0dev.so <http://libgeos-3.4.0dev.so> >> <http://libgeos-3.4.0dev.so> >> <http://libgeos-3.4.0dev.so> >> <http://libgeos-3.4.0dev.so>: cannot open shared object file: No >> such file >> >> or directory >> make[2]: *** [check] Error 127 >> make[2]: Leaving directory >> >> >> `/home/andreas/Downloads/_____**_postgis-2.0.0alpha3SVN/______** >> liblwgeom/cunit' >> >> >> >> make[1]: *** [check] Error 2 >> make[1]: Leaving directory >> >> >> `/home/andreas/Downloads/_____**_postgis-2.0.0alpha3SVN/______** >> liblwgeom' >> >> >> >> make: *** [check] Error 1 >> >> >> >> >> ______________________________**_______________________ >> postgis-users mailing list >> >> postgis-users@postgis.__refrac**____tions.net<http://refrac____tions.net> >> <http://refrac__tions.net> >> <http://refractions.net> >> <mailto:postgis-users@postgis. >> <mailto:postgis-users@postgis.**>____refractions.net >> >> <http://refractions.net> >> <mailto:postgis-users@postgis.**__refractions.net >> >> <mailto:postgis-users@postgis.**refractions.net<[email protected]> >> >>> >> http://postgis.refractions.___**___net/mailman/listinfo/** >> postgis-______users >> >> >> <http://postgis.refractions.__**__net/mailman/listinfo/** >> postgis-____users >> <http://postgis.refractions.__**net/mailman/listinfo/postgis-_** >> _users >> >> <http://postgis.refractions.**net/mailman/listinfo/postgis-**users<http://postgis.refractions.net/mailman/listinfo/postgis-users> >> >>> >> >> >> -- >> >> ~$ whoami >> Mathieu Basille, Post-Doc >> >> ~$ locate >> Laboratoire d'Écologie Comportementale et de >> Conservation >> de la Faune >> + Centre d'Étude de la Forêt >> Département de Biologie >> Université Laval, Québec >> >> ~$ info >> >> http://ase-research.org/______**basille<http://ase-research.org/______basille> >> >> <http://ase-research.org/____**basille<http://ase-research.org/____basille> >> > >> >> >> <http://ase-research.org/____**basille<http://ase-research.org/____basille> >> >> <http://ase-research.org/__**basille<http://ase-research.org/__basille> >> >> >> >> >> <http://ase-research.org/____**basille<http://ase-research.org/____basille> >> >> <http://ase-research.org/__**basille<http://ase-research.org/__basille> >> > >> >> <http://ase-research.org/__**basille<http://ase-research.org/__basille>< >> http://ase-research.org/**basille <http://ase-research.org/basille>>>> >> >> >> ~$ fortune >> ``If you can't win by reason, go for volume.'' >> Calvin, by Bill Watterson. >> ______________________________** >> _______________________ >> postgis-users mailing list >> >> postgis-users@postgis.__refrac**____tions.net<http://refrac____tions.net> >> <http://refrac__tions.net> >> <http://refractions.net> >> <mailto:postgis-users@postgis. >> <mailto:postgis-users@postgis.**>____refractions.net >> >> <http://refractions.net> >> <mailto:postgis-users@postgis.**__refractions.net >> >> <mailto:postgis-users@postgis.**refractions.net<[email protected]> >> >>> >> http://postgis.refractions.___**___net/mailman/listinfo/** >> postgis-______users >> >> <http://postgis.refractions.__**__net/mailman/listinfo/** >> postgis-____users >> <http://postgis.refractions.__**net/mailman/listinfo/postgis-_** >> _users >> >> <http://postgis.refractions.**net/mailman/listinfo/postgis-**users<http://postgis.refractions.net/mailman/listinfo/postgis-users> >> >>> >> >> >> >> >> >> ______________________________**_____________________ >> postgis-users mailing list >> >> postgis-users@postgis.__refrac**__tions.net<http://refrac__tions.net> >> <http://refractions.net> >> <mailto:postgis-users@postgis.**__refractions.net >> >> <mailto:postgis-users@postgis.**refractions.net<[email protected]> >> >> >> http://postgis.refractions.___**_net/mailman/listinfo/postgis-** >> ____users >> <http://postgis.refractions.__**net/mailman/listinfo/postgis-_** >> _users >> >> <http://postgis.refractions.**net/mailman/listinfo/postgis-**users<http://postgis.refractions.net/mailman/listinfo/postgis-users> >> >> >> >> >> -- >> >> ~$ whoami >> Mathieu Basille, Post-Doc >> >> ~$ locate >> Laboratoire d'Écologie Comportementale et de Conservation >> de la Faune >> + Centre d'Étude de la Forêt >> Département de Biologie >> Université Laval, Québec >> >> ~$ info >> >> http://ase-research.org/____**basille<http://ase-research.org/____basille> >> >> <http://ase-research.org/__**basille<http://ase-research.org/__basille> >> > >> >> <http://ase-research.org/__**basille<http://ase-research.org/__basille>< >> http://ase-research.org/**basille <http://ase-research.org/basille>>> >> >> ~$ fortune >> ``If you can't win by reason, go for volume.'' >> Calvin, by Bill Watterson. >> ______________________________**_____________________ >> postgis-users mailing list >> >> postgis-users@postgis.__refrac**__tions.net<http://refrac__tions.net> >> <http://refractions.net> >> <mailto:postgis-users@postgis.**__refractions.net >> >> <mailto:postgis-users@postgis.**refractions.net<[email protected]> >> >> >> http://postgis.refractions.___**_net/mailman/listinfo/postgis-** >> ____users >> <http://postgis.refractions.__**net/mailman/listinfo/postgis-_** >> _users >> >> <http://postgis.refractions.**net/mailman/listinfo/postgis-**users<http://postgis.refractions.net/mailman/listinfo/postgis-users> >> >> >> >> >> >> >> >> ______________________________**___________________ >> postgis-users mailing list >> postgis-users@postgis.__refrac**tions.net <http://refractions.net> >> >> <mailto:postgis-users@postgis.**refractions.net<[email protected]> >> > >> http://postgis.refractions.__**net/mailman/listinfo/postgis-_** >> _users >> >> <http://postgis.refractions.**net/mailman/listinfo/postgis-**users<http://postgis.refractions.net/mailman/listinfo/postgis-users> >> > >> >> >> -- >> >> ~$ whoami >> Mathieu Basille, Post-Doc >> >> ~$ locate >> Laboratoire d'Écologie Comportementale et de Conservation de la Faune >> + Centre d'Étude de la Forêt >> Département de Biologie >> Université Laval, Québec >> >> ~$ info >> http://ase-research.org/__**basille<http://ase-research.org/__basille>< >> http://ase-research.org/**basille <http://ase-research.org/basille>> >> >> ~$ fortune >> ``If you can't win by reason, go for volume.'' >> Calvin, by Bill Watterson. >> ______________________________**___________________ >> postgis-users mailing list >> postgis-users@postgis.__refrac**tions.net <http://refractions.net> >> >> <mailto:postgis-users@postgis.**refractions.net<[email protected]> >> > >> http://postgis.refractions.__**net/mailman/listinfo/postgis-_**_users >> >> <http://postgis.refractions.**net/mailman/listinfo/postgis-**users<http://postgis.refractions.net/mailman/listinfo/postgis-users> >> > >> >> >> >> >> ______________________________**_________________ >> postgis-users mailing list >> postgis-users@postgis.**refractions.net<[email protected]> >> http://postgis.refractions.**net/mailman/listinfo/postgis-**users<http://postgis.refractions.net/mailman/listinfo/postgis-users> >> > > -- > > ~$ whoami > Mathieu Basille, Post-Doc > > ~$ locate > Laboratoire d'Écologie Comportementale et de Conservation de la Faune > + Centre d'Étude de la Forêt > Département de Biologie > Université Laval, Québec > > ~$ info > http://ase-research.org/**basille <http://ase-research.org/basille> > > ~$ fortune > ``If you can't win by reason, go for volume.'' > Calvin, by Bill Watterson. > ______________________________**_________________ > postgis-users mailing list > postgis-users@postgis.**refractions.net<[email protected]> > http://postgis.refractions.**net/mailman/listinfo/postgis-**users<http://postgis.refractions.net/mailman/listinfo/postgis-users> >
_______________________________________________ postgis-users mailing list [email protected] http://postgis.refractions.net/mailman/listinfo/postgis-users
