首页 > 解决方案 > squid 配置失败,配置无效 `-': 机器 `-' 在 config.sub 上无法识别

问题描述

我正在尝试在 raspberry PI4 Linux 上编译 squid。(因为普通 squid 默认没有 sslbump)。有很多很棒的指南可以用 SSL 配置 Squid,但没有一个解决 PI 的“未知机器”问题我下载了 squid-5.0.4 的源代码。

运行配置命令,我得到的错误是:

sudo ./configure — with-openssl — enable-ssl-crtd --disable-arch-native


configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type: —
configure: WARNING: you should use --build, --host, --target
configure: WARNING: you should use --build, --host, --target
configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type: —
configure: WARNING: you should use --build, --host, --target
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
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 to enable maintainer-specific portions of Makefiles... no
checking for —-gcc... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of gcc... gcc3
checking for —-g++... no
checking for —-c++... no
checking for —-gpp... no
checking for —-aCC... no
checking for —-CC... no
checking for —-cxx... no
checking for —-cc++... no
checking for —-cl.exe... no
checking for —-FCC... no
checking for —-KCC... no
checking for —-RCC... no
checking for —-xlC_r... no
checking for —-xlC... no
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking build system type... Invalid configuration `—': machine `—' not recognized
configure: error: /bin/bash cfgaux/config.sub — failed

当我运行config.guess来检查我的系统架构时,结果是:

$ sudo bash +x cfgaux/config.sub armv7l-unknown-linux-gnueabihf
armv7l-unknown-linux-gnueabihf

我在各种发行版上尝试过——squid3、squid4、squid5,但错误总是一样的。

试图了解是否缺少我需要正确检测机器的包,或者只是一种解决方法来编译它。

谢谢!!

标签: linuxconfiguresquidraspberry-pi4

解决方案


尝试在您的配置中添加此命令--build=x86_64


推荐阅读