无法在 MacOS 中安装 YUM

发布于 2024-12-10 13:29:41 字数 1276 浏览 0 评论 0原文

我正在尝试从 HTML5 Boilerplate 运行构建脚本,我必须为此安装 YUM。我使用的是 Mac OS Snow Leopard 10.6.8。当我执行 sudo port install yum 时,出现以下错误。知道如何纠正它并正确安装 yum 吗?

--->  Computing dependencies for py24-nose
 --->  Dependencies to be installed: py24-distribute
 --->  Activating py24-distribute @0.6.24_0 Error: Target org.macports.activate returned: Image error:
 /opt/local/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg-info
 already exists and does not belong to a registered port.  Unable to
 activate port py24-distribute. Use 'port -f activate py24-distribute'
 to force the activation. Error: Failed to install py24-distribute Log
 for py24-distribute is at:
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py-distribute/py24-distribute/main.log
 Error: The following dependencies were not installed: py24-distribute
 Error: Unable to upgrade port: 1 Error: Unable to execute port:
 upgrade py24-nose failed To report a bug, see
 <http://guide.macports.org/#project.tickets>

之前安装 YUM 后,我遇到了 Segmentation Failure,因此我卸载并使用 Macports 再次安装,出现上述错误。

I'm trying to run the build script from HTML5 Boilerplate and I have to install YUM for that. I am on Mac OS Snow Leopard 10.6.8. When I did sudo port install yum, i'm getting the following error. Any idea how can I rectify it and install yum properly?

--->  Computing dependencies for py24-nose
 --->  Dependencies to be installed: py24-distribute
 --->  Activating py24-distribute @0.6.24_0 Error: Target org.macports.activate returned: Image error:
 /opt/local/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg-info
 already exists and does not belong to a registered port.  Unable to
 activate port py24-distribute. Use 'port -f activate py24-distribute'
 to force the activation. Error: Failed to install py24-distribute Log
 for py24-distribute is at:
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py-distribute/py24-distribute/main.log
 Error: The following dependencies were not installed: py24-distribute
 Error: Unable to upgrade port: 1 Error: Unable to execute port:
 upgrade py24-nose failed To report a bug, see
 <http://guide.macports.org/#project.tickets>

Previously after installing YUM, i was getting Segmentation Fault, so I uninstalled and installed it again using Macports to get the above error.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

夏末染殇 2024-12-17 13:29:41

我认为你搞错了方向。您不需要需要在 Mac 上安装 YUM。事实上,这种行为纯粹是疯狂的,因为你已经有了一个完美的 MacPorts 包管理器!

再读一遍它的内容

如果您使用的是 Mac 或 Linux...

您可能已经预安装了所有依赖项。您可能需要 yum install ant-contrib 或其他什么。

关键是“或者你有什么”。这是一种神秘的说法,即“或包管理器的等效命令”。在基于 Red Hat 的系统上,包管理器确实是 YUM;在 Debian 系统上,它是 APT;在 Mac 上,它是 MacPorts。

因此,删除 YUM 安装,然后只需执行以下操作:

port install ant-contrib

您现在可以继续实际运行 Ant。

I think you've got the wrong end of the stick here. You do not need to install YUM on the Mac. In fact, that act is sheer madness, because you already have a perfectly good package manager in the shape of MacPorts!

Read again what it says

If you're on Mac or Linux...

You've got all your dependencies pre-installed, likely. You may need a yum install ant-contrib or what have you.

The key bit there is "or what have you". That is a cryptic way of saying "or the equivalent command for your package manager". On Red Hat-based systems, the package manager is indeed YUM; on Debian systems, it's APT; on the Mac, it's MacPorts.

So, remove your YUM installation, and simply do:

port install ant-contrib

You can now proceed to actually running Ant.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文