Chinaunix首页 | 论坛 | 博客
  • 博客访问: 457960
  • 博文数量: 134
  • 博客积分: 3056
  • 博客等级: 中校
  • 技术积分: 1150
  • 用 户 组: 普通用户
  • 注册时间: 2010-05-14 15:53
文章分类
文章存档

2013年(1)

2010年(133)

我的朋友

分类: LINUX

2010-05-14 19:33:47

1. 下载源码包

2. 解压缩,并认真阅读REAME并设置目录

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 justrun "make"

3. 查看你的UNIX系统是什么,用命令uname –s 我的系统显示是linux所以修改apue.2e\Make.define.linux文件如下:

WKDIR=/home/MichaelYao/work/apue.2e(/home/用户名/源码包解压后放置的目录)

4. make, 若提示ARG_MAX未定义,则

/usr/include/limits.h中加上#difine ARG_MAX 4096即可

5. 若不想重新全部编译,只编译某目录下的源文件.(source\file目录为例)

 

#cd file
#cp linux.mk Makefile
#make


阅读(573) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~