Skip to content

Instantly share code, notes, and snippets.

@vdeemann
Last active April 3, 2024 00:33
Show Gist options
  • Save vdeemann/0861014a9370c6058abe9042da906424 to your computer and use it in GitHub Desktop.
Save vdeemann/0861014a9370c6058abe9042da906424 to your computer and use it in GitHub Desktop.
brew install elixir
mix archive.install hex phx_new
mix phx.new demo
################
# postgresql development environment setup
# https://www.highgo.ca/2023/06/23/setup-postgresql-development-environment-on-macos/
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
make check
make install
./configure --enable-tap-tests
sudo perl -MCPAN -e 'install IPC::Run'
./configure --enable-tap-tests
make -j
make check-world
################
# used this instead
# https://postgresapp.com/
cd demo
mix ecto.create
mix phx.server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment