[Pdx-pm] Library for executables

Keith Lofstrom keithl at kl-ic.com
Sun Mar 27 19:01:09 PST 2005

Greetings.  I am writing a linux command line application with a small
set of executables that will go in /usr/local/sbin, or alternately
/usr/sbin .  These executables will share a platform-independent common
library, which I will call parse.pl, to do application specific parsing.   
I will be using a library rather than a package because I specifically
want to set up some global variables.

Where should such libraries go?

One possibility is "share":
/usr/local/share/<appname>/parse.pl or /usr/share/<appname>/parse.pl
... this is used by automake, latex2html, linuxdoc-tools, and w3m.

A second possibility is "lib":
/usr/local/lib/<appname>/parse.pl or /usr/lib/<appname>/parse.pl
... this is used by mrtg2

A third possibility is "libexec":
/usr/local/libexec/<appname>/parse.pl or /usr/libexec/<appname>/parse.pl
... this is used by webmin

I plowed through a dozen perl and linux books looking for an answer
to this, and was unsuccessful.  The Filesystem Hierarchy Standard
( http://www.pathname.com/fhs/pub/fhs-2.3.pdf ) seems to suggest
"share", but I'm not clear about that.  I will probably go with that
if I don't hear otherwise.

Any expert opinions available?


Keith Lofstrom          keithl at keithl.com         Voice (503)-520-1993
KLIC --- Keith Lofstrom Integrated Circuits --- "Your Ideas in Silicon"
Design Contracting in Bipolar and CMOS - Analog, Digital, and Scan ICs

More information about the Pdx-pm-list mailing list