DIYMacServer » Apache

3 posts

./configure: error: invalid variable name: --enable-mods-shared

started at 21 Feb 2009
started by darrcass
last reply from richard
  • darrcass
    21 Feb 2009
    #

    I'm attempting to install apache 2.2.11 on osx 10.5.6.

    I've cd'd to ~/Desktop/httpd-2.2.11 and edited config.layout:

    # Leopard Layout
    
    <Layout Leopard>
      prefix: /usr
      exec_prefix: ${prefix}
      bindir: ${exec_prefix}/bin
      sbindir: ${exec_prefix}/sbin
      libdir: ${exec_prefix}/lib
      libexecdir: ${exec_prefix}/libexec+
      mandir: ${prefix}/share/man
      sysconfdir: /etc+
      datadir: /Library/Webserver
      installbuilddir: ${prefix}/share/httpd/build
      errordir: ${prefix}/share/httpd/error
      iconsdir: ${prefix}/share/httpd/icons
      htdocsdir: ${datadir}/Documents
      manualdir: ${datadir}/share/httpd/manual
      cgidir: ${datadir}/CGI-Executables
      includedir: ${prefix}/include+
      localstatedir: /var
      runtimedir: ${localstatedir}/run
      logfiledir: ${localstatedir}/log+
      proxycachedir: ${runtimedir}/proxy
    </Layout>

    I'm getting the error mentioned in the title when i try to:

    ./configure --enable-layout=Leopard \
    --enable-mods-shared=all \
    --with-ssl=/usr \
    --with-mpm=prefork \
    --disable-static \
    --disable-unique-id \
    --disable-ipv6 \
    --enable-ssl \
    --enable-dav \
    --enable-cache \
    --enable-proxy \
    --enable-shared \
    --enable-logio \
    --enable-deflate \
    --with-included-apr \
    --enable-cgi \
    --enable-cgid \
    --enable-suexec
  • darrcass
    22 Feb 2009
    #

    OK -- got apache installed ok with this configure command:

    ./configure --enable-layout=Leopard \
    --with-ssl=/usr \
    --with-mpm=prefork \
    --disable-static \
    --disable-unique-id \
    --disable-ipv6 \
    --enable-rewrite=shared \
    --enable-speling=shared \
    --enable-ssl=shared \
    --enable-dav=shared \
    --enable-cache=shared \
    --enable-proxy=shared \
    --enable-shared=shared \
    --enable-logio=shared \
    --enable-deflate=shared \
    --with-included-apr \
    --enable-cgi=shared \
    --enable-cgid=shared \
    --enable-suexec=shared

    I had to comment out several lines in httpd.conf that tried to load built-in modules, but that was easy beacause when you try to start apache, it will fail and tell you which line to comment.

  • 23 Feb 2009
    #

    I will check your findings on the "shared-all" error.

    On the modules in the httpd.conf problem, you have an older httpd.conf and the module list has changed since the last time you installed Apache. Therefore old modules who are not compatible with this new version still get loaded and cause errors.

    Maybe I need to put something in the documentation about this.

Reply

You must log in to post.