2014-01-08 53 views
1

每次我安裝一個新的包,我看到此錯誤消息:MacPorts的

---> Found 1 broken file(s), matching files to ports 
Warning: No port py24-scipy found in the index; can't rebuild 
---> Broken files found, but all associated ports are not in the index and so cannot be rebuilt. 

它陷入這種狀態後,我做了一個「端口升級過時的」。我很確定我沒有使用py24-scipy(我使用py27),所以我只想找到觸發警告並將其刪除的文件。

我試着運行「port install XXX -d」,看它是否會告訴我破損文件在哪裏,但它沒有。

+0

我會工作嘗試'端口安裝py24-scipy',看看它是否已安裝,如果是'端口卸載py24-scipy'。就像你說的那樣,它可能不再被使用。 – Vortexfive

回答

0

基於評論從@Vortexfive(謝謝),這解決了這個問題:

SCML-JRichardson:pdf2html5 jric$ port installed py24-scipy 
The following ports are currently installed: 
    py24-scipy @0.11.0_0+gcc45 (active) 

這是奇怪的:

SCML-JRichardson:pdf2html5 jric$ port installed all | grep scipy 
py-scipy @0.11.0_0 
py-scipy @0.13.2_0 (active) 
py27-scipy @0.11.0_0+gcc45 
py27-scipy @0.13.2_0+gcc45 (active) 

但無論如何,

Password: 
---> Unable to uninstall py24-scipy @0.11.0_0+gcc45, the following ports depend on it: 
---> py-scipy @0.11.0_0 
Error: org.macports.uninstall for port py24-scipy returned: Please uninstall the ports that depend on py24-scipy first. 
Please see the log file for port py24-scipy for details: 
    /opt/local/var/macports/logs/_opt_local_var_macports_registry_portfiles_py24- scipy_0.11.0_0+gcc45/py24-scipy/main.log 
Warning: Failed to execute portfile from registry for py24-scipy @0.11.0_0+gcc45 
---> Unable to uninstall py24-scipy @0.11.0_0+gcc45, the following ports depend on it: 
---> py-scipy @0.11.0_0 
Error: port uninstall failed: Please uninstall the ports that depend on py24-scipy first. 

嘗試停用py- scipy所以它不會阻止py24-scip的移除

SCML-JRichardson:pdf2html5 jric$ sudo port deactivate py-scipy 
---> Deactivating py-scipy @0.13.2_0 
---> Cleaning py-scipy 

卸載PY24-SciPy的 - BT不作爲PY-SciPy的是仍然存在

SCML-JRichardson:pdf2html5 jric$ sudo port uninstall py24-scipy 
---> Unable to uninstall py24-scipy @0.11.0_0+gcc45, the following ports depend on it: 
---> py-scipy @0.11.0_0 
Error: org.macports.uninstall for port py24-scipy returned: Please uninstall the ports that depend on py24-scipy first. 
Please see the log file for port py24-scipy for details: 
    /opt/local/var/macports/logs/_opt_local_var_macports_registry_portfiles_py24-scipy_0.11.0_0+gcc45/py24-scipy/main.log 
Warning: Failed to execute portfile from registry for py24-scipy @0.11.0_0+gcc45 
---> Unable to uninstall py24-scipy @0.11.0_0+gcc45, the following ports depend on it: 
---> py-scipy @0.11.0_0 
Error: port uninstall failed: Please uninstall the ports that depend on py24-scipy first. 

現在嘗試同時去除PY24-SciPy的[email protected]_0

SCML-JRichardson:pdf2html5 jric$ sudo port uninstall py24-scipy [email protected]_0 
---> Uninstalling py-scipy @0.11.0_0 
---> Cleaning py-scipy 
---> Deactivating py24-scipy @0.11.0_0+gcc45 
---> Cleaning py24-scipy 
---> Uninstalling py24-scipy @0.11.0_0+gcc45 
---> Cleaning py24-scipy 
SCML-JRichardson:pdf2html5 jric$ sudo port activate py-scipy 
---> Computing dependencies for py-scipy 
---> Activating py-scipy @0.13.2_0 
---> Cleaning py-scipy 
+0

請注意,您可能在某個階段錯誤地安裝了py-scipy,而不是使用版本化版本。我認爲這個錯誤是由於從macports中刪除了過時的py24-scipy而引起的 – Mark