Costruire il fallimento durante l'installazione py25-gtk su Mac OS X 10.6 usando MacPorts 1.8
Domanda
Quando faccio questo comando:
sudo port clean py25-gtk
sudo port install py25-gtk
ottengo questo errore:
---> 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.
Per informazioni getopt non è installato con macports, è in / usr / bin / getopt
Soluzione
La soluzione è quella di reinstallare tutte le porte perché ho aggiornato a una nuova versione del sistema operativo. (10.5 -> 10.6)
Per reinstallare le porte, salvare l'elenco delle porte installate:
port installed > myports.txt
pulire qualsiasi parzialmente completato costruisce e disinstallare tutte le porte installate:
sudo port clean installed
sudo port -f uninstall installed
Sfoglia myports.txt ed installare le porte che in realtà si desidera utilizzare (al contrario di quelli che sono necessari solo come dipendenze) uno per uno, ricordando di indicare le varianti del caso:
sudo port install portname +variant1 +variant2 ...
Per risolvere il mio problema, che posso fare e:
sudo port install py25-gtk
Ora è un lavoro!
Leggi la documentazione completa per reinstallare le porte a http://trac.macports.org/wiki/Migration