码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2018-01-28 15:38:31      阅读:370      评论:0      收藏:0      [点我收藏+]

标签:min   his   lib   root   nbsp   目录   class   编程   depend   

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

标签:min   his   lib   root   nbsp   目录   class   编程   depend   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!