On Mon, May 16, 2011 at 12:14:22PM -0700, Adam Dingle wrote:
> 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.

Following Konstantin's suggestion, I actually installed the libraries in
$HOME/local/lib.  It's essentially a single-user machine and I only want
shotwell for myself - or at least, I only want the most up to date version for
myself.  So I have to go via the LD_LIBRARY_PATH option.  But I'm quite used
to that as I regularly install more recent versions of stuff on my machine at
work where I don't have superuser privileges.

>                        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.

Just for your information, I checked and Debian does have an entry for
/usr/local/lib so that would have worked on my system.

> 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.

For no good reason, I'd've expected it to be the other way around: debian more
strict than Fedora.  But having flirted with fedora briefly, I'm now firmly in
the Debian camp.

> >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 -

Okay, I'll see what I can do while it's fresh in my mind.

Andrew
_______________________________________________
Shotwell mailing list
[email protected]
http://lists.yorba.org/cgi-bin/mailman/listinfo/shotwell

Reply via email to