Opened 13 years ago

Closed 13 years ago

#27381 closed defect (worksforme)

Registry file does not exist

Reported by: razormusik@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: base Version: 1.9.2
Keywords: Cc:
Port:

Description

I installed the pre-compiled build of macports for OS X 10.5 and it failed to create a registry file. Any and all commands result in this:

Warning: No index(es) found! Have you synced your source indexes?
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 536)
    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

I followed that file path and came up with an empty folder. Please provide a copy of the registry file for me to place in that location.

I also tried to compile it myself, but when I tried "make install" I got this:

/usr/bin/install -c -d -o root -g admin -m 0755 /opt/local
install: chown 0:80 /opt/local: Operation not permitted
/usr/bin/install -c -d -o root -g admin -m 0755 /opt/local/etc/macports
install: chown 0:80 /opt/local/etc/macports: Operation not permitted
cat prefix.mtree | /usr/sbin/mtree -U -e -p /opt/local > /dev/null
if test -L "/opt/local/man" ; then \
		rm -f "/opt/local/man"; \
	fi
if test ! -e "/opt/local/man" ; then \
		ln -s share/man /opt/local/man; \
	fi
/usr/bin/install -c -o root -g admin -m 444 macports.conf /opt/local/etc/macports/macports.conf.default
install: /opt/local/etc/macports/macports.conf.default: chown/chgrp: Operation not permitted
make[1]: *** [install] Error 71
make: *** [install] Error 1

Any help on this matter would be appreciated.

Change History (3)

comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Component: portsbase

Sounds like you need to prefix your commands with "sudo".

comment:2 Changed 13 years ago by razormusik@…

Did.

new-host-2:~ mynamehere$ sudo port sync
Warning: No index(es) found! Have you synced your source indexes?
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 536)
    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

comment:3 Changed 13 years ago by jmroot (Joshua Root)

Resolution: worksforme
Status: newclosed

So you need to fix whatever is causing root to be unable to write to that location.

Note: See TracTickets for help on using tickets.