lighttpd 1.4.33 版本 編譯問題

最近想升級一下lighttpd版本,並開啓lighttpd的fam

接下來就是配置過程

編譯lighttpd-1.4.33

./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

然後出錯了,提示:

checking for libev support... ./configure: line 13314: syntax error near unexpected token `LIBEV,'
./configure: line 13314: ` PKG_CHECK_MODULES(LIBEV, libev, ,'

然後谷歌了一下

說安裝一個pkg-config就OK。

然後找到pkg-config 編譯安裝的 (下載地址自己谷歌一下就出來了)

安裝提示需要glib (下載地址自己谷歌)


接着安裝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了。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章