问题描述
我正在为一个库创建一个debian软件包,并想安装二进制示例.我本来打算将它们放在/usr/share/libname
下,但是lintian抱怨(arch-dependent-file-in-usr-share).根据FHS的说法,这是正确的,但是可以将那些文件放在哪里?
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?
推荐答案
根据FHS,这实际上是不正确的; /usr/share
非常明确地表示与体系结构无关的数据". /usr/lib
是与拱有关的等效项,可能正是您想要的(/usr/lib/libname
).
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
).
请参见 http://www.pathname.com/fhs/pub /fhs-2.3.html#USRLIBLIBRARIESFORPROGRAMMINGANDPA 了解详情.
这篇关于符合Linux上的文件层次结构标准:在何处放置库的二进制示例?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!