Re: MacPorts selfupdate fails… v 1.9.2 to 2.0.3 w Xcode 4.1 - OSX 10.7.1
William H. Magill
magill at me.com
Tue Sep 13 19:49:14 PDT 2011
On Sep 12, 2011, at 8:36 PM, Ryan Schmidt wrote:
> On Sep 12, 2011, at 14:54, William H. Magill wrote:
>
>> ======================================================================
>> # 27 inch iMac Intel (mid 2010) - 27 inch diagonal screen - Acquired 6/2011
>> Model
>> Processor 2.93 GHz Intel Core i7
>> Memory 4 GB 1333 MHz DDR3
>> Graphics ATI Radeon HD 5750 1024 MB
>> Display 27-inch (2560 x 1440)
>> Software Mac OS X Lion 10.7.1 (11B26)
>> ======================================================================
>> After failing to "selfupdate" under Xcode 4.0.2, I updated Xcode to 4.1 from the App Store, I got the same error as before (below), however the log file (below) as several different errors in it.
>>
>> I also note that, other than what appear to be "normal" config failures, no errors are reported.
>>
>>
>> outpost> sudo port selfupdate
>> Password:
>> ---> Updating the ports tree
>> ---> Updating MacPorts base sources using rsync
>> MacPorts base version 1.9.2 installed,
>> MacPorts base version 2.0.3 downloaded.
>> ---> MacPorts base is outdated, installing new version 2.0.3
>> Installing new MacPorts release in /opt/local as magill:admin; permissions 0755; Tcl-Package in /Library/Tcl
>>
>> Error: /opt/local/bin/port: port selfupdate failed: Error installing new MacPorts base: shell command failed (see log for details)
>> [/opt/local] magill
>>
>> ----------------<cut here>---------------------------------
>> outpost> ls -als ./var/macports/sources/rsync.macports.org/release/base/config.log
>> 60 -rw-r--r-- 1 root admin 58749 Sep 12 13:45 ./var/macports/sources/rsync.macports.org/release/base/config.log
>>
>> outpost> more ./var/macports/sources/rsync.macports.org/release/base/config.log
>> This file contains any messages produced by compilers while
>> running configure, to aid debugging if configure makes a mistake.
>
>
> [snip]
>
> Right, the config.log only tells you about what happened during the configure phase, which appears to have completed just fine. Presumably an error is happening in a later phase, like the build phase. Re-run selfupdate with the verbose flag to see what's happening.
>
> sudo port -v selfupdate
This is very weird… True… registry.db does not exist… no idea why unless the previous "selfupdate" attempt deleted it.
False… both my userid and root (sudo) can write to the directory.
-----------------------------<cut here>--------------------------
outpost> sudo port -v selfupdate
Password:
port registry doesn't exist at "/opt/local/var/macports/registry/registry.db" and couldn't write to this location
while executing
"registry::open $db_path"
(procedure "mportinit" line 551)
invoked from within
"mportinit ui_options global_options global_variations"
Error: /opt/local/bin/port: Failed to initialize MacPorts, port registry doesn't exist at "/opt/local/var/macports/registry/registry.db" and couldn't write to this location
[/Users/magill] magill
outpost> ls -alse /opt
total 0
0 drwxr-xr-x@ 3 magill admin 102 Aug 27 2009 .
0 drwxr-xr-x@ 32 root wheel 1156 Aug 17 21:49 ..
0 drwxr-xr-x 13 magill admin 442 Sep 12 13:45 local
[/opt/local/var/macports] magill
outpost> ls -alse /opt/local
total 4
0 drwxr-xr-x 13 magill admin 442 Sep 12 13:45 .
0 drwxr-xr-x@ 3 magill admin 102 Aug 27 2009 ..
0 drwxr-xr-x 28 magill admin 952 Sep 12 13:45 bin
0 drwxr-xr-x 3 magill admin 102 Aug 27 2009 etc
0 drwxr-xr-x 23 magill admin 782 Jun 15 01:37 include
0 drwxr-xr-x 31 magill admin 1054 Sep 12 13:45 lib
0 drwxr-xr-x 3 magill admin 102 Nov 7 2010 libexec
4 lrwxr-xr-x 1 root admin 9 Sep 12 13:45 man -> share/man
0 drwxr-xr-x 3 magill admin 102 Nov 7 2010 sbin
0 drwxr-xr-x 7 magill admin 238 Sep 12 13:45 share
0 drwxr-xr-x 2 magill admin 68 Sep 12 13:45 src
0 drwxr-xr-x 3 magill admin 102 Nov 7 2010 var
0 drwxr-xr-x 2 magill admin 68 Sep 12 13:45 www
[/opt/local/var/macports] magill
outpost> ls -alse /opt/local/var/
total 0
0 drwxr-xr-x 3 magill admin 102 Nov 7 2010 .
0 drwxr-xr-x 13 magill admin 442 Sep 12 13:45 ..
0 drwxr-xr-x 12 magill admin 408 Sep 12 13:45 macports
[/opt/local/var/macports] magill
outpost> ls -alse /opt/local/var/macports
total 16
0 drwxr-xr-x 12 magill admin 408 Sep 12 13:45 .
0 drwxr-xr-x 3 magill admin 102 Nov 7 2010 ..
4 -rw-r--r-- 1 root admin 13 Sep 12 13:45 .tclpackage
0 drwxr-xr-x 3 magill admin 102 Jul 8 14:03 build
0 drwxr-xr-x 4 magill admin 136 Jul 8 14:03 distfiles
0 drwxr-xr-x 2 magill admin 68 Jul 8 14:03 logs
0 drwxr-xr-x 3 root admin 102 Nov 7 2010 packages
12 -r--r--r-- 1 magill admin 9851 Sep 12 13:45 port-help.tcl
0 drwxr-xr-x 6 root admin 204 Jul 8 14:03 receipts
0 drwxr-xr-x 4 magill admin 136 Sep 13 22:39 registry
0 drwxr-xr-x 3 magill admin 102 Jul 8 14:03 software
0 drwxr-xr-x 3 root admin 102 Jun 15 01:37 sources
[/opt/local/var/macports] magill
outpost> ls -alse /opt/local/var/macports/registry
total 0
0 drwxr-xr-x 4 magill admin 136 Sep 13 22:39 .
0 drwxr-xr-x 12 magill admin 408 Sep 12 13:45 ..
0 -rw-r--r-- 1 root admin 0 Jul 8 14:03 .registry.lock
0 -rw-rw-r-- 1 root admin 0 Nov 7 2010 .turd_MacPorts
[/opt/local/var/macports] magill
outpost>
------------------------<cut here>------------------
Note: last activity had been 8 July when I successfully installed iStumbler.
T.T.F.N.
William H. Magill
# iMac11,3 Core i7 [2.936GHz - 4 GB 1333] OS X 10.7.1
# iMac6,1 Core 2 Duo [2.16GHz - 3 GB 667] OS X 10.6.8
# MacBook Pro4.1 Core 2 Duo [2.5GHz - 4GB 667] OS X 10.6.8
# Mac mini Core Duo [1.66 Ghz - 2 GB 667]OS X 10.7.1
# Flat-panel iMac (2.1) [800MHz - Super Drive - 768 Meg] OS X 10.4.11
# PWS433a [Alpha 21164 Rev 7.2 (EV56)- 64 Meg] Tru64 5.1a
# XP1000 [Alpha 21264-3 (EV6) - 256 meg] FreeBSD 5.3
# XP1000 [Alpha 21264-A (EV6-7) - 256 meg] FreeBSD 5.3
magill at mcgillsociety.org
magill at me.com
whmagill at gmail.com
More information about the macports-users
mailing list