/usr/bin/perl install-module.pl --all
ERROR: Using install-module.pl requires that you install "make".
Run Code Online (Sandbox Code Playgroud)
我需要在 AWS EC2 上的 ubuntu 上安装 make。我怎样才能做到这一点 ?我最终也可以成功安装 build-essential。
# make
make: *** No targets specified and no makefile found. Stop.
Run Code Online (Sandbox Code Playgroud)
在这种情况下,该make命令已安装。
# make
make: *** No targets specified and no makefile found. Stop.
Run Code Online (Sandbox Code Playgroud)
这意味着make 实际上 run,但由于Makefile当前目录中没有调用文件而失败。
这里的问题是即使安装perl了也找不到make。正如ændrük 评论的那样,这已经在 Server Fault 上被问到了。自 ændrük 发表评论以来,解决方案已发布在那里。
据到量子,这可以通过运行固定perl -MCPAN -e shell,然后在cpan>菜单中install Math::Random::Secure。
据到ocach,这可以是固定通过运行cpan,随后在这两个命令提示:cpan[n]
Run Code Online (Sandbox Code Playgroud)o conf make '/usr/bin/make' #or path to your make o conf commit
我在我的机器上尝试了 ochach 的方式,它似乎有效:
cpan[1]> o conf make '/usr/bin/make'
make [/usr/bin/make]
Please use 'o conf commit' to make the config permanent!
cpan[2]> o conf commit
commit: wrote '/home/ek/.cpan/CPAN/MyConfig.pm'Run Code Online (Sandbox Code Playgroud)
我建议尝试这些技术;其中之一似乎可以解决您的问题。