广告

本站里的文章大部分经过自行整理与测试

2017年1月28日星期六

Ubuntu - Lighttpd - 编译所需依赖库

$ apt install gcc make libglib2.0-0 gzip openssl zlib1g

$ cd /home/username/Downloads

libxml2
$ wget ftp://xmlsoft.org/libxml2/libxml2-2.9.4.tar.gz
$ tar zxvf libxml2-2.9.4.tar.gz
$ cd libxml2-2.9.4
$ ./configure
$ make && make install

libuuid
$ wget http://nchc.dl.sourceforge.net/project/libuuid/libuuid-1.0.3.tar.gz
$ tar zxvf libuuid-1.0.3.tar.gz
$ cd libuuid-1.0.3
$ ./configure
$ make && make install

pcre
$ wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.40.tar.gz
$ tar zxvf pcre-8.40.tar.gz
$ cd pcre-8.40
$ ./configure
$ make && make install

sqlite3
$ wget http://www.sqlite.org/snapshot/sqlite-snapshot-201701170010.tar.gz
$ tar zxvf sqlite-snapshot-201701170010.tar.gz
$ cd sqlite-snapshot-201701170010
$ ./configure
$ make && make install

bzip2
$ wget http://www.bzip.org/1.0.6/bzip2-1.0.6.tar.gz
$ tar zxvf bzip2-1.0.6.tar.gz
$ cd bzip2-1.0.6

$ gedit Makefile

# 在 CC=gcc 后加上 -fPIC
CC=gcc -fPIC

$ make clean
$ make && make install

Lighttpd 编译与安装
http://jasonmun.blogspot.my/2017/01/linux-lighttpd_25.html

没有评论:

发表评论