Changes between Initial Version and Version 1 of Ticket #68119


Ignore:
Timestamp:
Sep 3, 2023, 12:34:57 AM (14 months ago)
Author:
ryandesign (Ryan Carsten Schmidt)
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #68119

    • Property Keywords PostgreSQL 15 removed
    • Property Cc jyrkiwahlstedt dgilman added; jwa@… removed
  • Ticket #68119 – Description

    initial v1  
    1 MacBook Pro (Retina, 15-inch, Mid 2015) Intel
    2 macOS Monterey 12.6.8
    3 Clean install prior to installing Macports
    4 MacPorts; 2.8.1
    5 Xcode: 14.2 (14C18)
     1MacBook Pro (Retina, 15-inch, Mid 2015) Intel \\
     2macOS Monterey 12.6.8 \\
     3Clean install prior to installing Macports \\
     4MacPorts; 2.8.1 \\
     5Xcode: 14.2 (14C18) \\
    66Xcode command line tools: 14.2.0.0.1.1668646533
    77
     
    99
    1010Error message:
    11 {{{ Error: shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
     11{{{
     12Error: shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
    1213chdir: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
    1314initdb: option requires an argument -- D
    1415initdb: hint: Try "initdb --help" for more information.
    15 sh: line 1: /opt/local/var/db/postgresql15/defaultdb: is a directory}}}
     16sh: line 1: /opt/local/var/db/postgresql15/defaultdb: is a directory
     17}}}
    1618
    17 I used these commands.\\
     19I used these commands.
    1820
    19 sudo port select postgresql postgresql15\\
    20 sudo port load postgresql15-server\\
    21 sudo mkdir -p /opt/local/var/db/postgresql15/defaultdb\\
    22 sudo chown postgres:postgres /opt/local/var/db/postgresql15/defaultdb\\
     21{{{
     22sudo port select postgresql postgresql15
     23sudo port load postgresql15-server
     24sudo mkdir -p /opt/local/var/db/postgresql15/defaultdb
     25sudo chown postgres:postgres /opt/local/var/db/postgresql15/defaultdb
    2326sudo su postgres -c 'cd /opt/local/var/db/postgresql15 && /opt/local/lib/postgresql15/bin/initdb -D /opt/local/var/db/postgresql15/defaultdb'
     27}}}
    2428
    2529How should PostgreSQL be installed using MacPorts?