configure:make:echo:找不到命令

问题描述 投票:0回答:2

当我尝试从源代码安装Ruby时,无论版本是什么,我都会收到以下错误。

$ ./configure



....
....
checking whether gcc needs -traditional... no
checking for ld... ld
checking whether the linker is GNU ld... yes
checking whether gcc -E accepts -o... yes
checking for ranlib... ranlib
checking for ar... ar
checking for as... as
checking for objdump... objdump
checking for objcopy... objcopy
checking for nm... nm
checking whether ln -s works... yes
checking whether make sets $(MAKE)... no
....
....
....
checking if make is GNU make... make: echo: Command not found
make: *** [all] Error 127
no
checking for safe null command for make... :
checking for nroff... /usr/bin/nroff`

我试图通过安装gccg++修复错误,但这没有帮助。

这里有完整的详细日志:https://gist.github.com/satnami/8ac0688c287a8d5c859c5ba064d9bfca

Extra details

Linux版本:

Linux version 4.4.0-104-generic(buildd@lgw01-amd64-030 (gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.3) )

gcc版本:

gcc version 4.8.5 (Ubuntu 4.8.5-2ubuntu1~14.04.1)

OpenssL版本:

OpenSSL 1.0.2g-fips 1 Mar 2016

ruby linux gcc gnu-make
2个回答
1
投票

最好至少包含相关信息,例如您正在使用的操作系统和操作系统版本。从gist输出看来你似乎正在使用某些版本的GNU / Linux。如果我们知道哪个发行版(例如,Ubuntu)我们可能会更有帮助。

也许你没有echo可用...你的PATH设置为什么?在许多系统上,echo住在/bin/echo所以请确保你的/bin上有PATH

请注意,在shell中运行echo foo不够好,因为你的shell很可能是bash,它有一个内置的echo。但是,make会运行/bin/sh而不是bash,而/bin/sh可能就像dash这样没有内置回声(取决于你正在使用的Linux发行版)。


1
投票

问题是因为缺少文件

/斌/回声

Makefile `echo -n' not working有关

© www.soinside.com 2019 - 2024. All rights reserved.