我正在尝试从HTML5样板运行构建脚本,我必须为此安装YUM。我在Mac雪豹10.6.8上。当我执行sudo port install 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>之前在安装百胜之后,我得到了Segmentation Fault,所以我卸载并重新安装了它,使用Macport获得了上面的错误。
发布于 2011-10-17 07:49:26
我想你把棍子弄错了。您不需要在Mac上安装YUM。事实上,这种行为完全是疯狂的,因为您已经有了一个非常好的MacPorts格式的包管理器!
再读一遍上面写的
如果你在Mac或Linux上..。 您可能已经预装了所有的依赖项。你可能需要一个百胜安装蚂蚁-控制或什么有你。
关键是“或者你有什么”。这是一种说“或您的包管理器的等效命令”的神秘方式。在基于红帽的系统上,包管理器确实是YUM;在Debian系统上,它是贴切的;在Mac上,它是MacPorts。
因此,删除您的YUM安装,只需做:
port install ant-contrib现在可以继续实际运行Ant了。
https://stackoverflow.com/questions/7790587
复制相似问题