使用 Mac Ports 安装 Python Gtk

使用 Mac Ports 安装 Python Gtk

我尝试使用 OSX 10.5 上的 Mac Ports 安装 Gimp。Gimp 无法构建,因为它需要 Python 2.5 gtk。安装 Python GTK 时出现以下错误:

$ sudo port install py25-gtk
Password:
--->  Computing dependencies for py25-gtk
--->  Staging py25-setuptools into destroot
Error: Target org.macports.destroot returned: shell command " cd     "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py25-setuptools/work/setuptools-0.6c11" && /opt/local/bin/python2.5 setup.py --no-user-cfg install --prefix=/opt/local --root=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py25-setuptools/work/destroot " returned error 1
Command output: sh: line 0: cd:     /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py25-setuptools/work/setuptools-0.6c11: No such file or directory

Error: The following dependencies failed to build: py25-cairo py25-numpy py25-nose py25-setuptools
Error: Status 1 encountered during processing.

我认为这可能与我安装了 Python 2.6 有关,我需要这样做才能使 mercurial+svn 正常工作。

答案1

您的问题可能类似于这个在 MacPorts trac 网站上。结论是,这是由于 Python 2.5 安装损坏所致,删除并重新安装 python2.5 和所有 py25 端口可解决问题。

此外,macports 用户邮件列表比 superuser.com 上与 MacPorts 相关的帖子活跃得多,并且您的问题可能在那里得到更好的解决(或已经解决,请先搜索)。

相关内容