I am creating a debian package for a library and would like to install binary samples.
I was thinking to put them under /usr/share/libname
, but lintian complains (arch-dependent-file-in-usr-share). According FHS this correct, but where can put those files?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
It's actually not correct according to the FHS; /usr/share
is quite explicitly for "architecture-independent data". /usr/lib
is the arch-dependent equivalent, and that's probably what you want (/usr/lib/libname
).
See http://www.pathname.com/fhs/pub/fhs-2.3.html#USRLIBLIBRARIESFORPROGRAMMINGANDPA for details.