我试图在覆盆子PI4 Linux上编译squid。(因为常规鱿鱼在默认情况下没有sslbump )。有许多很好的指南可以使用SSL配置Squid,但它们都没有解决PI I下载的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,错误总是一样的。
试图了解是否有一个丢失的包,我需要正确地检测机器,或者只是一个解决办法,以使它的编译。
谢谢!!
发布于 2021-01-21 13:03:15
我刚刚发现我可以用--主机和--来调整配置命令,以指定我的机器,这为我解决了这个问题。我成功地构建了这个包。
要配置它,运行的命令是:
sudo ./configure --host=armv7l --target=armv7l --enable-ssl-crtd --with-openssl我希望有人发现这个有用。
发布于 2021-07-07 14:58:03
尝试将此命令添加到您的配置it --build=x86_64中
https://stackoverflow.com/questions/65807503
复制相似问题