最近想升级一下lighttpd版本,并开启lighttpd的famide
接下来就是配置过程lua
编译lighttpd-1.4.33code
./configure --prefix=/var1/lighttpd --sysconfdir=/var1/lighttpd/conf --with-bzip2 --with-fam --disable-ipv6 --with-memcache --with-zlib --with-gdbm --with-lua --with-pcre --with-kerberos5 --with-ldap
而后出错了,提示:token
checking for libev support... ./configure: line 13314: syntax error near unexpected token `LIBEV,'
ip
./configure: line 13314: ` PKG_CHECK_MODULES(LIBEV, libev, ,'
而后谷歌了一下get
说安装一个pkg-config就OK。it
而后找到pkg-config 编译安装的 (下载地址本身谷歌一下就出来了)编译
安装提示须要glib (下载地址本身谷歌)class
接着安装lighttpd配置
检查环境没有问题了,开始编译
make
提示:
make[3]: *** [mod_extforward.lo] 错误 1
make[3]: Leaving directory `/root/lighttpd/mp4/lighttpd-1.4.33/src'
make[2]: *** [all] 错误 2
make[2]: Leaving directory `/root/lighttpd/mp4/lighttpd-1.4.33/src'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/root/lighttpd/mp4/lighttpd-1.4.33'
make: *** [all] 错误 2
谷歌后无果~~~
本身找到了解决方法,可是缘由还不知道。
就是把检查环境时,去掉:--disable-ipv6 在make 就OK。
对了 要开启memcache模块的话 还要下载他的SO文件 否则这个模块也不会生效的,
http://people.freebsd.org/~seanc/libmemcache/
去这个里面下载编译安装就OK了。