0

我正在尝试通过 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,perl -v它告诉我我有 perl 5,版本 12,颠覆 3。

在进行搜索时,我看到许多人也因为某些“缺少”Perl 依赖项而在通过 MacPorts 安装某些东西时遇到了问题。不过,似乎没有任何标准解决方案。任何想法这里发生了什么以及如何解决它?

4

1 回答 1

6

在自我更新 macports 后,我在更新我的端口安装程序时遇到了同样的问题。诀窍是再次运行 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
...
于 2012-04-19T21:36:27.943 回答