On 05/16/2011 12:06 PM, Andrew Stacey wrote:
A simple assignment to LD_LIBRARY_PATH later and I have a working binary! Yippee!
Right. Of course, it's a bit inconvenient to have to set that environment variable. Distributions differ in this respect: some (e.g. Ubuntu) will load libraries from /usr/local/lib by default, and others (e.g. Fedora) will not. I'm not sure how Debian behaves. To find out, look at the files in /etc/ld.so.conf.d and see if one of them mentions /usr/local/lib. If it's there, then you don't need to set LD_LIBRARY_PATH; simply run 'sudo ldconfig' and it will find the library.
By the way, I run Fedora these days, but I *do* want programs to find libraries in /usr/local/lib, so I've added a file under ld.so.conf.d to specify that. Not sure why Fedora doesn't include this by default. Perhaps they worry that people will install libraries locally and then destabilize their systems.
Many thanks to everyone who helped. Someone mentioned sharing binaries. I'll happily upload my binary somewhere if that was what was meant. At the very least, I'll happily write up all the steps somewhere if that would help.
We'd like to have better instructions for building from source on our wiki (http://trac.yorba.org/ticket/3409), but haven't gotten around to that yet. Any help appreciated. Cheers -
adam _______________________________________________ Shotwell mailing list [email protected] http://lists.yorba.org/cgi-bin/mailman/listinfo/shotwell
