首页 > macos > OSX - MACPORT - 如何使用多个实例进行安装

OSX - MACPORT - 如何使用多个实例进行安装 (OSX - MACPORT - how to installation using multiple instances)

2015-09-26 macosmacports

问题

MACPORT:每当我尝试一次在macport中安装多个软件包时,我都会得到以下信息。

sudo port install swi-prolog
Waiting for lock on /opt/local/var/macports/registry/.registry.lock

它要求我等到当前的软件包安装完成。如何运行多个macport实例并行安装各种软件包,这样我就不必等到安装完了。有没有解决方法?

解决方法

您当前无法运行两个macports命令来同时安装端口。已经讨论过这个特性,但是被认为使用太少而且太容易实现。注册表锁专门用于防止并行端口安装。

但是,您可以在一个命令中指定要安装的多个端口(这些端口将一个接一个地安装):

sudo port install portA portB portC

请注意,为了加快速度,默认变体中的端口通常可用作二进制文件,即不需要在系统上编译,而那些需要编译的端口将尽可能使用并行编译。

问题

MACPORT: whenever i try to install multiple packages in macport at once, i do get following.

sudo port install swi-prolog
Waiting for lock on /opt/local/var/macports/registry/.registry.lock

It asks me to wait until current package installation is completed. How can i run multiple instance of macport to install various packages parallely, so that i will not have to wait till one gets installed. is there any workaround?

解决方法

You currently cannot run two macports commands to install ports at the same time. This feature has been discussed, but was considered of too little use and too error-prone to implement. The registry lock is there specifically to prevent parallel port installations.

You can, however, specify several ports to install in one command (these will be installed one after the other, though):

sudo port install portA portB portC

Note that, to speed things up, ports in their default variant are usually available as binaries, i.e., do not need to be compiled on your system, and those that do need to be compiled will use parallel compilation where possible.

相似信息