Title: Microsoft Word - Install OpenBUGS and WinBUGS on Mac.docx Created Date: 9/4/2014 1:29:08 AM. Install PHP 7.3 + xdebug on MacOS Catalina (with homebrew) Homebrew have relocated “php” formulas and renamed “php71” into “php@7.1” in 2018 making it quite difficult to and also. ShawnstationdeMacBook-Pro: shawnstation$ brew -version Homebrew 1.6.9 Homebrew/homebrew-core (git revision fab7d; last commit 2018-07-07) catalina homebrew Share. $ brew install git. Apple ships a binary package of Git with Xcode. Binary installer. Tim Harper provides an installer for Git. The latest version is 2.32.0, which was released 17 days ago, on 2021-07-21. Building from Source. If you prefer to build from source, you can find tarballs on kernel.org. The latest version is 2.32.0. Brew install cocoapods. Bottle (binary package) installation support provided for macOS releases: Intel: big sur:: catalina.
Setting Up A Database
We're going to install sqlite3 from homebrew because we can't use the built-in version with macOS Sierra without running into some troubles.
Rails ships with sqlite3 as the default database. Chances are you won't want to use it because it's stored as a simple file on disk. You'll probably want something more robust like MySQL or PostgreSQL.
There is a lot of documentation on both, so you can just pick one that seems like you'll be more comfortable with.
If you're new to Ruby on Rails or databases in general, I strongly recommend setting up PostgreSQL.
If you're coming from PHP, you may already be familiar with MySQL.
MySQL
You can install MySQL server and client from Homebrew:
Once this command is finished, it gives you a couple commands to run. Follow the instructions and run them:
By default the mysql user is root
with no password.
When you're finished, you can skip to the Final Steps.
PostgreSQL
You can install PostgreSQL server and client from Homebrew:
Once this command is finished, it gives you a couple commands to run. Follow the instructions and run them:
By default the postgresql user is your current OS X username with no password. For example, my OS X user is named chris
so I can login to postgresql with that username.
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'
Install Homebrew Mac Os Catalina
Press the Escape (esc) key to switch back to command mode.
Brew Install Openssl Mac Catalina
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:
Install Brew On Mac Catalina
cgr drush/drush
Now if you type drush
and press Enter, you’ll see that Drush is installed, and working on your machine!