如何通过命令行获取Mac OS X的开发工具(例如make)

时间:2020-11-28 03:17:27

I am in a bit of a pickle. I have a few Mac Minis that I am colocating at my ISP and only have shell access (via ssh for example) to administer the boxes. This is fine, but I just realized - after downloading some tar files for a couple of packages I needed - that I don't have the basic dev tools installed (such as make, for compiling source code). Is there a place I can download them from using curl?

我有点腌渍。我有一些Mac Minis,我在我的ISP上进行定位,只有shell访问(例如通过ssh)来管理这些盒子。这很好,但我刚刚意识到 - 在为我需要的几个软件包下载一些tar文件后 - 我没有安装基本的开发工具(例如make,用于编译源代码)。有没有我可以使用curl下载它们的地方?

Thanks in advance! ~Aki

提前致谢! 〜亚希

4 个解决方案

#1


install xcode off of the Mac OS install media (I think it's the second dvd or cd or whatever, but am unsure). That should do it

从Mac OS安装媒体安装xcode(我认为它是第二个DVD或CD或其他什么,但我不确定)。应该这样做

#2


Install MacPorts. This will give you all the usual command line tools that you might need.

安装MacPorts。这将为您提供所需的所有常用命令行工具。

#3


You can use fink to get yourself a copy of lynx (command line web browser) and then use that to download the OS X developer tools from Apple. Or you could just install a GNU tool chain from Fink iteslf.

您可以使用fink获取lynx(命令行Web浏览器)的副本,然后使用它从Apple下载OS X开发人员工具。或者你可以从Fink iteslf安装一个GNU工具链。

#4


You should already have curl (mine is at /usr/bin/curl) which you can use to get the fink or MacPorts downloads. Then go from there.

你应该已经有curl(我的是/ usr / bin / curl)你可以使用它来获取fink或MacPorts下载。然后从那里去。

I'm a fink guy myself. Fink will need the devtools DVD isntalled.

我自己就是个傻瓜。芬克将需要devntalols DVD isntalled。

#1


install xcode off of the Mac OS install media (I think it's the second dvd or cd or whatever, but am unsure). That should do it

从Mac OS安装媒体安装xcode(我认为它是第二个DVD或CD或其他什么,但我不确定)。应该这样做

#2


Install MacPorts. This will give you all the usual command line tools that you might need.

安装MacPorts。这将为您提供所需的所有常用命令行工具。

#3


You can use fink to get yourself a copy of lynx (command line web browser) and then use that to download the OS X developer tools from Apple. Or you could just install a GNU tool chain from Fink iteslf.

您可以使用fink获取lynx(命令行Web浏览器)的副本,然后使用它从Apple下载OS X开发人员工具。或者你可以从Fink iteslf安装一个GNU工具链。

#4


You should already have curl (mine is at /usr/bin/curl) which you can use to get the fink or MacPorts downloads. Then go from there.

你应该已经有curl(我的是/ usr / bin / curl)你可以使用它来获取fink或MacPorts下载。然后从那里去。

I'm a fink guy myself. Fink will need the devtools DVD isntalled.

我自己就是个傻瓜。芬克将需要devntalols DVD isntalled。