使用MacPorts 1.8在Mac OS X 10.6上安装py25-gtk期间生成失败 [英] Build failure during install py25-gtk on Mac OS X 10.6 using MacPorts 1.8

查看:99
本文介绍了使用MacPorts 1.8在Mac OS X 10.6上安装py25-gtk期间生成失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我执行此命令时:

sudo port clean py25-gtk
sudo port install py25-gtk

我收到此错误:

--->  Computing dependencies for py25-gtk
--->  Building getopt
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_getopt/work/getopt-1.1.4" && /usr/bin/make -j2 all LIBCGETOPT=0 prefix=/opt/local mandir=/opt/local/share/man CC=/usr/bin/gcc-4.2 " returned error 2
Command output:       _print_help in getopt.o
      _print_help in getopt.o
      _print_help in getopt.o
      _print_help in getopt.o
      _print_help in getopt.o
      _print_help in getopt.o
      _print_help in getopt.o
      _print_help in getopt.o
      _print_help in getopt.o
      _print_help in getopt.o
      _print_help in getopt.o
      _print_help in getopt.o
      _print_help in getopt.o
      _parse_error in getopt.o
      _our_realloc in getopt.o
      _our_malloc in getopt.o
      _set_shell in getopt.o
      _set_shell in getopt.o
      _add_longopt in getopt.o
      _add_long_options in getopt.o
      _add_long_options in getopt.o
      _normalize in getopt.o
      _main in getopt.o
      _main in getopt.o
      _main in getopt.o
      _main in getopt.o
      _main in getopt.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [getopt] Error 1

Error: The following dependencies failed to build: atk gtk-doc gnome-doc-utils rarian getopt intltool gnome-common p5-pathtools p5-scalar-list-utils gtk2 cairo libpixman pango shared-mime-info xorg-libXcursor xorg-libXrandr libglade2 py25-cairo py25-numpy fftw-3 py25-nose py25-gobject
Error: Status 1 encountered during processing.

有关信息getopt未与macports一起安装,它位于/usr/bin/getopt

For information getopt isn't installed with macports, it's in /usr/bin/getopt

推荐答案

解决方案是重新安装所有端口,因为我已升级到新的OS版本(10.5-> 10.6).

The solution is to reinstall all ports because I upgraded to a new OS version (10.5 -> 10.6).

要重新安装端口,请保存已安装端口的列表:

To reinstall your ports, save the list of your installed ports:

port installed > myports.txt

清理所有部分完成的构建,并卸载所有已安装的端口:

Clean any partially completed builds, and uninstall all installed ports:

sudo port clean installed
sudo port -f uninstall installed

逐一浏览myports.txt并安装您实际要使用的端口(与仅作为依赖项使用的端口相对),记住要指定适当的变体:

Browse myports.txt and install the ports that you actually want to use (as opposed to those that are only needed as dependencies) one by one, remembering to specify the appropriate variants:

sudo port install portname +variant1 +variant2 ...

要解决我的问题,我可以这样做:

To resolve my problem, i can do and :

sudo port install py25-gtk

现在可以了!

http://trac.macports.org/wiki/Migration中阅读完整的文档以重新安装端口.

这篇关于使用MacPorts 1.8在Mac OS X 10.6上安装py25-gtk期间生成失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