I want to build a modified version of lighttpd. I follow this tutorial:

Downloading and building the H264 Streaming Module for Lighttpd (version 2)

This is what I've done so far:

apt get install lighttpd
apt get install automake autoconf libtool 
cd /var/tmp
wget http://h264.code-shop.com/download/lighttpd-1.4.18_mod_h264_streaming-2.2.9.tar.gz
tar -zxvf lighttpd-1.4.18_mod_h264_streaming-2.2.9.tar.gz
wget http://download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-1.4.28.tar.gz
tar ... 

After I copied all files and data to the directory and Makefile.am I entered:


./autogen.sh: running `libtoolize --copy --force'
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
./autogen.sh: running `aclocal -I m4'
./autogen.sh: running `autoheader'
./autogen.sh: running `automake --add-missing --copy --foreign'
Makefile.am:8: lib_LTLIBRARIES must be set with `=' before using `+='

./configure --enable-maintainer-mode --prefix=${HOME}/test/lighttpd-1.4.28

The console returns:

        checking for pkg-config... no
        checking for libev support... ./configure: line 12184: syntax error near unexpected token `LIBEV,'
./configure: line 12184: `      PKG_CHECK_MODULES(LIBEV, libev, ,'

Some people solved this by installing "pkg-config". I installed this package but I still can't run the configuration.

EDIT: this is the source of the configure file at this line


    if test "$WITH_LIBEV" != "no"; then
            PKG_CHECK_MODULES(LIBEV, libev, ,
                    dnl no pkg-config for libev, searching manually:

                    if test "$WITH_LIBEV" != "yes"; then
                            LIBEV_LIBS="-L$WITH_LIBEV/lib -lev"

                                AC_CHECK_LIB([ev], [ev_loop], [
                                        AC_MSG_ERROR([libev not found])
                                        AC_MSG_ERROR([libev not found])

lighttpd-1.4.28 is not very current. You may be suffering from lighttpd bug #2300 Libev-4.0 isn't detected by lighttpd-1.x, this was fixed in 1.4.29 (backport from 2.0).

Otherwise, try:

  • double check your dependencies (specifically required versions of autoconf etc) as documented on the h264.code-shop.com instructions
  • make sure you can build lighttpd from source without the h264 module so that you can eliminate one problem at a time
  • I was able to build lighttpd-1.4.18 without any problems, so I assume you're right. I will download a newer version
    – Goot
    Feb 17 '13 at 21:41
  • I just built 1.4.30. thank you very much dude.
    – Goot
    Feb 17 '13 at 22:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.