符合Linux上的文件层次结构标准:在何处放置库的二进制示例? [英] Conform with File Hierarchy Standard on Linux: where to put binary examples for a library?

查看:92
本文介绍了符合Linux上的文件层次结构标准:在何处放置库的二进制示例?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为一个库创建一个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上的文件层次结构标准:在何处放置库的二进制示例?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