---
title: "源码编译"
author: "xserver"
date: "2013-01-01T21:41:14Z"
tags: []
categories: ["操作系统"]
slug: "untitled"
draft: false
lastmod: "2013-01-01T21:55:26Z"
id: 1758348
url: "https://xserver.iteye.com/blog/1758348"
---

2年没在linux编译过第三方库，都忘了有这回事。

拿到一份源码时，流程就这么走的：
README -> configure -> make-> install

1、从read me 中了解配置参数

2、./configure --输入相关配置参数，生成Makefile

3、make 编译时将遇到各种依赖问题，最麻烦的时候。

4、make install 安装

------------------------------------------------
不安装一个都不踏实=。=
./configure --help  <http://nginx.org/en/docs/install.html>

<http://xyuex.blog.51cto.com/5131937/1013414>

./configure \ 
--prefix=/usr \ 
--sbin-path=/usr/sbin/nginx \ 
……