需要在 MacOSx 上编译 lighttpd 的帮助

发布于 2024-07-28 23:20:28 字数 238 浏览 2 评论 0原文

我尝试下载lighttpd 1.4.23源代码,并在MacOSX 10.5.5上编译它。 这是我收到的错误:

$ ./autogen.sh ./autogen.sh:运行“libtoolize --copy --force” ./autogen.sh: 第 19 行:libtoolize: 命令未找到

我尝试在lighttpd 论坛上问同样的问题,但我无法在那里获得任何帮助。

提前致谢。

I try download lighttpd 1.4.23 source, and compile it on MacOSX 10.5.5.
This is the error I am getting:

$ ./autogen.sh
./autogen.sh: running `libtoolize --copy --force'
./autogen.sh: line 19: libtoolize: command not found

I tried ask the same question on lighttpd forum, but I can't get any help there.

Thanks in advance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

无语# 2024-08-04 23:20:28

libtoolize 是 GNU libtool 的一部分,GNU libtool 是一个用于构建可移植库的软件包。 在 Mac 上,获取它的一个选择是使用 MacPorts,这是一种包管理器,其工作方式与 Gentoo 和 FreeBSD 类似,因为它会在您的计算机上编译包。 请参阅 http://www.macports.org/install.php

但请注意,它将作为 glibtoolize 安装,即带有前缀“g”。 这是使 GNU 工具与可能存在的同名 UNIX 工具并行存在的一种标准方法(即使在这种特殊情况下没有)。

从 MacPorts 安装 libtool 的命令是: sudo port install libtool

在“port”命令后添加“-d”标志以查看构建输出。

libtoolize is part of GNU libtool, a package for building libraries portably. On the Mac, one option for getting it is to use MacPorts, a package manager which works in a similar fashion as Gentoo and FreeBSD, in that it compiles packages on your machine. See http://www.macports.org/install.php.

Beware, though, that it will be installed as glibtoolize, i.e. with a 'g' prefixed. That is a standard way to make GNU tools live in parallel with UNIX tools of the same name, that might be present (even though there isn't one in this particular case).

The command for installing libtool from MacPorts is: sudo port install libtool

Add a '-d' flag after the 'port' command to see the build output.

她如夕阳 2024-08-04 23:20:28

这是我在 Mac OS X 10.6.2 上安装 lighttpd 1.4.25 的方法。 如果我没记错的话,在最新版本的 Mac OS X 10.5 中,同样的事情对我也有效。

安装 Xcode 开发工具

从 Mac 附带的 DVD 安装它们(在“可选安装”下),或者从 Apple 的 下载它们开发者页面

安装 PCRE

curl -O http://softlayer.dl.sourceforge.net/project/pcre/pcre/7.9/pcre-7.9.tar.gz
tar xzf pcre-7.9.tar.gz
cd pcre-7.9
./configure
make && sudo make install
cd ../

安装 lighttpd

curl -O http://download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-1.4.25.tar.gz
tar xzf lighttpd-*.tar.gz
cd lighttpd-*
./configure
make && sudo make install

请注意,上面的 URL 很快就会过时; 您可能需要从其他位置下载最新版本的 .tar.gz 软件包。

Here's what I use to install lighttpd 1.4.25 on Mac OS X 10.6.2. If I remember correctly, the same thing worked for me in a recent version of Mac OS X 10.5.

Install Xcode Developer Tools

Either install them from the DVD that came with your Mac (under Optional Installs) or download them from Apple's developer page.

Install PCRE

curl -O http://softlayer.dl.sourceforge.net/project/pcre/pcre/7.9/pcre-7.9.tar.gz
tar xzf pcre-7.9.tar.gz
cd pcre-7.9
./configure
make && sudo make install
cd ../

Install lighttpd

curl -O http://download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-1.4.25.tar.gz
tar xzf lighttpd-*.tar.gz
cd lighttpd-*
./configure
make && sudo make install

Note that the URLs above will quickly go out of date; you may need to download the latest versions of the .tar.gz packages from a different location.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文