首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在使用MacPorts 1.8的MacOSX10.6上安装py25-gtk时构建失败

在使用MacPorts 1.8的MacOSX10.6上安装py25-gtk时构建失败
EN

Stack Overflow用户
提问于 2009-09-25 16:21:54
回答 1查看 1.5K关注 0票数 1

当我执行此命令时:

代码语言:javascript
复制
sudo port clean py25-gtk
sudo port install py25-gtk

我得到了这个错误:

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

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2009-09-25 20:03:04

解决方案是重新安装所有端口,因为我升级到了新的操作系统版本(10.5 -> 10.6)。

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

代码语言:javascript
复制
port installed > myports.txt

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

代码语言:javascript
复制
sudo port clean installed
sudo port -f uninstall installed

浏览myports.txt并逐个安装您实际想要使用的端口(而不是那些只需要作为依赖项的端口),记住要指定适当的变体:

代码语言:javascript
复制
sudo port install portname +variant1 +variant2 ...

要解决我的问题,我可以执行以下操作:

代码语言:javascript
复制
sudo port install py25-gtk

现在是工作了!

要重新安装端口,请阅读http://trac.macports.org/wiki/Migration上的完整文档

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

https://stackoverflow.com/questions/1478263

复制
相关文章

相似问题

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