Nie można zaktualizować Macports (z Mac OS X Mavericks)

Po aktualizacji Mac OS X do najnowszej wersji, próbowałem samupdate moje Macports, ale nie powiodło się:

$ sudo port -v selfupdate
--->  Updating MacPorts base sources using rsync
receiving file list ... done

sent 36 bytes  received 69 bytes  210.00 bytes/sec
total size is 4925440  speedup is 46908.95
receiving file list ... done

sent 36 bytes  received 76 bytes  74.67 bytes/sec
total size is 512  speedup is 4.57
MacPorts base version 2.2.0 installed,
MacPorts base version 2.2.1 downloaded.
--->  Updating the ports tree
Synchronizing local ports tree from rsync://rsync.macports.org/release/tarballs/ports.tar
receiving file list ... done

sent 36 bytes  received 70 bytes  70.67 bytes/sec
total size is 57702400  speedup is 544362.26
receiving file list ... done

sent 36 bytes  received 77 bytes  75.33 bytes/sec
total size is 512  speedup is 4.53
receiving file list ... rsync: change_dir "tarballs/PortIndex_darwin_13_i386" (in release) failed: No such file or directory (2)
done

sent 4 bytes  received 9 bytes  26.00 bytes/sec
total size is 0  speedup is 0.00
rsync error: some files could not be transferred (code 23) at /SourceCache/rsync/rsync-42/rsync/main.c(1400) [receiver=2.6.9]
Command failed: /usr/bin/rsync -rtzv --delete-after rsync://rsync.macports.org/release/tarballs/PortIndex_darwin_13_i386/PortIndex /opt/local/var/macports/sources/rsync.macports.org/release/tarballs
Exit code: 23
--->  MacPorts base is outdated, installing new version 2.2.1
Installing new MacPorts release in /opt/local as root:admin; permissions 0755; Tcl-Package in /Library/Tcl

checking build system type... x86_64-apple-darwin13.0.0
checking host system type... x86_64-apple-darwin13.0.0
checking target system type... x86_64-apple-darwin13.0.0
checking MacPorts version... 2.2.1
checking for sw_vers... /usr/bin/sw_vers
checking for defaults... /usr/bin/defaults
checking for xcode-select... /usr/bin/xcode-select
checking Mac OS X version... 10.9
checking Xcode location... /Applications/Xcode.app/Contents/Developer
checking Xcode version... 5.0.1
checking for gcc... /usr/bin/cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
<snip>
checking CommonCrypto/CommonDigest.h presence... yes
checking for CommonCrypto/CommonDigest.h... yes
checking for readline in -lreadline... yes
checking whether rl_username_completion_function is declared... no
checking whether rl_filename_completion_function is declared... yes
checking whether rl_completion_matches is declared... yes
checking whether username_completion_function is declared... yes
checking whether filename_completion_function is declared... yes
checking whether completion_matches is declared... yes
checking for Tcl configuration... configure: error: Can't find Tcl configuration definitions
Command failed: cd /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/base && CC=/usr/bin/cc OBJC=/usr/bin/cc ./configure --prefix=/opt/local --with-tclpackage=/Library/Tcl --with-install-user=root --with-install-group=admin --with-directory-mode=0755 --enable-readline && make SELFUPDATING=1 && make install SELFUPDATING=1
Exit code: 1
Error: Error installing new MacPorts base: command execution failed
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: /opt/local/bin/port: port selfupdate failed: Error installing new MacPorts base: command execution failed
$

Jeśli tylko próbuję uaktualnić konkretny port, to też się nie powiodło:

