How to install Postgresql Client using Homebrew

Psql is a command-line interface for interacting with PostgreSQL, a powerful and open source relational database system. Brew is a package manager for macOS that makes it easy to install and manage software. Here are the steps to install psql with brew: First, install the brew package manager if you don’t have it already. You can do this by running the following command in your terminal: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" Second, update brew by running the following commands: brew doctor brew update Third, install libpq by running the command: brew install libpq Libpq is a library that contains psql and other PostgreSQL client utilities. ...

26 July 2023 · 1 min · 176 words · Me

Fix casks with `depends_on` that reference pre-Mavericks

If you get an error of the type Error: Cask 'hex-fiend-beta' definition is invalid: invalid 'depends_on macos' value: ":lion", where hex-fiend-beta can be any cask name, and :lion any macOS release name, run the following command: /usr/bin/find "$(brew --prefix)/Caskroom/"*'/.metadata' -type f -name '*.rb' -print0 | /usr/bin/xargs -0 /usr/bin/perl -i -pe 's/depends_on macos: \[.*?\]//gsm;s/depends_on macos: .*//g' This will remove all depends_on macos references of installed casks.

18 May 2020 · Shafiq Alibhai

[solved] xcrun: error: active developer path ("/Applications/Xcode.app/Contents/Developer") does not exist

Error: xcrun: error: active developer path ("/Applications/Xcode.app/Contents/Developer") does not exist Use sudo xcode-select --switch path/to/Xcode.app to specify the Xcode that you wish to use for command line developer tools, or use xcode-select --install to install the standalone command line developer tools. See man xcode-select for more details. xcrun: error: active developer path ("/Applications/Xcode.app/Contents/Developer") does not exist Use sudo xcode-select --switch path/to/Xcode.app to specify the Xcode that you wish to use for command line developer tools, or use xcode-select --install to install the standalone command line developer tools. See man xcode-select for more details. ...

6 September 2018 · Shafiq Alibhai

A Simple Guide to Installing SSHPass on Ubuntu and macOS

Introduction SSHPass is a nifty little tool that lets you automate SSH login by bypassing the usual password prompt. While it’s super convenient for scripting, bear in mind that it’s not ideal for a multi-user setup due to security concerns. However, if you’re using it on your personal development machine, it’s pretty harmless. How to Install SSHPass on Ubuntu Installing SSHPass on Ubuntu is as straightforward as it gets. All you need to do is open up your terminal and run the following command: ...

2 September 2018 · Shafiq Alibhai