Skip to content

Instantly share code, notes, and snippets.

@vdeemann
Last active April 3, 2024 00:33
Show Gist options
  • Select an option

  • Save vdeemann/0861014a9370c6058abe9042da906424 to your computer and use it in GitHub Desktop.

Select an option

Save vdeemann/0861014a9370c6058abe9042da906424 to your computer and use it in GitHub Desktop.

Revisions

  1. vdeemann revised this gist Apr 3, 2024. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion phoenix-framework-macos-setup
    Original file line number Diff line number Diff line change
    @@ -38,4 +38,5 @@ make check-world
    # used this instead
    # https://postgresapp.com/
    cd demo
    mix ecto.create
    mix ecto.create
    mix phx.server
  2. vdeemann revised this gist Apr 3, 2024. 1 changed file with 9 additions and 3 deletions.
    12 changes: 9 additions & 3 deletions phoenix-framework-macos-setup
    Original file line number Diff line number Diff line change
    @@ -3,9 +3,9 @@ brew install elixir
    mix archive.install hex phx_new
    mix phx.new demo

    # postgresql setup
    ################
    # postgresql development environment setup
    # https://www.highgo.ca/2023/06/23/setup-postgresql-development-environment-on-macos/

    brew install git
    brew install icu4c

    @@ -32,4 +32,10 @@ sudo perl -MCPAN -e 'install IPC::Run'
    ./configure --enable-tap-tests

    make -j
    make check-world
    make check-world
    ################

    # used this instead
    # https://postgresapp.com/
    cd demo
    mix ecto.create
  3. vdeemann revised this gist Apr 2, 2024. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions phoenix-framework-macos-setup
    Original file line number Diff line number Diff line change
    @@ -3,6 +3,9 @@ brew install elixir
    mix archive.install hex phx_new
    mix phx.new demo

    # postgresql setup
    # https://www.highgo.ca/2023/06/23/setup-postgresql-development-environment-on-macos/

    brew install git
    brew install icu4c

  4. vdeemann revised this gist Apr 2, 2024. 1 changed file with 12 additions and 0 deletions.
    12 changes: 12 additions & 0 deletions phoenix-framework-macos-setup
    Original file line number Diff line number Diff line change
    @@ -18,3 +18,15 @@ cd postgres

    ./configure
    make -j

    make check
    make install

    ./configure --enable-tap-tests

    sudo perl -MCPAN -e 'install IPC::Run'

    ./configure --enable-tap-tests

    make -j
    make check-world
  5. vdeemann created this gist Apr 2, 2024.
    20 changes: 20 additions & 0 deletions phoenix-framework-macos-setup
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,20 @@
    brew install elixir

    mix archive.install hex phx_new
    mix phx.new demo

    brew install git
    brew install icu4c

    brew info icu4c
    echo 'export PATH="/usr/local/opt/icu4c/bin:$PATH"' >> ~/.zshrc
    echo 'export PATH="/usr/local/opt/icu4c/sbin:$PATH"' >> ~/.zshrc
    export LDFLAGS="-L/usr/local/opt/icu4c/lib"
    export CPPFLAGS="-I/usr/local/opt/icu4c/include"
    export PKG_CONFIG_PATH="/usr/local/opt/icu4c/lib/pkgconfig"

    git clone https://github.com/postgres/postgres.git
    cd postgres

    ./configure
    make -j