
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
This program built for i386-redhat-linux-gnu
```
4. 安装 tar

```
[root@host ~]# yum install tar
```
## 下载源代码
书中所有实例的源代码也可以从 获得 ( )。
```

[furnace@host unp]$ tar -xzvf unpv13e.tar.gz
[furnace@host unp]$ ls
unpv13e unpv13e.tar.gz
```
## 编译源代码
查看文件 README。在执行完配置跟库文件的编译以后,编译试例程序 daytimetcpcliunix网络编程源码运行,并运行 ./daytimetcpcli 127.0.0.1unix网络编程源码运行,测试是否编译成功。

```
[furnace@host unp]$ cd unpv13e
[furnace@host unpv13e]$ ./configure
[furnace@host unpv13e]$ cd lib
[furnace@host unpv13e]$ make
[furnace@host unpv13e]$ cd ../libfree/

[furnace@host unpv13e]$ make
[furnace@host unpv13e]$ cd ../intro/
[furnace@host unpv13e]$ make daytimetcpcli
[furnace@host unpv13e]$ ./daytimetcpcli 127.0.0.1
```
至此,完成了 "Unix Network Programming, Volume 1: The Sockets Networking API (Third Edition)" 中的源代码运行环境的构建,以及编译源代码的完整步骤。后面可以实战相应的例子了。
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/jisuanjixue/article-131207-1.html
不喊话警告