我正在尝试从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>
Run Code Online (Sandbox Code Playgroud)
以前在安装YUM之后,我得到了Segmentation Fault,所以我卸载并使用Macports再次安装它以获得上述错误.
我想你在这里得到了错误的结局.你并不需要在Mac上安装YUM.事实上,这种行为纯属疯狂,因为你已经拥有了一个非常好的MacPorts形式的包管理器!
再读一遍它的内容
如果您使用的是Mac或Linux ...
您可能已预先安装了所有依赖项.你可能需要一个yum install ant-contrib或者你有什么.
关键位是"或你有什么".这是一种说"或者包管理器的等效命令"的神秘方式.在基于Red Hat的系统上,包管理器确实是YUM; 在Debian系统上,它是APT; 在Mac上,它是MacPorts.
因此,删除您的YUM安装,只需执行以下操作:
port install ant-contrib
Run Code Online (Sandbox Code Playgroud)
您现在可以继续实际运行Ant了.
| 归档时间: |
|
| 查看次数: |
13695 次 |
| 最近记录: |