[CentOS] How to compile APUE code on centos 6.X

Tue Jul 29 15:58:48 UTC 2014
Jonathan Billings <billings at negate.org>

On Tue, Jul 29, 2014 at 10:00:53PM +0800, Theodore Si wrote:
>
> Hi all,
> 
> I want to compile the source code of Advanced Programming in the Unix
> Environment(APUE) 3rd edition, and I encountered some difficulties.
> After executing "make", I got this message:
> [...]
> How to install libbsd to solve this problem on CentOS (this works on
> Ubuntu)?

You need the 'libbsd' package, available in EPEL.
(http://fedoraproject.org/wiki/EPEL)

The 'heapsort()' function is implemented there.

-- 
Jonathan Billings <billings at negate.org>