Thursday, June 30, 2016

manpage - Missing man page of Clang



I installed Clang 3.6 following the instructions here (the latest version in Ubuntu repository is 3.5):



# to retrieve the archive signature
wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key|sudo apt-key add -


# to install all packages
apt-get install clang-3.6 clang-3.6-doc libclang-common-3.6-dev libclang-3.6-dev libclang1-3.6 libclang1-3.6-dbg libllvm-3.6-ocaml-dev libllvm3.6 libllvm3.6-dbg lldb-3.6 llvm-3.6 llvm-3.6-dev llvm-3.6-doc llvm-3.6-examples llvm-3.6-runtime clang-modernize-3.6 clang-format-3.6 python-clang-3.6 lldb-3.6-dev


However, after the installation, man clang says



No manual entry for clang
See 'man 7 undocumented' for help when manual pages are not available.



but man clang-3.6 works. Also, neither man clang++ or man clang++-3.6 works. How do I make man clang and man clang++ work and open the man page as it is already in the system? I also want to use the commands clang and clang++ instead of clang-3.6 and clang++-3.6.



Just create some symlinks:



sudo ln -s "$(command -v clang-3.6)" /usr/local/bin/clang
sudo ln -s "$(command -v clang++-3.6)" /usr/local/bin/clang++
sudo ln -s "$(man -w clang-3.6)" /usr/share/man/man1/clang.1.gz



The first two are for the clang and clang++ commands, and the third for the manpage. If the manpages for clang and clang++ are supposed to be the same, you can repeat it withclang++.1.gz instead of clang.1.gz.



And while you're at it, file a feature request with the package maintainers.


No comments:

Post a Comment

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...