$ sudo port upgrade emacsapp
Password:
Warning: port definitions are more than two weeks old, consider updating them by running 'port selfupdate'.
Error: emacsapp is not installed
$ sudo port search emacs
Password:
Warning: port definitions are more than two weeks old, consider updating them by running 'port selfupdate'.
$ sudo port upgrade emacs-app
Warning: port definitions are more than two weeks old, consider updating them by running 'port selfupdate'.
--->  Fetching archive for gperf
--->  Attempting to fetch gperf-3.0.4_2.darwin_13.x86_64.tbz2 from http://packages.macports.org/gperf
--->  Attempting to fetch gperf-3.0.4_2.darwin_13.x86_64.tbz2 from http://lil.fr.packages.macports.org/gperf
--->  Attempting to fetch gperf-3.0.4_2.darwin_13.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/gperf
--->  Fetching distfiles for gperf
--->  Attempting to fetch gperf-3.0.4.tar.gz from http://ykf.ca.distfiles.macports.org/MacPorts/mpdistfiles/gperf
--->  Verifying checksums for gperf
--->  Extracting gperf
Error: org.macports.extract for port gperf returned: command execution failed
Please see the log file for port gperf for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gperf/gperf/main.log
Error: Problem while installing gperf
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
$

Dowolny pomysł

  • jeśli jest to spowodowane niekompatybilnością między OS X Mavericks i Macports?
  • Jak to naprawić?

Edit:

Próbowałem innego komputera uaktualnić go z 10.8.5 do 10.9, a następnie spróbować zrobić selfupdate dla macports, to nie działa ponownie, ale dał inny błąd:

$ sudo port -v selfupdate
--->  Updating MacPorts base sources using rsync
receiving file list ... done
base.tar

sent 13396 bytes  received 10355 bytes  15834.00 bytes/sec
total size is 4925440  speedup is 207.38
receiving file list ... done
base.tar.rmd160

sent 64 bytes  received 635 bytes  1398.00 bytes/sec
total size is 512  speedup is 0.73
MacPorts base version 2.2.1 installed,
MacPorts base version 2.2.1 downloaded.
--->  Updating the ports tree
Synchronizing local ports tree from file:///opt/local/var/macports/sources/svn.macports.org/trunk/dports/
svn: E155036: Please see the 'svn upgrade' command
svn: E155036: Working copy '/opt/local/var/macports/sources/svn.macports.org/trunk/dports' is too old (format 10, created by Subversion 1.6)
Command failed: /usr/bin/svn update --non-interactive /opt/local/var/macports/sources/svn.macports.org/trunk/dports
Exit code: 1
Error: Synchronization of the local ports tree failed doing an svn update
Error: Couldn't sync the ports tree: Synchronization of 1 source(s) failed
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: /opt/local/bin/port: port selfupdate failed: Couldn't sync the ports tree: Synchronization of 1 source(s) failed
Author: qazwsx, 2013-10-27

9 answers

Najpierw zainstaluj "narzędzia wiersza poleceń":

sudo xcode-select --install

(Jawna zgoda na licencję jest czasami konieczna poprzez "sudo xcodebuild-license")

Następnie Uaktualnij porty:

sudo port -v selfupdate
 282
Author: imxylz,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2014-10-26 23:13:36

I odpowiedział na podobne pytanie. Lokalizacja frameworka Tcl uległa zmianie, przerywając istniejącą infrastrukturę MacPorts. Instalator 2.2.1 Dla Mavericks stał się dostępny tutaj . Zrób listę zainstalowanych portów i rozważ usunięcie /opt/local przed instalacją. Prawdopodobnie będziesz musiał "zaktualizować" wszystko i tak.

 37
Author: Brett Hale,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2017-05-23 12:02:44

Może być szansa, że nie zgodziłeś się z licencją XCode. Jeśli Xcode-install nie pomoże, możesz uruchomić poniższe polecenie, aby zgodzić się z licencją Xcode. sudo xcodebuild -license

 3
Author: jishin,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2014-06-28 11:34:40

Istnieje prawdziwy błąd z

Gperf @3.0.4: error: expected parameter declarator

Na szczęście ten numer ma swój bilet w MacPorts bilet 40918

Jeśli już możesz przeczytać wszystkie problemy w Mavericks na http://trac.macports.org/wiki/MavericksProblems

 2
Author: juanho,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2013-10-28 02:03:11

