提问人:Hashem HZ 提问时间:3/17/2023 最后编辑:John BollingerHashem HZ 更新时间:3/17/2023 访问量:1226
正在检查主机系统类型...无效配置“x86_64-unknown-linux-gnu”:无法识别计算机“x86_64-unknown”
checking host system type... Invalid configuration `x86_64-unknown-linux-gnu': machine `x86_64-unknown' not recognized
问:
./configure
尝试编译时出现以下错误:
loading cache ./config.cache
checking host system type... Invalid configuration `x86_64-unknown-linux-gnu': machine `x86_64-unknown' not recognized
checking target system type... Invalid configuration `x86_64-unknown-linux-gnu': machine `x86_64-unknown' not recognized
checking build system type... Invalid configuration `x86_64-unknown-linux-gnu': machine `x86_64-unknown' not recognized
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking for ranlib... (cached) ranlib
checking for ld used by GCC... (cached) /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... (cached) yes
checking for BSD-compatible nm... (cached) /usr/bin/nm -B
checking command to parse /usr/bin/nm -B output... (cached) yes
checking for _ prefix in compiled symbols... (cached) no
checking whether ln -s works... (cached) yes
ltconfig: you must specify a host type if you use `--no-verify'
Try `ltconfig --help' for more information.
configure: error: libtool configure failed
我尝试使用以下方法设置主机 var
./configure --host=$[my system]
但新主机名出现相同的错误。 我仍然不熟悉使用配置和生成文件,但我的猜测是我输入了错误的主机名,或者完全错误地执行此操作。
答: 暂无答案
评论
configure
configure.ac
./configure
./configure.ac
x86_64-unknown-linux-gnu
./configure --host=$[my system]
--host=$[my
system]
$[ ... ]
./configure
configure
./configure
./configure
mv config.cache config.cache.old; ./configure