On 21 July 2012 22:11, Myra Nelson <[email protected]> wrote: > > If you have this error while loading a compiled qgis, you can try this: > > # get the full lib path, for example > "/home/myusername/src/qgis/Quantum-GIS/build/lib/" (no wildcard ~) > # copy this path to a new file /etc/ld.so.conf.d/qgis.conf (on Ubuntu > distribution. This can change a bit) > sudo su > echo "/home/myusername/src/qgis/Quantum-GIS/build/lib/" > > /etc/ld.so.conf.d/qgis.conf > exit > # ldconfig > sudo ldconfig > # verify with ldd > ldd /home/myusername/src/qgis/Quantum-GIS/build/bin/qgis | grep "libqgis" ] > > here -> http://hub.qgis.org/wiki/quantum-gis/Building_QGIS_from_Source > > This is one of my weaker areas. Is this the correct solution or is > there a better way to do this? I really don't want to f'up my box > after successfully negotiating the latest upgrades.
This is correct way during installation. Paths added to files in /etc/ld.so.conf.d/ locate libraries you consider as installed, means permanent locations. So, if /home/myusername/src/qgis/Quantum-GIS/build/lib is such permanent location, but not only location of building, debugging and testing, then it is OK to add it to /etc/ld.so.conf.d/qgis.conf But, if the location above is for testing and debugging only, then I'd suggest to set it with LD_LIBRARY_PATH for the current environment session. So, the setting is not permanent. Read section 3.2 and 3.3 where you have it explained: http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html Best regards, -- Mateusz Loskot, http://mateusz.loskot.net
