Perlbrew安装失败

时间:2011-12-08 18:45:51

标签: perl perlbrew

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

这是什么意思?

2 个答案:

答案 0 :(得分:6)

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

安装开发工具后,您将拥有gccmake,并且可以编译perlbrew。

答案 1 :(得分:5)

您需要一个支持编译的环境。 'make'命令是该过程的一部分,你错过了那个实用程序。您似乎正在运行Mac OS。您需要一个C编译环境'XCode 4'。您的安装磁盘或在线APP商店提供它。​​

相关问题