首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >配置失败,配置无效

配置失败,配置无效
EN

Stack Overflow用户
提问于 2021-01-20 10:19:12
回答 2查看 4.4K关注 0票数 0

我试图在覆盆子PI4 Linux上编译squid。(因为常规鱿鱼在默认情况下没有sslbump )。有许多很好的指南可以使用SSL配置Squid,但它们都没有解决PI I下载的squid-5.0.4源代码中的“未知机器”问题。

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

代码语言:javascript
复制
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来检查我的系统架构时,结果是:

代码语言:javascript
复制
$ sudo bash +x cfgaux/config.sub armv7l-unknown-linux-gnueabihf
armv7l-unknown-linux-gnueabihf

我在不同的发行版上尝试过-- squid3、squid4、squid5,错误总是一样的。

试图了解是否有一个丢失的包,我需要正确地检测机器,或者只是一个解决办法,以使它的编译。

谢谢!!

EN

回答 2

Stack Overflow用户

发布于 2021-01-21 13:03:15

我刚刚发现我可以用--主机--来调整配置命令,以指定我的机器,这为我解决了这个问题。我成功地构建了这个包。

要配置它,运行的命令是:

代码语言:javascript
复制
sudo ./configure  --host=armv7l --target=armv7l --enable-ssl-crtd  --with-openssl

我希望有人发现这个有用。

票数 1
EN

Stack Overflow用户

发布于 2021-07-07 14:58:03

尝试将此命令添加到您的配置it --build=x86_64

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/65807503

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档