Hi, To my understanding, the folder /usr/local is to be used for locally compiled programs and is therefore not set by default by distributions.
That qgis is installed into this folder is defined by CMAKE_INSTALL_PREFIX which defaults to /usr/local but can easily be replaced with /usr so it will work without changing the default path. If you are releasing a package, that's the way to go. On your development machine you might want to run a stock version of qgis and a self-compiled one, so you don't want to install the second ont into /usr as well. In this case you can either export LD_LIBRARY_PATH (include in .bash_profile to set it automatically) or you can add the path it in /etc/ld.so.conf (add a file to /etc/ld.so.conf.d if supported by your distro). Regards, Matthias On Fri, 2012-05-25 at 09:38 +0200, Andreas Neumann wrote: > Thanks Stefan and Kimaidou > > Setting LD_LIBRARY_PATH seems to work. It is strange. I was assuming > that /usr/local/lib was searched by default anyway. After all this is > the directory for libraries (next to /usr/lib ) > > Well - always some mysteries we can't understand ... > > Thanks for helping me to solve the problem, > Andreas > > On Fri, 25 May 2012 07:30:13 +0000, Ziegler Stefan wrote: > > Hi Andi > > > > I solved it by exporting LD_LIBRARY_PATH: > > > > export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib > > > > It's a bit strange since I think it used to work without this.... > > > > Regards > > Stefan > > > >> -----Ursprüngliche Nachricht----- > >> Von: [email protected] [mailto:qgis-developer- > >> [email protected]] Im Auftrag von Andreas Neumann > >> Gesendet: Freitag, 25. Mai 2012 09:25 > >> An: qgis-developer > >> Betreff: [Qgis-developer] Library linking problems when release > >> changes - eg. 1.9 --> > >> 1.8 > >> > >> Hi, > >> > >> Whenever there is a change in the major version of QGIS, e.g. 1.7 > >> to > >> 1.9 and most recently the switch back from 1.9 to 1.8 I am running > >> into problems. > >> > >> The compile runs fine but when I try to start it I get this > >> message: > >> error while loading shared libraries: libqgis_core.so.1.8.0: cannot > >> open shared object > >> file: No such file or directory > >> > >> > >> But the libqgis_core.so.1.8.0 is present in /usr/local/lib > >> > >> I removed the build directory and ran ccmake .. and cmake .. again, > >> but > >> it doesn't solve this problem that it can't find the library that > >> obviously is present and recent on my machine. > >> > >> I would very much appreciate if someone could help me out here. > >> > >> Thanks a lot, > >> Andreas > >> > >> -- > >> -- > >> Andreas Neumann > >> Böschacherstrasse 10A > >> 8624 Grüt (Gossau ZH) > >> Switzerland > >> _______________________________________________ > >> Qgis-developer mailing list > >> [email protected] > >> http://lists.osgeo.org/mailman/listinfo/qgis-developer > _______________________________________________ Qgis-developer mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/qgis-developer
