3

我是 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

这意味着什么?

4

2 回答 2

6

您需要安装MacOS 开发者工具。如果您使用的是当前版本的 MacOS,您可以通过 App Store 免费获取 Xcode 安装程序。否则,安装程序位于计算机随附的软件 DVD 上。

安装开发工具后,您将拥有gcc并且make能够编译 perlbrew。

于 2011-12-08T19:32:38.060 回答
5

您需要一个支持编译的环境。“make”命令是该过程的一部分,而您缺少该实用程序。您似乎正在运行 Mac OS。您需要一个 C 编译环境“XCode 4”。您的安装盘或在线应用商店提供。

于 2011-12-08T18:54:02.307 回答