Construire l'échec lors de l'installation py25-gtk sous Mac OS X 10.6 en utilisant MacPorts 1.8

StackOverflow https://stackoverflow.com/questions/1478263

Question

Quand je fais cette commande:

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

Je reçois cette erreur:

--->  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.

Pour plus d'informations getopt est pas installé avec macports, il est dans / usr / bin / getopt

Était-ce utile?

La solution

La solution est de réinstaller tous les ports parce que je mis à niveau vers une nouvelle version du système d'exploitation. (10.5 -> 10.6)

Pour réinstaller vos ports, enregistrer la liste de vos ports installés:

port installed > myports.txt

Nettoyer tout partiellement achevé builds, et désinstaller tous les ports installés:

sudo port clean installed
sudo port -f uninstall installed

Parcourir myports.txt et installer les ports que vous voulez utiliser (par opposition à ceux qui ne sont nécessaires que les dépendances), un par un, ne pas oublier de préciser les variantes appropriées:

sudo port install portname +variant1 +variant2 ...

Pour résoudre mon problème, je peux le faire et:

sudo port install py25-gtk

il est maintenant fonctionne!

Lisez la documentation complète pour réinstaller les ports http://trac.macports.org/wiki/Migration

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top