简体   繁体   English

在私有目录下编译selinux

[英]Compile selinux in private directory

I'm trying to compile selinux in a private directory as drescribed here: https://github.com/SELinuxProject/selinux我正在尝试在此处描述的私有目录中编译 selinux: https : //github.com/SELinuxProject/selinux

For the compilation to work I also compiled xmlto and added it's bin-dir to $PATH.为了编译工作,我还编译了 xmlto 并将它的 bin-dir 添加到 $PATH。

The compilation fails with the following lines.编译失败并显示以下几行。

xmlto man secilc.8.xml
xmlto: /opt/seafile/Sourcecode/selinux/secilc/secilc.8.xml does not validate (status 3)
xmlto: Fix document syntax or use --skip-validation option
I/O error : Attempt to load network entity http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd
/opt/seafile/Sourcecode/selinux/secilc/secilc.8.xml:3: warning: failed to load external entity "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"
               "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
                                                                        ^
I/O error : Attempt to load network entity http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd
warning: failed to load external entity "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"
validity error : Could not load the external subset "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"
Document /opt/seafile/Sourcecode/selinux/secilc/secilc.8.xml does not validate
make[1]: *** [Makefile:36: secilc.8] Fehler 13
make[1]: Verzeichnis „/opt/seafile/Sourcecode/selinux/secilc“ wird verlassen
make: *** [Makefile:34: install] Fehler 1

Any ideas what I'm doing wrong?任何想法我做错了什么? Can I somehow tell make not to build the documentation?我可以以某种方式告诉 make 不要构建文档吗? Seem's to be a manpages thing.似乎是联机帮助页。

Additional info: I actually only need libselinux since It's required by seafile for some reason.附加信息:我实际上只需要 libselinux,因为由于某种原因,seafile 需要它。

Thanks in advance提前致谢

Markus马库斯

Unfortunately you're not mentioning the Linux distribution you're using.不幸的是,您没有提到您正在使用的 Linux 发行版。 Your system is missing the "XML document type definitions for DocBook", often shipped in a package called docbook-dtds (Fedora, RHEL/CentOS) or docbook-xml (Debian).您的系统缺少“DocBook 的 XML 文档类型定义”,它通常包含在一个名为docbook-dtds (Fedora、RHEL/CentOS)或docbook-xml (Debian)的包中。 Alternatively you could adapt your packet filter so that your system reaches the mentioned URLs in the error message.或者,您可以调整您的数据包过滤器,以便您的系统到达错误消息中提到的 URL。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM