Opened 12 years ago

Closed 12 years ago

Last modified 10 years ago

#35894 closed update (invalid)

Selfupdate isn't working

Reported by: anonymi_90@… Owned by: neverpanic (Clemens Lang)
Priority: Normal Milestone:
Component: base Version: 2.1.1
Keywords: Cc: thibaud4988@…
Port:

Description

Hello,

I can't use sudo port selfupdate command anymore. It worked and I was able to install a programm a few weeks ago, but now I want to update this programm via macports selfupdate and update macports too to the latest version. I just get this annoying message:

--->  Updating MacPorts base sources using rsync
MacPorts base version 2.1.1 installed,
MacPorts base version 2.1.2 downloaded.
--->  Updating the ports tree
--->  MacPorts base is outdated, installing new version 2.1.2
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

I hope someone has a good advise for me Thank you!

Change History (6)

comment:1 Changed 12 years ago by neverpanic (Clemens Lang)

Component: portsbase
Keywords: selfupdate removed
Owner: changed from macports-tickets@… to cal@…

Please run port -d selfupdate and attach the output.

comment:2 Changed 12 years ago by anonymi_90@…

Hello,

Thank you for your soon answer. I tried "port -d selfupdate" but this didn't run very long so I tried "sudo port -d selfupdate" too and here is the console-text:

Gabriels-MacBook-Pro:~ gh$ port -d selfupdate
DEBUG: MacPorts sources location: /opt/local/var/macports/sources/rsync.macports.org/release/tarballs
--->  Updating MacPorts base sources using rsync
receiving file list ... done
rsync: mkstemp "/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/.base.tar.CLd9yU" failed: Permission denied (13)

sent 11368 bytes  received 111 bytes  3279.71 bytes/sec
total size is 3543040  speedup is 308.65
rsync error: some files could not be transferred (code 23) at /SourceCache/rsync/rsync-42/rsync/main.c(1400) [generator=2.6.9]
Command failed: /usr/bin/rsync -rtzv --delete-after rsync://rsync.macports.org/release/tarballs/base.tar /opt/local/var/macports/sources/rsync.macports.org/release/tarballs
Exit code: 23
DEBUG: Error synchronizing MacPorts sources: command execution failed
    while executing
"macports::selfupdate [array get global_options] base_updated"
Error: /opt/local/bin/port: port selfupdate failed: Error synchronizing MacPorts sources: command execution failed
Gabriels-MacBook-Pro:~ gh$ sudo port -d selfupdate
Password:
DEBUG: Copying /Users/gh/Library/Preferences/com.apple.dt.Xcode.plist to /opt/local/var/macports/home/Library/Preferences
DEBUG: MacPorts sources location: /opt/local/var/macports/sources/rsync.macports.org/release/tarballs
--->  Updating MacPorts base sources using rsync
receiving file list ... done
base.tar

sent 11368 bytes  received 111 bytes  4591.60 bytes/sec
total size is 3543040  speedup is 308.65
receiving file list ... done
base.tar.rmd160

sent 64 bytes  received 116 bytes  72.00 bytes/sec
total size is 512  speedup is 2.84
DEBUG: successful verification with key /opt/local/share/macports/macports-pubkey.pem
DEBUG: /usr/bin/tar -C /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/tmp -xf /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/base.tar
MacPorts base version 2.1.1 installed,
DEBUG: Rebuilding and reinstalling MacPorts if needed
MacPorts base version 2.1.2 downloaded.
--->  Updating the ports tree
Synchronizing local ports tree from rsync://rsync.macports.org/release/tarballs/ports.tar
DEBUG: /usr/bin/rsync -rtzv --delete-after  rsync://rsync.macports.org/release/tarballs/ports.tar /opt/local/var/macports/sources/rsync.macports.org/release/tarballs
receiving file list ... done
ports.tar

sent 51438 bytes  received 21019 bytes  16101.56 bytes/sec
total size is 53852160  speedup is 743.23
DEBUG: /usr/bin/rsync -rtzv --delete-after  rsync://rsync.macports.org/release/tarballs/ports.tar.rmd160 /opt/local/var/macports/sources/rsync.macports.org/release/tarballs
receiving file list ... done
ports.tar.rmd160

sent 64 bytes  received 636 bytes  280.00 bytes/sec
total size is 512  speedup is 0.73
DEBUG: successful verification with key /opt/local/share/macports/macports-pubkey.pem
DEBUG: /usr/bin/tar -C /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/tmp -xf /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports.tar
DEBUG: /usr/bin/rsync -rtzv --delete-after rsync://rsync.macports.org/release/tarballs/PortIndex_darwin_12_i386/PortIndex /opt/local/var/macports/sources/rsync.macports.org/release/tarballs
receiving file list ... done
PortIndex

sent 17842 bytes  received 4938 bytes  9112.00 bytes/sec
total size is 8772843  speedup is 385.11
DEBUG: /usr/bin/rsync -rtzv --delete-after rsync://rsync.macports.org/release/tarballs/PortIndex_darwin_12_i386/PortIndex.rmd160 /opt/local/var/macports/sources/rsync.macports.org/release/tarballs
receiving file list ... done
PortIndex.rmd160

sent 64 bytes  received 636 bytes  280.00 bytes/sec
total size is 512  speedup is 0.73
DEBUG: successful verification with key /opt/local/share/macports/macports-pubkey.pem
--->  MacPorts base is outdated, installing new version 2.1.2
DEBUG: Permissions OK
Installing new MacPorts release in /opt/local as root:admin; permissions 0755; Tcl-Package in /Library/Tcl

checking build system type... i386-apple-darwin12.1.0
checking host system type... i386-apple-darwin12.1.0
checking target system type... i386-apple-darwin12.1.0
checking MacPorts version... 2.1.2
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.8.1
checking Xcode location... /Applications/Xcode.app/Contents/Developer
checking Xcode version... 4.4.1
checking for gcc... /usr/bin/cc
checking whether the C compiler works... no
configure: error: in `/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/base':
configure: error: C compiler cannot create executables
See `config.log' for more details
Command failed: cd /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/base && CC=/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 && make install SELFUPDATING=1
Exit code: 77
DEBUG: Error installing new MacPorts base: command execution failed
    while executing
"macports::selfupdate [array get global_options] base_updated"
Error: /opt/local/bin/port: port selfupdate failed: Error installing new MacPorts base: command execution failed

I hope this helps. Thank you

comment:3 Changed 12 years ago by neverpanic (Clemens Lang)

Resolution: invalid
Status: newclosed

It's the old "C compiler cannot create executables" again. This is not a problem in MacPorts, but your local configuration. Ensure you have Xcode and the Command Line Tools installed, and the Xcode license accepted.

See FAQ#missingxcode, ProblemHotlist.

This is not a bug. For further support requests, please use the macports-users mailing list.

comment:4 Changed 12 years ago by neverpanic (Clemens Lang)

FAQ#missingxcode should have been wiki:FAQ#missingxcode.

comment:5 Changed 12 years ago by anonymi_90@…

Thank you very much, now it works again!!!

comment:6 Changed 10 years ago by thibaud4988@…

Cc: thibaud4988@… added
Last edited 10 years ago by thibaud4988@… (previous) (diff)
Note: See TracTickets for help on using tickets.