在mac os x山狮上的macports

时间:2012-08-28 20:05:30

标签: macports

我试图在新安装的山狮上安装macports,我首先安装了xCode,然后安装了xCode命令行工具。之后,我运行xCode并同意条款和条件,然后安装了macports dmg软件包。

一旦我这样做,我运行了自我更新命令并且它工作但是然后任何自我安装或自我升级都不起作用。

Mo-Mughrabis-MacBook-Pro:~ mo$ sudo port -v selfupdate
--->  Updating MacPorts base sources using rsync
receiving file list ... done

sent 36 bytes  received 69 bytes  30.00 bytes/sec
total size is 3543040  speedup is 33743.24
receiving file list ... done

sent 36 bytes  received 76 bytes  32.00 bytes/sec
total size is 512  speedup is 4.57
MacPorts base version 2.1.2 installed,
MacPorts base version 2.1.2 downloaded.
--->  Updating the ports tree
Synchronizing local ports tree from rsync://rsync.macports.org/release/tarballs/ports.tar
receiving file list ... done

sent 36 bytes  received 70 bytes  30.29 bytes/sec
total size is 53821440  speedup is 507749.43
receiving file list ... done

sent 36 bytes  received 77 bytes  32.29 bytes/sec
total size is 512  speedup is 4.53
Creating port index in /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports

Total number of ports parsed:   0 
Ports successfully parsed:  0 
Ports failed:           0 
Up-to-date ports skipped:   15604

--->  MacPorts base is already the latest version

The ports tree has been updated. To upgrade your installed ports, you should run
  port upgrade outdated
Mo-Mughrabis-MacBook-Pro:~ mo$ sudo port upgrade outdated
Error: No ports matched the given expression

当我尝试运行sudo port install时,我得到了以下内容

Mo-Mughrabis-MacBook-Pro:~ mo$ sudo port install 
Can't map the URL 'file://.' to a port description file ("Could not find Portfile in /Users/mo").
Please verify that the directory and portfile syntax are correct.
To use the current port, you must be in a port's directory.

任何人都可以帮我解决我在这里可能做错的事情吗?

谢谢,

2 个答案:

答案 0 :(得分:1)

由于您刚刚安装了MacPorts,因此尚未安装任何实际端口(您最有可能在另一台计算机上安装过的端口)。

如果您运行port installed,您会发现它返回空。

祝贺你; 0个端口中有0个已过时; - )

如果您想要在其他Mac上使用所有相同的端口,请启动终端并在这些计算机上运行port installed。这应该会为您提供所有内容的列表,您可以导出该列表,也可以在新的Mountain Lion安装中选择所需的列表。

然后就像

一样简单
port install [which program]

为您想要的每个端口。

答案 1 :(得分:1)

我在此命令port clean --all之后收到相同的消息,因为MacPorts根本没有找到任何事情(干净)。