官术网_书友最值得收藏!

  • Lighttpd
  • Andre Bogus
  • 238字
  • 2021-08-25 18:06:19

Building Lighttpd using Autotools

Lighttpd was built using Autotools until version 1.5.0, in which the authors experimented with CMake (and other build systems). The Autotools build system has been around for some time. So, almost every system that has a sufficient toolchain can build Lighttpd.

Note that the building can and should be done as a normal user, while the installation must usually be done as a superuser, unless the target directory is owned by the normal user. The easiest way (provided we have sudo) is:

configure && make && sudo make install

Before we enter this command line, we can set a few environment variables that will affect the build process. We can do this in a bash compatible shell using:

export SOME_VAR=X

This will set the variable SOME_VAR to X and export it to the shell. Alternatively, we can just omit the export if we write the variable declarations at the beginning of our command, as in:

SOME_VAR=X; OTHER_VAR=Y; configure

Here are the most important variables:

configure takes some options to select features. These options are usually expressed as:

configure --with-lua=/usr/src/lua-5.1 --with-pcre

Note that for every "with-something" option, there also is a "without-something" option that does the exact opposite. Here are the most important options:

The make utility will use the Makefile that configure has generated to build and install Lighttpd. Configure Lighttpd to your needs, but the defaults will take care of most of them.

主站蜘蛛池模板: 松桃| 焉耆| 都兰县| 玉环县| 玉门市| 孝感市| 二连浩特市| 晋中市| 华蓥市| 嵊州市| 长寿区| 黄山市| 泌阳县| 旬邑县| 浮山县| 永福县| 会宁县| 繁峙县| 大渡口区| 大同市| 双桥区| 翁牛特旗| 诸暨市| 淮阳县| 张家港市| 化州市| 南召县| 长岛县| 铁岭市| 汝南县| 绍兴县| 棋牌| 临桂县| 双牌县| 合山市| 聊城市| 含山县| 望城县| 宁化县| 新乐市| 皋兰县|