我是Perl的新手,在安装perlbrew时遇到了问题。有人在帮助我,但他今天整天都很忙,所以我正试着自己解决这个问题。我安装了perlbrew根目录并修改了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那是什么意思?
发布于 2011-12-09 03:32:38
您需要安装MacOS developer tools。如果你使用的是当前版本的MacOS,你可以通过App Store免费获得Xcode安装程序。否则,安装程序位于计算机随附的软件DVD上。
一旦安装了开发工具,您将拥有gcc和make,并将能够编译perlbrew。
发布于 2011-12-09 02:54:02
您需要一个支持编译的环境。“make”命令是该过程的一部分,而您缺少该实用程序。看起来您正在运行Mac OS。你需要一个C编译环境'XCode 4‘。您的安装盘或在线应用程序商店提供它。
https://stackoverflow.com/questions/8435994
复制相似问题