1

I'm using Mac OS X and I manually compiled llvm and clang because they were not available from MacPorts (a package manager).

I presume clang has some kind of man page. How do I install and/or activate it so that I can access it with man clang?

xyz
  • 501
  • 1
  • 7
  • 13
  • Minor technicality: MacPorts has both of these available. `sudo port install llvm-devel +clang` – Jeremy L Dec 27 '09 at 16:28
  • Ah, thank you. `port search clang` yielded nothing - I thought it was a separate project. – xyz Dec 28 '09 at 11:45

2 Answers2

2

Speaking from a Linux perspective (which I think might be reasonably similar) the manual compilaton of a program, that is, by the usual

make; make install

may have already generated a man page, and installed it in an appropriate place. This might be done by the makefile.

At least, I've observed this when installing Linux software.

pavium
  • 654
  • 5
  • 8
  • Thank you. It didn't seem to. It looks like the "man page" is in a `docs` subdir in `.pod` format. I'll install it via MacPorts as the top comment says. – xyz Dec 28 '09 at 11:53
1

As pavium says in my experience with Linux if a man page has been created it installs with the software when you make it. If the authors did not create a man page they did create an on line manual.

http://clang.llvm.org/docs/UsersManual.html

Nunya
  • 578
  • 4
  • 10
  • Thank you. I had saw that, but as I don't manually compile FOSS often, I wondered what the general deal with `man` pages is. – xyz Dec 28 '09 at 11:54