首页 > 其他 > 详细

unix 环境高级编程第三版 源码无法 make 成功, 对‘heapsort’未定义的引用 -apue.3e

时间:2018-01-28 15:21:40      阅读:546      评论:0      收藏:0      [点我收藏+]

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目录下

 

unix 环境高级编程第三版 源码无法 make 成功, 对‘heapsort’未定义的引用 -apue.3e

原文:https://www.cnblogs.com/xinfenglee/p/8371142.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!