摘要:
1. 服务端程序(server.c)#include <stdio.h>#include <stdlib.h>#include <errno.h>#include <string.h>#include <sys/types.h>#include <netinet/in.h>#include <sys/socket.h>#include <sys/wait.h>#include <memory.h>/*能够同时接受的连接数*/#define BACKLOG 10int main(int a 阅读全文
随笔档案-2012年11月2日
深入理解软件包的配置、编译与安装(转)
2012-11-02 16:12 by Chung-shu, 175 阅读, 收藏,
摘要:
源出处不明。前言从源代码安装过软件的朋友一定对 ./configure && make && make install 安装三步曲非常熟悉了。然而究竟这个过程中的每一步幕后都发生了些什么呢?本文将带领你一探究竟。深入理解这个过程将有助于你在LFS的基础上玩出自己的 花样来。不过需要说明的是本文对 Makefile 和 make 的讲解是相当近视和粗浅的,但是对于理解安装过程来说足够了。概述用一句话来解释这个过程就是:根据源码包中 Makefile.in 文件的指示,configure 脚本检查当前的系统环境和配置选项,在当前目录中生成 Makefile 文件(还 阅读全文
浙公网安备 33010602011771号