bash – 安装make命令没有make(mac os 10.5)

前端之家收集整理的这篇文章主要介绍了bash – 安装make命令没有make(mac os 10.5)前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我正在尝试编写一个使用make命令的脚本,但默认情况下,Mac OS 10.5不会安装make,当您从gnu的网站下载make源代码时,您必须使用make本身来编译和安装它.如果你没有这样的话,这很难.如何安装make?
(我知道您可以通过安装 Xcode和Mac OS附带的开发人员工具来完成,但是我不希望人们去找到他们的mac os安装dvds以使用该脚本.)

它甚至不需要做,我只是寻找一个实用程序,您可以轻松地下载脚本(使用ftp或curl),并用于编译源代码.

GNU Make source tarball包含一个build.sh脚本来解决这个鸡蛋和鸡蛋的情况.从README:

If you need to build GNU Make and have no other make program to use,
you can use the shell script build.sh instead. To do this,first run
configure as described in INSTALL. Then,instead of typing make to
build the program,type sh build.sh. This should compile the program
in the current directory. Then you will have a Make program that you can
use for ./make install,or whatever else.

是的,他们想到了这个问题!

原文链接:https://www.f2er.com/bash/383708.html

猜你在找的Bash相关文章