Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

postgres install mac

$ brew install postgresql
Comment

install psql mac


brew install postgresql
Comment

install postgres mac client

You could use homebrew to install libpq.

brew install libpq

This would give you psql, pg_dump and a whole bunch of other client utilities without installing Postgres.

Unfortunately since it provides some of the same utilities as are included in the full postgresql package, brew installs it "keg-only" which means it isn't in the PATH by default. Homebrew will spit out some information on how to add it to your PATH after installation. In my case it was this:

echo 'export PATH="/usr/local/opt/libpq/bin:$PATH"' >> ~/.zshrc

Alternatively, you can create symlinks for the utilities you need. E.g.:

ln -s /usr/local/Cellar/libpq/10.3/bin/psql /usr/local/bin/psql
Comment

install psql mac

make sure yu have homebrew installed and updated, then run
$ brew install libpq
$ brew link --force libpq ail
Comment

PREVIOUS NEXT
Code Example
Shell :: git default remote 
Shell :: install xampp on Linux 
Shell :: apache2 default config file 
Shell :: opencv install 
Shell :: how to get all file names in a folder in shell script 
Shell :: install powershell ubuntu 
Shell :: git checkout branch from remote to local 
Shell :: how to install ssh in windows 10 
Shell :: how to uncommit last commit in git 
Shell :: Error: EACCES: permission denied, mkdtemp linux ubuntu 
Shell :: choco upgrade 
Shell :: copy ssh key directly window 
Shell :: apply git diff 
Shell :: adb push image to gallery 
Shell :: how to download terminator in ubuntu 
Shell :: kubectl without sudo 
Shell :: deploy netlify angular 
Shell :: install next js 
Shell :: install oh my zsh 
Shell :: ubuntu taskbar not showing incons for current applications 
Shell :: install adonis cli 
Shell :: how to change directory if folder name have space 
Shell :: valgrind memory leak 
Shell :: xargs multiple commands "mac" 
Shell :: git push existing repository 
Shell :: docker image get extract dockerfile 
Shell :: linux unzip tar.gz 
Shell :: how to run a command on startup in linux ubuntu or centos 
Shell :: install rancher 
Shell :: git remote add local folder 
ADD CONTENT
Topic
Content
Source link
Name
9+6 =