2012-08-28 99 views
4

我試圖在新安裝的山獅上安裝macports,我先安裝了xCode,然後安裝了xCode命令行工具。之後,我運行xCode並同意條款和條件,然後安裝macports dmg軟件包。Mac OS上的macports x山獅

一旦我做了,我跑了自我更新命令,它的工作,但然後任何自我安裝或自我升級將無法正常工作。

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的港口安裝我得到了以下

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. 

任何一個可以幫助我什麼,我可能做錯了嗎?

感謝,

回答

1

既然你只是勉強安裝MacPorts的,沒有實際的端口(你最有可能有另一臺計算機上)都尚未安裝。

如果您運行port installed,您會注意到它返回空白。

所以恭喜, 0個端口中有0個已過時;-)

如果您想要與其他Mac上的所有端口相同,請啓動終端並在這些機器上運行port installed。這應該會爲您提供一切,並且您可以導出該列表,或者在新的Mountain Lion安裝中挑選您想要的列表。

然後將它作爲簡單

port install [which program]

每個想要的端口。

1

我跟這個命令port clean --all有相同的信息,因爲MacPorts根本找不到任何東西(乾淨)。