【发布时间】:2011-12-08 18:45:50
【问题描述】:
我是 Perl 的新手,安装 perlbrew 时遇到问题。有人在帮助我,但他今天整天都很忙,所以我想自己解决这个问题。我安装了 perlbrew root 并修改了 bashrc,但现在我无法安装任何版本的 perlbrew(5.14.2 或任何其他版本)。这是我收到的错误:
Installing /Users/wuzl/perl5/perlbrew/build/perl-5.14.2 failed.
See /Users/wuzl/perl5/perlbrew/build.log to see why.
If you want to force install the distribution, try:
perlbrew --force install perl-5.14.2
我尝试了强制安装,但也没有用。于是我查了一下日志,上面说了一大堆东西,最后:
I can't find make or gmake, and my life depends on it.
Go find a public domain implementation or fix your PATH setting!
sh: make: command not found
sh: make: command not found
这是什么意思?
【问题讨论】:
-
就像错误消息中说的那样,安装
make或gmake。您可能不在 Unix/Linux 系统上,否则您可能已经拥有make。因此,如果您使用任何类型的 Windows 系统,请查找并安装gmake。 -
这是令人困惑的部分,我使用的是 Mac,即 Linux,对吗?
-
严格来说,Mac OS 是一个品牌的 UNIX。也就是说,仍然不需要包含开发工具。
-
OS X 不是 Linux。内核源自 Mach 3 和 BSD。
-
matthewb:为了在 Mac 上获得“make”程序,您需要安装 XCode,它可以从 Apple 网站免费获得。