Debian 5 source code compilation and installation of Lighttpd

Source: Internet
Author: User
Tags valgrind

Download Lighttpd and specify the directory where the compressed package is stored:

Wget-P/OPT http://download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-1.4.35.tar.gz


Create a directory to store the decompressed source code:

Mkdir/usr/local/Lighttpd


Decompress source code:

Tar/xvf/opt/lighttpd-1.4.35.tar.gz-C/usr/local/Lighttpd

CD/usr/local/Lighttpd/lighttpd-1.4.35


Run the configuration file in the source code directory and specify the installation directory:

./Configure -- prefix =/usr/local/Lighttpd


Error:

Checking whether make supports nested variables... no

Checking whether uid '0' is supported by USTAR format... yes

Checking whether GID '0' is supported by USTAR format... yes

Checking how to create a USTAR tar archive... gnutar

Checking whether make supports nested variables... (cached) No

Checking for GCC... no

Checking for CC... no

Checking for cl.exe... no

Configure: Error: In '/root/download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-1.4.35 ':

Configure: Error: no acceptable C compiler found in $ path

See 'config. log' For more details


No GCC prompt

Install GCC:

Apt-Get install gcc

Run./configure -- prefix =/usr/local/Lighttpd again.


Another error occurred:

Checking for library containing dlopen...-LDL

Checking for dlfcn. H... (cached) Yes

Checking for valgrind... no

Checking for OpenSSL... no

Checking for Perl Regular Expressions support... yes

Checking for PCRE-config... no

Configure: Error: PCRE-config not found, install the PCRE-devel package or build with -- without-PCRE


Prompt NO PCRE

Download:

Wget http://ncu.dl.sourceforge.net/project/pcre/pcre/7.7/pcre-7.7.tar.gz

An error occurred while pressurization and installing PCRE.

Libtool: Ignoring unknown tag cxx

Libtool: Unrecognized option '-dhave_config_h'

Try 'libtool -- help' for more information.

Make [1]: *** [pcrecpp. Lo] Error 1

Make [1]: Leaving directory '/root/pcre-7.7'

Make: *** [all] Error 2


In fact, there is no C ++ interpreter. Install the C ++ Compiler:

Apt-Get install libtool

Apt-Get install g ++


Execute again./configure -- prefix =/usr/local/Lighttpd

In fact, this error is still prompted.

Checking for library containing dlopen...-LDL

Checking for dlfcn. H... (cached) Yes

Checking for valgrind... no

Checking for OpenSSL... no

Checking for Perl Regular Expressions support... yes

Checking for PCRE-config... no

Configure: Error: PCRE-config not found, install the PCRE-devel package or build with -- without-PCRE


Here we have installed PCRE, but it is still not found! The previous OpenSSL check is no

I have been looking for OpenSSL dependency packages.

APTITUDE search OpenSSL

APTITUDE search zlib

Wait a long time.

I have restarted it in the middle.


The final solution is:

Debian: lighttpd-1.4.35 # Path =/usr/local/PCRE/bin/: $ path

In fact, Echo $ Path shows that the default environment variable of the system does not contain/usr/local/PCRE.

This is the PCRE installation path that I specified when installing PCRE.


So I'm not sure whether many dependency packages have been installed before, because the Internet also says that the dependency packages are actually used.


Lessons!


It's very bad. It's very late. I have to go to work tomorrow. Come on!




Debian 5 source code compilation and installation of Lighttpd

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.