I'm trying to use sql with diesel in an arm64 process trust. So I did the disel setup and got the following error. In other words, I think I need to use postgresql for arm64. How should I install it?
dyld: Library not loaded: @rpath/libpq.5.dylib
Referenced from: /Users/~~/.cargo/bin/diesel
Reason: no suitable image found. Did find:
/Applications/Postgres.app/Contents/Versions/13/lib/libpq.5.dylib: mach-o, but wrong architecture
/Applications/Postgres.app/Contents/Versions/13/lib/libpq.5.dylib: stat() failed with errno=1
[1] 51392 abort diesel setup
When I ran the following command, I received the following error
arch -arm64 brew install postgresql
Please create a new installation in /opt/homebrew using one of the
"Alternative Installs" from:
https://docs.brew.sh/Installation
You can migrate your previously installed formula list with:
brew bundle dump
How do I install it?