Createdb in postgresql not found

postgresql
createdb
#1

following instructions to create a new database: createdb I get the following error.

anyone know what I’m doing wrong?

#2

go into your zshrc file nano /.zshrc and paste in these commands

  export LDFLAGS="-L/usr/local/opt/postgresql@9.6/lib"
  export CPPFLAGS="-I/usr/local/opt/postgresql@9.6/include"
  export PKG_CONFIG_PATH="/usr/local/opt/postgresql@9.6/lib/pkgconfig

You’ll also need to use the a pathname before them.

control + x
y
escape