Apache httpd编译(make)错误,如何修复?

gr8qqesn  于 2022-11-16  发布在  Apache
关注(0)|答案(1)|浏览(335)

我在编译(配置)Apache httpd时遇到错误。请告诉我如何解决。

  • 错误信息
$ git clone -b 2.2.3 --single-branch https://github.com/apache/httpd.git
$ cd httpd
$ autoconf
$ ./configure
configure: error: cannot find required auxiliary files: config.guess config.sub
  • 我的环境
$ cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy

$ autoconf -V
autoconf (GNU Autoconf) 2.71

更新1
“配置”问题可能已经解决了。(我停止使用github)。但是,在make过程中出现了一个错误。

  • “make”错误消息
$ wget https://archive.apache.org/dist/httpd/httpd-2.2.3.tar.gz
$ gzip -d httpd-2.2.3.tar.gz
$ tar xvf httpd-2.2.3.tar
$ cd httpd-2.2.3
$ ./configure --prefix /home/ubuntu/local
$ make

/usr/bin/ld: .libs/htpasswd.o: undefined reference to symbol 'crypt@@XCRYPT_2.0'
/usr/bin/ld: /lib/x86_64-linux-gnu/libcrypt.so.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:39: htpasswd] Error 1
make[2]: Leaving directory '/home/ubuntu/httpd-2.2.3/support'
make[1]: *** [/home/ubuntu/httpd-2.2.3/build/rules.mk:72: all-recursive] Error 1
make[1]: Leaving directory '/home/ubuntu/httpd-2.2.3/support'
make: *** [/home/ubuntu/httpd-2.2.3/build/rules.mk:72: all-recursive] Error 1
  • 已安装的模块
sudo apt-get install libapr1-dev libaprutil1-dev
sudo apt-get install build-essential
sudo apt-get install libpcre3-dev
jum4pzuy

jum4pzuy1#

来自阿根廷的问候。试试这个:
工作取得http://archive.apache.org/dist/httpd/httpd-2.2.3.tar.gz
tar.gz中的一个文件
配置--前缀=/opt/httpd --包含apr --包含ssl =/opt/openssl-1.0.1i --启用ssl静态库部署--启用mods静态=ssl
须藤制造
sudo make安装
布雷尔

相关问题