仅安装手册页和文档吗?

发布于 2024-12-25 01:28:38 字数 255 浏览 2 评论 0原文

如何仅安装 Clang 和 LLVM 的文档和手册页?我根据 LLVM 网站的源代码从源代码编译了当前版本,它工作正常,但由于它是一个本地独立存储库(它可以从您的主目录运行,假设您的路径中有它的 bin 子目录),它确实不安装手册页或文档。我卸载了 Clang/LLVM 的 Debian/Ubuntu(我正在运行这两个)软件包,以避免任何可能的冲突,但这也删除了 Clang 手册页。如何仅安装手册页和文档。如果必要的话,如果手册页在技术上与已安装的编译器相比是几个版本之前的版本,我就可以了。

How do I install just the documentation and man pages of Clang and LLVM? I compiled the current version from source, based on the source from the LLVM website and it works fine but since it is a local self-contained repository (it can run from your home directory assuming you have it's bin subdirectory in your path) it does not install the man pages or documentation. I uninstalled the Debian/Ubuntu (I am running both) package of Clang/LLVM to avoid any possible conflicts but this also removed the Clang man pages. How do I install just the man pages and documentation. I am OK if the man pages are technically from a couple of versions back compared to the installed compiler if necessary.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

棒棒糖 2025-01-01 01:28:38

如果您正确且完整地安装了本地编译的 clang,您可能还会在 $HOME 的子目录中“安装”了 man 页面,以及正如你所说,进入 $HOME/bin (或任何地方)。 man 程序在一些预先配置的目录中查找手册页,以及环境变量 MANPATH 中提到的手册页(非常类似于 PATH)。您可能需要将安装手册页的目录添加到 $MANPATH 中,并将其导出。

man 的手册讨论了 MANPATHhttp ://linuxmanpages.com/man1/man.1.php

If you installed your locally compiled clang correctly, and in full, you probably also 'installed' the man pages in a sub-directory of $HOME, along with the binaries which, as you say, went into $HOME/bin (or wherever). The man program looks for manual pages in some pre-configured directories, plus those mentioned in the environment variable MANPATH (much like PATH). You probably need to add the directory where your man pages got installed to your $MANPATH, and export it.

The manual for man talks about MANPATH: http://linuxmanpages.com/man1/man.1.php

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文