【问题标题】:Squid configure failed with Invalid configuration `—': machine `—' not recognized on config.subsquid 配置失败,配置无效 `-': 机器 `-' 在 config.sub 上无法识别
【发布时间】:2021-07-07 22:58:03
【问题描述】:

我正在尝试在 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,但错误总是一样的。

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

谢谢!!

【问题讨论】:

    标签: linux configure squid raspberry-pi4


    【解决方案1】:

    我刚刚发现我可以使用 --host--target 调整配置命令来指定我的机器,这已经解决了我的问题。 我能够成功构建包。

    要配置它,运行命令是:

    sudo ./configure  --host=armv7l --target=armv7l --enable-ssl-crtd  --with-openssl
    

    我希望有人觉得这很有用。

    【讨论】:

      【解决方案2】:

      尝试在你的配置中添加这个命令--build=x86_64

      【讨论】:

      • 虽然此代码可能会解决问题,including an explanation 关于如何以及为什么解决问题将真正有助于提高您的帖子质量,并可能导致更多的赞成票。请记住,您正在为将来的读者回答问题,而不仅仅是现在提问的人。请edit您的回答添加解释并说明适用的限制和假设。
      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-11-26
      • 2021-08-25
      • 1970-01-01
      相关资源
      最近更新 更多