首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法在MacOS中安装YUM

无法在MacOS中安装YUM
EN

Stack Overflow用户
提问于 2011-10-17 07:27:00
回答 1查看 17K关注 0票数 1

我正在尝试从HTML5样板运行构建脚本,我必须为此安装YUM。我在Mac雪豹10.6.8上。当我执行sudo port install yum时,我会得到以下错误。你知道我怎么才能纠正它并正确安装百胜吗?

代码语言:javascript
复制
--->  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>

之前在安装百胜之后,我得到了Segmentation Fault,所以我卸载并重新安装了它,使用Macport获得了上面的错误。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2011-10-17 07:49:26

我想你把棍子弄错了。您不需要在Mac上安装YUM。事实上,这种行为完全是疯狂的,因为您已经有了一个非常好的MacPorts格式的包管理器!

再读一遍上面写的

如果你在Mac或Linux上..。 您可能已经预装了所有的依赖项。你可能需要一个百胜安装蚂蚁-控制或什么有你。

关键是“或者你有什么”。这是一种说“或您的包管理器的等效命令”的神秘方式。在基于红帽的系统上,包管理器确实是YUM;在Debian系统上,它是贴切的;在Mac上,它是MacPorts。

因此,删除您的YUM安装,只需做:

代码语言:javascript
复制
port install ant-contrib

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

票数 5
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/7790587

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档