资 源 简 介
unix环境高级编程第二版源代码:在UBUNTU下进行APUE的代码编译的话,需要改动的地方很多,尤其是ubuntu12.04下,内核升级到3.0后。
一 首先进行一些改动,将工作区间改变,修改MAKE文件以为编译打基础
http://blog.csdn.net/dycwahaha/article/details/2300938
(一)作者提供的编译方法的实现
README文件中给出的编译方法如下:
To build the source, edit the Make.defines.* file for your system and set WKDIR to the pathname of the tree containing the source code. Then just run "make". It should figure out the system type and build the source for that platform utomatically.
参照该方法,我将源码的编译分为三步。整个步骤都是在root超级用户下进行的,如果其他用户没有权限进行编译,可以通过su命令切换到超级用户。
第一步,编辑Make.defines.*文件。由于我所使用的操作系统是FreeBSD6.1,所以应该编辑文件Make.defines.freebsd。其实,编辑该文件的内容主要是修改其中的WKDIR,即我们源码所在文件夹的绝对路径名。原文件中WKDIR=/home/sar/apue.2e,我们可以根据我们实际文件夹所在的位置进行相应的修改。我的apue.2e文件夹直接放在/home下了,所以我将WKDIR修改为WKDIR=/home/apue.2e。其余内容不用修改,保存修改后的文件。
&n
文 件 列 表
apue.2e
fig14.19
Makefile
Make.defines.freebsd
Make.defines.linux
Make.defines.macos
Make.defines.solaris
advio
call
calld
daemons
datafiles
db
environ
exercises
file
include
ipc
ipp
lib
lock
mycat
open
open.fe
opend
opend.fe
proc
pty
sess
signals
sockets
std
stdio
streams
termios
threadctl
threads
fig15.33
fig14.32
fig14.1
figC.14
fig13.1
fig14.9
fig13.8
fig13.7
fig13.6
fig6.2
fig20.3
fig7.9
fig7.11
fig7.3
fig7.16
fig7.1
fig7.14
fig7.13
figC.21
figC.13
figC.5
figC.4
figC.11
figC.1
figC.6
figC.17
figC.12
figC.16
figC.15
fig4.8
fig4.24
fig4.12
fig4.25
fig3.10
fig4.3
fig4.22
fig1.6
fig3.2
figC.3
fig1.3
fig4.23
fig3.1
fig1.8
fig1.9
fig4.9
fig4.16
fig4.21
figB.1
fig15.17
fig15.19
figC.18
fig15.14
fig15.5
fig15.6
fig15.18
fig15.15
fig15.11
fig17.4
fig15.7
fig15.31
fig19.9
fig17.32
figB.3
figB.4
fig19.10
fig14.5
fig14.6
fig2.16
fig2.15
fig15.12
fig8.5
fig10.14
fig19.11
fig14.29a
fig17.19
fig3.11
fig10.18
fig10.19
fig10.29
fig10.24
fig18.20
fig14.29b
fig14.7
fig14.12
fig5.5
fig1.5
fig5.4
fig1.4
fig3.4
fig17.36
fig17.33
fig17.30
fig17.29
fig17.31
fig17.39
fig17.38
fig17.37
fig17.35
fig17.40
fig17.27
fig17.28
fig17.26
fig17.34
fig8.21
fig8.17
fig7.4
fig8.16
fig8.20
fig8.1
fig8.8
fig8.29
fig8.25
fig1.7
fig1.10
fig8.22
fig8.23
fig10.26
fig8.24
fig8.12
fig8.13
fig8.28
fig8.30
fig8.3
figC.7
fig8.6
figC.9
fig19.17
fig19.13
fig19.12
fig9.11
fig10.25
fig10.6
fig10.15
fig10.20
fig10.10
fig10.11
fig10.5
fig10.12
fig10.30
fig10.2
fig10.7
fig10.8
fig10.22
fig10.23
fig10.28
fig10.9
fig17.14
figC.20
fig16.9
fig17.17
fig16.8
fig16.10
fig16.20
fig17.25
fig17.23
fig16.14
fig16.15
fig16.17
fig16.16
fig16.18
fig17.24
fig17.22
fig17.16
fig17.15
fig17.13
fig2.13
fig5.11
fig5.12
fig5.13
fig2.12
fig17.12
fig14.16
fig19.8
fig17.21
fig17.20
fig17.11
fig17.10
fig17.6
fig14.18
fig14.17
fig18.11
fig18.12
fig18.17
fig18.13
fig18.10
fig18.18
fig18.14
fig18.21
fig18.16
fig18.15
fig18.22
fig12.17
fig12.4
fig12.11
fig12.12
fig12.13
fig12.16
fig12.8
fig11.4
fig11.5
fig11.14
fig11.3
fig11.10
fig11.11
fig11.12
fig11.13
fig11.2
README
systype.sh
DISCLAIMER