0

I've installed libevent from source code (from the git repository) with autotools. I thought the command 'make install-man' would install the man pages, but nothing is available. I've also tried setting the './configuration --datadir' option without results.

How can I install libevent man pages?

fifoq
  • 183
  • 13
  • No man pages in https://github.com/libevent/libevent . No man pages in Debian libevent https://packages.debian.org/search?suite=default&section=all&arch=any&searchon=names&keywords=libevent-2.1 ...... *On-line* **man libevent** etc. https://www.google.com/search?q=man+libevent – Knud Larsen Aug 05 '21 at 18:40
  • Ubuntu libevent1-dev https://packages.ubuntu.com/bionic/amd64/libevent1-dev/filelist provides two of the 804 libevent man pages ( included in Mageia, PCLinuxOS ) https://drive.google.com/file/d/13xvl9bxpRqN8B48W2NzafkEaN58TxPxd/view?usp=sharing .... Ref. lib64event-devel http://ftp.nluug.nl/pub/os/Linux/distr/pclinuxos/pclinuxos/apt/pclinuxos/64bit/RPMS.x86_64/lib64event-devel-2.1.11-3pclos2020.x86_64.rpm – Knud Larsen Aug 05 '21 at 22:07

1 Answers1

1

I've installed libevent from source code (from the git repository) with autotools. I thought the command 'make install-man' would install the man pages, but nothing is available.

In an Automake-based build system such as you are using, make install will install man pages along with everything else, and make install-man will install the man pages alone ... PROVIDED THAT there are any.

From examination of the libevent source, it appears that libevent does not provide man pages by default, but that you can turn on their generation and installation at configure time.

I've also tried setting the './configuration --datadir' option without results.

How can I install libevent man pages?

Run ./configure --help to see a summary of all the available options (I recommend doing this before building any Autotools project). I think you will see --enable-doxygen-man among the available options, and I expect that turning this on when you (re)configure will cause man pages to be generated during the build and installed during the installation. If you're sufficiently clever then you can probably work out how to build and install just those, but the easiest way forward proceeds via rebuilding the whole project.

John Bollinger
  • 160,171
  • 8
  • 81
  • 157
  • 1
    This solved it! To complete the solution: reconfigured the package with `./configure --enable-doxygen-doc --enable-doxygen-man` and installed man pages with `make install-man` – fifoq Aug 06 '21 at 09:52