Miałem ten sam problem. Zakładam, że miałeś wcześniej zainstalowane utils linii poleceń Xcode. Wystarczy uruchomić XCODE i pozwolić mu zakończyć konfigurację. Teraz ponownie uruchom polecenie port i powinno działać poprawnie.

 2
Author: aduteese,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2013-11-16 21:21:55

Dostałem błąd z selfupdate i rozwiązałem go, wykonując świeżą instalację MacPorts z http://www.macports.org/install.php . Teraz mogę bez błędu uruchomić polecenie selfupdate i zainstalować inne porty.

Błąd, który widziałem był poniżej, wydaje się, że ten sam problem, co Yo Sophia wskazał:

$ sudo port selfupdate
Password:
--->  Updating MacPorts base sources using rsync
MacPorts base version 2.1.3 installed,
MacPorts base version 2.2.1 downloaded.
--->  Updating the ports tree
--->  MacPorts base is outdated, installing new version 2.2.1
Installing new MacPorts release in /opt/local as root:admin; permissions 0755; Tcl-Package in /Library/Tcl

Error: /opt/local/bin/port: port selfupdate failed: Error installing new MacPorts base: command execution failed
 1
Author: hailong,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2014-02-26 23:10:52

Głównie chciałem skomentować odpowiedź @Brett powyżej (sorry, więc n00b nadal nie jest dozwolone) i podzielić się moim doświadczeniem... nie do końca nowa odpowiedź, ale mam nadzieję, że jakieś przydatne informacje.

Pobrałem i zainstalowałem instalator Mavericks MacPorts, jak opisano powyżej, (ale bez usuwania / opt, jak sugerował @King Julian zrobił self update co było w porządku, a następnie upgrade outdated i wydaje się odinstalowywać i ponownie instalować wszystkie moje porty z Komunikatem:

Warning: Deactivate forced.  Proceeding despite dependencies.
Na każdym. Na szczęście ja w związku z tym, że nie jesteśmy w stanie zrealizować swoich planów, nie jesteśmy w stanie zrealizować swoich planów... po około 30 minutach wyrzucił błąd
Unable to open port: extra characters after close-quote

Więc zrobiłem self update ponownie i upgrade outdated wydaje się biegać ponownie...

Wygląda na to, że da się to zrobić (lampa i tak działa) - mogło być szybciej zacząć od zera, ale upewnij się, że masz na to co najmniej kilka godzin wolnego (i być podłączonym do sieci ;)

Przeprosiny Jeśli za dużo informacji, ale mam nadzieję, że pomoże!

 0
Author: jonnybradley,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2013-11-02 19:42:24

Problem wydaje się być z Macports i lokalizacja TCL framework i to ścieżka po Xcode został zainstalowany. Proponuję zainstalować tu świeżą wersję Macports for Mavericks: http://www.macports.org/install.php .

 0
Author: Yo Sophia,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2013-12-02 03:35:20

Miałem ten problem na Mountain Lion i tak naprawdę chodziło o MacPorts patrząc na starą ścieżkę XCode (miałem kilka wersji, w tym zainstalowane bety). Uruchomiłem z opcją-d i sprawdziłem konfigurację.plik dziennika w /opt / local/var/macports/sources/rsync.macports.org/release / base i zgłosił kilka błędów: -

--- snip ---
...
configure:3331: checking for C compiler version
configure:3340: gcc --version >&5
Configured with: --prefix=/Applications/Xcode5-DP3.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
xcrun: Error: could not stat active Xcode path '/Applications/Xcode5-DP3.app/Contents/Developer'. (No such file or directory)
configure:3351: $? = 0
configure:3340: gcc -v >&5
Configured with: --prefix=/Applications/Xcode5-DP3.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
xcrun: Error: could not stat active Xcode path '/Applications/Xcode5-DP3.app/Contents/Developer'. (No such file or directory)
...
--- snip ---

Więc podałem poprawną ścieżkę używając:-

sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
I to wszystko naprawiło.

Moje wskazówki dostałem z tej przydatnej strony.

 0
Author: Echelon,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2013-12-11 18:50:15