Install command: brew install jq. Lightweight and flexible command-line JSON processor. /api/formula/jq.json (JSON API) /api/bottle/jq.json (Bottle JSON API) Formula code on GitHub. Bottle (binary package) installation support provided for macOS releases. Homebrew is a package management software that simplify the installation of the softwares made for mac but it also work on linux. If you are not sure if brew is install on your mac, I recommend to checkout this stack-overflow threads.In this post, I will be focusing on how to install redis and run it at background.
I’m trying to install the whole thing on Mac OS Catalina (10.15.3) but with Homebrew; not with Macport.
- Step 4 — Installing, Upgrading, and Removing Packages. Now that Homebrew is installed, use it to download a package. The tree command lets you see a graphical directory tree and is available via Homebrew. Install tree with the brew install command: brew install tree.
- Make sure to check out Part One, How To Install Apache on macOS 10.15 Catalina Using Homebrew, which is a pre-requisite for this piece. In the past, I used to rely on the version of Apache and PHP that came pre-loaded with the OS on my MacBook Pro. I would then install the PHP extensions I needed (Xdebug, Redis, etc.) from Homebrew.
So far so good, I managed to compile and run everything:
- Python 3.8.1 built from source, with a binding to the latest TCL/TK (8.6.10)
- compilation of the geoviewer, no errors, with Apple clang: version 11.0.0 (clang-1100.0.33.17)
Install Homebrew On Mac Catalina
However, when I run flair (which starts without errors, except for missing fonts) then click “geometry”, I get a segmentation fault.
Has anyone tried the installation on Mac with Homebrew and could share how everything was compiled? If not I’ll try to provide more information for debugging.
Installing Drush on MacOSX with Composer
In order to install Drush, you should first install Composer. Composer is often required for Drupal 8 and once Composer is installed, installing Drush is easy.
1. Open the Terminal app on your Mac.
2. Install Homebrew via the instructions here: https://brew.sh/
3. Install Composer globally on your Mac with this command:
brew install composer
4. If your computer doesn’t have a “/usr/local/bin” directory, create that first with this command:
sudo mkdir -p /usr/local/bin
…that creates the directory; you should be prompted to enter your computer’s password.
Now, when you type composer --version
and press Enter, we’ll see that you have Composer installed!
5. Install Drush via Composer:
Note!: Please do not install Drush using composer global require
. See Pantheon’s article, Fixing the Composer Global command.
Instead, first install the Composer global require
command:
composer global require consolidation/cgr
6. Add the vendor/bin
from the Composer home directory to your $PATH.
(Thereafter, you may substitute cgr
for any command line tool whose installation instructions recommends the use of Composer global require. Example: cgr drush/drush
)
If you get a popup to install the Xcode Developer tools, go ahead and install Xcode.
7. Update the system $PATH:
vim ~/.bash_profile
to edit the file press the i
key to enter Insert mode
…next, copy and paste this into that file:
export PATH='$HOME/.composer/vendor/bin:$PATH'
PATH='$(composer config -g home)/vendor/bin:$PATH'
Press the Escape (esc) key to switch back to command mode.
Type :wq
and press Enter to save and quit the file.
8. Quit the Terminal app (or, run the “source” command to load the .bash_profile file without having to restart the Terminal.)
To run the source command:
source ~/.bash_profile
9. Now you will actually install Drush:
Install latest stable Drush:
Cannot Install Homebrew On Catalina
cgr drush/drush
Now if you type drush
and press Enter, you’ll see that Drush is installed, and working on your machine!