Getting the following error:
dlopen(libpq.dylib, 0x0002): tried: 'libpq.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OSlibpq.dylib' (no such file), '/usr/lib/libpq.dylib' (no such file, not in dyld cache), 'libpq.dylib' (no such file)
could not load: libpq.dylib
I tried to create a symbol link to the /usr/lib from the source of the postgresql installation (sudo ln -s /Applications/Postgres.app/Contents/Versions/15/lib/libpq.5.dylib /usr/lib/libpq.5.dylib) but with System Integrity Protection (SIP) of macos I got "operation not permitted"
How can I fix the issue?