Posts

Showing posts with the label homebrew

Install the MAMP (Mac, Apache, MySQL, PHP) stack

Image
There are two ways that you could install ( freely ) the whole MAMP stack: installing the MAMP (version 4.5) software bundle is the easiest way since it is a one-click-solution for setting up a personal webserver install each components (Apache, MySQL, and PHP) separately. This second method consists in installing Apache and PHP with Homebrew, and MySQL with the  package Installer . It is the hardest method but it enables you more control over the installation process, e.g you can install specific versions of each components, or install extra PHP extensions. NOTE:  MAMP 4.5, Apache 2.4.33, MySQL 8.0.11, PHP 7.2.7, and phpMyAdmin 4.8.2 are installed in the following tutorial Contents 1. Method 1: install the MAMP software bundle 2. Method 2: install each components (Apache, MySQL, and PHP) separately      2.1 Apache+PHP           2.1.1 Install Apache+PHP           2.1.2  Change A...

Installing OpenCV 3 on macOS with Homebrew

I am following this pyimagesearch tutorial to help me install OpenCV 3 on macOS Sierra 10.12.6 with Homebrew. I am using Python 2.7.15 & 3.6.4 installed with conda , instead of Python installed with Homebrew (like in the tutorial).  Contents    1. Major blog updates    2. Installation steps: Homebrew install command    3. cv2 import error    4.  Skipped brew tap    5.  --HEAD flag error    6.  Flags ignored: --with-contrib and --with-python3    7.  OpenCV installation test code    8.  SIFT and SURF test code Major blog updates May 29, 2018: added webcam test code + references, explained more the "sym-link" part, and added update of ~/.bash_profile Installation steps: Homebrew install command These were the prerequisites I had on my computer before installing OpenCV 3 via Homebrew: Operating system: macOS Sierra 10.12.6 Homebrew Two conda environm...