Port fails to install as image. Problem with cleaning the registry.

Darren Weber dweber at macports.org
Mon Oct 13 18:29:50 PDT 2008


I have a sandbox for some ports, including postgresql83-server (see
attached) and I've got some issues with my installation.  I'm curious about
why the 'port clean --all <portname>' doesn't remove the registry entry?
Here's a terminal session where I incur an issue with the registry and my
port fails to install as an image:

[ dweber at XXX ~/ports ]$ sudo port install postgresql83-server
Password:
Portfile changed since last build; discarding previous state.
--->  Fetching postgresql83-server
--->  Verifying checksum(s) for postgresql83-server
--->  Extracting postgresql83-server
--->  Configuring postgresql83-server
--->  Building postgresql83-server with target all
--->  Staging postgresql83-server into destroot
--->  Creating launchd control script
###########################################################
# A startup item has been generated that will aid in
# starting postgresql83-server with launchd. It is disabled
# by default. Execute the following command to start it,
# and to cause it to launch at startup:
#
# sudo launchctl load -w
/Library/LaunchDaemons/org.macports.postgresql83-server.plist
###########################################################
--->  Installing postgresql83-server 8.3.4_0
Error: Target org.macports.install returned: Registry error:
postgresql83-server @8.3.4_0 already registered as installed.  Please
uninstall it first.
Error: Status 1 encountered during processing.
[ dweber at XXX ~/ports ]$ sudo port uninstall postgresql83-server
--->  Uninstalling postgresql83-server 8.3.4_0
[ dweber at XXX ~/ports ]$ sudo port clean --all postgresql83-server
--->  Cleaning postgresql83-server
[ dweber at XXX ~/ports ]$ sudo port install postgresql83-server
--->  Fetching postgresql83-server
--->  Verifying checksum(s) for postgresql83-server
--->  Extracting postgresql83-server
--->  Configuring postgresql83-server
--->  Building postgresql83-server with target all
--->  Staging postgresql83-server into destroot
--->  Creating launchd control script
###########################################################
# A startup item has been generated that will aid in
# starting postgresql83-server with launchd. It is disabled
# by default. Execute the following command to start it,
# and to cause it to launch at startup:
#
# sudo launchctl load -w
/Library/LaunchDaemons/org.macports.postgresql83-server.plist
###########################################################
--->  Installing postgresql83-server 8.3.4_0
Error: Target org.macports.install returned: Registry error:
postgresql83-server @8.3.4_0 already registered as installed.  Please
uninstall it first.
Error: Status 1 encountered during processing.
[ dweber at XXX ~/ports ]$ sudo rm
/opt/local/var/macports/receipts/postgresql83-server/8.3.4_0/receipt.bz2
[ dweber at XXX ~/ports ]$ sudo port install postgresql83-server
--->  Installing postgresql83-server 8.3.4_0

To create a database instance, after install do
%% sudo mkdir -p /opt/local/var/db/postgresql83/defaultdb
 %% sudo chown postgres:postgres /opt/local/var/db/postgresql83/defaultdb
%% sudo su postgres -c '/opt/local/lib/postgresql83/bin/initdb -D
/opt/local/var/db/postgresql83/defaultdb'

To tweak your DBMS, consider increasing kern.sysv.shmmax
by adding an increased kern.sysv.shmmax .. to /etc/sysctl.conf

To load the startup deamon, run:
%% sudo launchctl load -w
/Library/LaunchDaemons/org.macports.postgresql83-server.plist

To unload the startup deamon, run:
%% sudo launchctl unload -w
/Library/LaunchDaemons/org.macports.postgresql83-server.plist

Run 'port install pgAdmin3' to administer PostgreSQL
Run 'port install slony1' to manage replication for PostgreSQL

--->  Activating postgresql83-server 8.3.4_0
Error: Target org.macports.activate returned: Image error:
postgresql83-server @8.3.4_0 not installed as an image.
Error: Status 1 encountered during processing.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-users/attachments/20081013/9575ac77/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Portfile
Type: video/x-flv
Size: 3575 bytes
Desc: not available
Url : http://lists.macosforge.org/pipermail/macports-users/attachments/20081013/9575ac77/attachment.bin 


More information about the macports-users mailing list