[lug] Library locations
Hugh Brown
hugh at math.byu.edu
Wed Feb 6 17:29:50 MST 2008
Jeffrey Haemer wrote:
> I'm building a package: my company's commercial product, so it's our code,
> not something off the web.
>
> It includes a shared library, which I eventually need to install on target
> machines. Off-hand, I'd have guessed it should go into /usr/local/lib, or
> maybe /usr/share/lib. Still, every rpm or Debian package installed on the
> boxes I have at hand installs libraries right into /usr/lib, which makes me
> suspect I'm probably wrong.
>
> Can someone explain where I should install my library and why? I seem to be
> thinking about it fuzzily.
>
I'd recommend that you make it configurable with defaults based on the FHS.
There are times that I need it in /usr/lib and other times that I want
it in /opt/package/lib.
If your company will allow, flexibility for either installation mode is
a nice feature.
Hugh
More information about the LUG
mailing list