我正在尝试通过MacPorts安装digikam(太糟糕了,因为没有HomeBrew),我不断收到以下错误:
Error: Dependency 'p5.12-xml-parser' not found.
Error: Status 1 encountered during processing.
我想也许我需要更新MacPorts,所以我做了(selfupdate
)。然后我还尝试upgrade outdated
用于MacPorts,我得到另一个与Perl5相关的错误:
Warning: No port p5.12-locale-gettext found in the index.
---> Computing dependencies for help2man
Error: Dependency 'p5.12-locale-gettext' not found.
Error: Unable to upgrade port: 1
我不确定为什么会这样。我用perl -v
检查了perl,告诉我我有perl 5,版本12,颠覆3。
在进行搜索时,我看到很多人在通过MacPorts安装某些东西时遇到了问题,因为一些“缺失”的Perl依赖项。但似乎没有任何标准解决方案。任何想法在这里发生了什么以及如何解决它?
答案 0 :(得分:6)
在自我更新macports后,我遇到了同样的问题更新我的端口安装程序。诀窍是再次运行selfupdate,以便端口获取新的源列表。
由于某些原因,这不是端口selfupdate的一部分。
$ sudo port upgrade outdated
Warning: No port p5.12-xml-parser found in the index.
Warning: No port p5.12-getopt-long found in the index.
Warning: No port p5.12-pathtools found in the index.
Warning: No port p5.12-scalar-list-utils found in the index.
---> Computing dependencies for intltool
Error: Dependency 'p5.12-xml-parser' not found.
Error: Unable to upgrade port: 1
To report a bug, see <http://guide.macports.org/#project.tickets>
$ sudo port selfupdate
---> Updating MacPorts base sources using rsync
MacPorts base version 2.0.4 installed,
MacPorts base version 2.0.4 downloaded.
---> Updating the ports tree
---> MacPorts base is already the latest version
The ports tree has been updated. To upgrade your installed ports, you should run
port upgrade outdated
$ sudo port upgrade -d outdated
Password:
---> Computing dependencies for p5.12-xml-parser
---> Fetching archive for p5.12-xml-parser
---> Attempting to fetch p5.12-xml-parser-2.400.0_3.darwin_11.x86_64.tgz from http://packages.macports.org/p5.12-xml-parser
---> Fetching p5.12-xml-parser
---> Verifying checksum(s) for p5.12-xml-parser
---> Extracting p5.12-xml-parser
---> Configuring p5.12-xml-parser
---> Building p5.12-xml-parser
---> Staging p5.12-xml-parser into destroot
---> Installing p5.12-xml-parser @2.400.0_3
...