仅安装手册页和文档吗?
如何仅安装 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您正确且完整地安装了本地编译的 clang,您可能还会在
$HOME
的子目录中“安装”了man
页面,以及正如你所说,进入$HOME/bin
(或任何地方)。man
程序在一些预先配置的目录中查找手册页,以及环境变量MANPATH
中提到的手册页(非常类似于PATH
)。您可能需要将安装手册页的目录添加到$MANPATH
中,并将其导出。man
的手册讨论了MANPATH
:http ://linuxmanpages.com/man1/man.1.phpIf 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). Theman
program looks for manual pages in some pre-configured directories, plus those mentioned in the environment variableMANPATH
(much likePATH
). You probably need to add the directory where your man pages got installed to your$MANPATH
, and export it.The manual for
man
talks aboutMANPATH
: http://linuxmanpages.com/man1/man.1.php