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

C. Florian Ebeling febeling at macports.org
Mon Oct 13 23:43:00 PDT 2008


[Forgot Reply-All]

Darren, are you running trunk? What is the output of

 port installed postgresql83-server

I can't given much detailed information on reproduction right now, but
I had somewhat similar
problems recently on trunk. I saw multiple active versions of the same
port, without many unusual
port commands. Feels like we had some regression and uninstall does
not always work
properly anylonger. We should watch this.

Florian

On Tue, Oct 14, 2008 at 3:29 AM, Darren Weber <dweber at macports.org> wrote:
>
> 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.
>
>
> _______________________________________________
> macports-users mailing list
> macports-users at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
>
>



--
Florian Ebeling
Twitter: febeling
florian.ebeling at gmail.com


More information about the macports-dev mailing list