[MacPorts] #27381: Registry file does not exist
#27381: Registry file does not exist --------------------------------+------------------------------------------- Reporter: razormusik@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: --------------------------------+------------------------------------------- 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. -- Ticket URL: <https://trac.macports.org/ticket/27381> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27381: Registry file does not exist --------------------------------+------------------------------------------- Reporter: razormusik@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: base | Version: 1.9.2 Keywords: | Port: --------------------------------+------------------------------------------- Changes (by ryandesign@…): * component: ports => base Comment: Sounds like you need to prefix your commands with "sudo". -- Ticket URL: <https://trac.macports.org/ticket/27381#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27381: Registry file does not exist --------------------------------+------------------------------------------- Reporter: razormusik@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: base | Version: 1.9.2 Keywords: | Port: --------------------------------+------------------------------------------- Comment(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 }}} -- Ticket URL: <https://trac.macports.org/ticket/27381#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27381: Registry file does not exist ---------------------------------+------------------------------------------ Reporter: razormusik@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: base | Version: 1.9.2 Resolution: worksforme | Keywords: Port: | ---------------------------------+------------------------------------------ Changes (by jmr@…): * status: new => closed * resolution: => worksforme Comment: So you need to fix whatever is causing root to be unable to write to that location. -- Ticket URL: <https://trac.macports.org/ticket/27381#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts