http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/l/
我的环境是centos7 x86_64
查看方法:
[root@localhost ~]# uname -a
Linux localhost.localdomain 3.10.0-693.el7.x86_64 #1 SMP Tue Aug 22 21:09:27 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
找到对应的rpm ,下载进行安装即可
[root@localhost tmp]# yum install libbsd-0.6.0-3.el7.x86_64.rpm
Loaded plugins: fastestmirror
Examining libbsd-0.6.0-3.el7.x86_64.rpm: libbsd-0.6.0-3.el7.x86_64
Marking libbsd-0.6.0-3.el7.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package libbsd.x86_64 0:0.6.0-3.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
====================================================================================================================================================================
Package Arch Version Repository Size
====================================================================================================================================================================
Installing:
libbsd x86_64 0.6.0-3.el7 /libbsd-0.6.0-3.el7.x86_64 193 k
Transaction Summary
====================================================================================================================================================================
Install 1 Package
Total size: 193 k
Installed size: 193 k
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : libbsd-0.6.0-3.el7.x86_64 1/1
Verifying : libbsd-0.6.0-3.el7.x86_64 1/1
Installed:
libbsd.x86_64 0:0.6.0-3.el7
Complete!
[root@localhost tmp]# yum install libbsd-devel-0.6.0-3.el7.x86_64.rpm
Loaded plugins: fastestmirror
Examining libbsd-devel-0.6.0-3.el7.x86_64.rpm: libbsd-devel-0.6.0-3.el7.x86_64
Marking libbsd-devel-0.6.0-3.el7.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package libbsd-devel.x86_64 0:0.6.0-3.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
====================================================================================================================================================================
Package Arch Version Repository Size
====================================================================================================================================================================
Installing:
libbsd-devel x86_64 0.6.0-3.el7 /libbsd-devel-0.6.0-3.el7.x86_64 160 k
Transaction Summary
====================================================================================================================================================================
Install 1 Package
Total size: 160 k
Installed size: 160 k
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : libbsd-devel-0.6.0-3.el7.x86_64 1/1
Verifying : libbsd-devel-0.6.0-3.el7.x86_64 1/1
Installed:
libbsd-devel.x86_64 0:0.6.0-3.el7
Complete!
回到apue.3e目录下重新make 即可
[root@localhost apue.3e]# pwd
/usr/src/apue.3e
apue.3e解压放在/usr/src目录下