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

Wed Jul 30 03:46:55 UTC 2014
Theodore Si <sjyzhxw at gmail.com>

I build the libbsd from source code that I downloaded from here: 
http://libbsd.freedesktop.org/wiki/

I think I got all things needed, right?



于2014年7月30日 10:35:39,Theodore Si写到:
>
> I tried to install libbsd before, it didn't work.(I can execute man
> heapsort)
> Today, I installed epel-release-6-8.noarch.rpm and then yum install
> libbsd,(No result for man heapsort) but it still doesn't work.
>
> 于2014年7月29日 23:58:48,Jonathan Billings写到:
>>
>> 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.