软件工程

本类阅读TOP10

·PHP4 + MYSQL + APACHE 在 WIN 系统下的安装、配置
·Linux 入门常用命令(1)
·Linux 入门常用命令(2)
·使用 DCPROMO/FORCEREMOVAL 命令强制将 Active Directory 域控制器降级
·DirectShow学习(八): CBaseRender类及相应Pin类的源代码分析
·基于ICE方式SIP信令穿透Symmetric NAT技术研究
·Windows 2003网络负载均衡的实现
·一网打尽Win十四种系统故障解决方法
·数百种 Windows 软件的免费替代品列表
·收藏---行百里半九十

分类导航
VC语言Delphi
VB语言ASP
PerlJava
Script数据库
其他语言游戏开发
文件格式网站制作
软件工程.NET开发
COMPILING AND SETTING UP UNIX NETWORK PROGRAMMING (UNP) LIBRARY

作者:未知 来源:月光软件站 加入时间:2005-5-13 月光软件站

COMPILING AND SETTING UP UNIX NETWORK PROGRAMMING (UNP) LIBRARY

To develop their automated traders in an external machine, you need to install the UNP communication library provided by Richard Stevens' Unix Network Programming book. The source code can be found at:

http://www.kohala.com/start/unpv12e/unpv12e.tar.gz

We assume you saved the file in a directory that we refer to as UNPV_DIR. After that, the user can use the command (to unzip and untar in the current directory):

tar -xvzf unpv12e.tar.gz
That should create a directory unpv12e in UNPV_DIR, and uncompress all the necessary files inside it.

The next step is to compile the network library without errors. Here is Stevens' original compilation notes together with other comments added to ease up the compilation process.

QUICK AND DIRTY (Originally by Richard Stevens, edited by PLAT Team)

Once you are inside UNPV_DIR,

cd unpv12e
./configure # try to figure out all implementation differences
cd lib # build the basic library that all programs need
make # use "gmake" everywhere on BSD/OS systems
If you are unable to compile using ' make' (the last step above), then follow the modifications suggested below and try again. The exact nature of the modifications needed might differ from one configuration to another. Below are general tips from our crux installation. After you change something in the UNP source code, we recommend you execute ' make clean' before calling 'make' again to be certain that your changes are fully incorporated.
NOTES ON UNP INSTALLATION ON CRUX

The following are the particular changes we needed to make for the UNP installation on crux (UNPV_DIR=/usr/local):

  • Commented out a structure because it was a redefinition of a structure which was in the system's include libraries, with one extra field: (UNPV_DIR/unpv12e/lib/unp.h


相关文章

相关软件