Installing Homebrew on Mac OS X prior to El Capitan (that is Yosemite, Mavericks and others) used to be a breeze. But with a new change in OS X El Capitan called SIP - installing Homebrew has become a bit complicated.
To run PyMOL with a native PyQt library (linked against macOS OpenGL framework, not against XQuartz), it needs to be built with the -osx-frameworks option: python setup.py -osx-frameworks install Install APBS with Fink. If you perform a fresh install of Xcode, you will also need to add the commandline tools by running xcode-select-install on the terminal. While OS X comes with a large number of Unix utilities, those familiar with Linux systems will notice one key component missing: a package manager.
You need not worry, I have got you covered.
There are two parts to this tutorial. If you want to uninstall or delete Homebrew first and then re-install it on El Capitan then follow Part 2 of this tutorial below. However, if you are doing a fresh installation of El Capitan then follow the steps outlined in Part 1 of this tutorial.
Happy Brewing!
Part 1: How to install fresh copy of Homebrew in OS X El Capitan
Step 1 - Install XCode by downloading it from here. This is needed for installing the XCode command line tools which in turn is needed by Homebrew. You might skip this step if you already have XCode installed.
Quick Note - If you already have XCode installed then go to STep 2. Also, You can skip this step and jump to Step 3 instead and see if the Homebrew installer complains about XCode command line tools. If it does, then come back to this step and continue.
Step 2 - Install Command Line tools by running the following command in terminal:
Macos How To Run Brew Installed Apple Watch
Step 3 - Now, you need to get a fresh copy of Homebrew and then run the install script. You can perform both these tasks using this one command in the terminal app:
If it complains about permission issues, then you have to fix it before you can continue. This is an additional thing that you need to do in Mac OS X El Capitan because Apple introduced this new feature called System Integrity Protector. Here is a guide to how you can fix this permission issue with Homebrew on OS X El Capitan.
After you have fixed the permission issue, re-run the command above in the terminal to begin the Homebrew installation process.
Step 4 - Run the Brew Doctor utility to check for issues or warnings in the terminal
Html5 mac app store settings. brew doctor
If it shows errors, then you need to fix them before you can continue. You might, however, skip any warnings that the doctor tool shows.
All the apps and libraries that you install using Homebrew are located in this folder: /usr/local/Cellar
After Homebrew is installed, you can use some of the following commands to perform different tasks with it:
- You can search for an application using: brew search
- You can install a new application using: brew install <application-name>
- In order to list all apps installed by Homebrew, you can use: brew list
- For removing an app installed via Homebrew: brew remove <application-name>
- Homebrew can be updated using: brew update
- man brew will show other switches and command options for Homebrew.
Macos Brew Command Not Found
Part 2: How to uninstall and re-install Homebrew in OS X El Capitan
Step 1 - First you will have to delete the Cellar folder of Homebrew that is usually available in the /usr/local folder. To do this, you need to run the following command in the terminal:
rm -rf /usr/local/Cellar /usr/local/.git && brew cleanup
Please note - If the above command throws a permissions error then you need to read this article to fix the Homebrew permissions in OS X El Capitan.
Step 2 - Install Xcode & XCode command line tools. This is an optional step but for many users, installing the tools mentioned in this step is mandatory. So in order to check, if you have to really perform this step, what you can do is quickly skip to Step 3 and run the command mentioned on that step - if you see success then you can safely skip this step, else continue here:
First download and install Xcode from this link - https://itunes.apple.com/au/app/xcode/id497799835?mt=12
Macos Brew Install Mysql Client
Next, install Xcode command line tools by running the following command in your terminal:
If it complains about permissions, then use sudo and run the same command again.
Step 3 - Now that you have a cleaned-up Brew data folder, you need to fetch a fresh copy of Homebrew and start the installation process by running this command in the terminal:
You might be prompted for your root password and when that happens, enter the password and continue. You can find some sample output towards the end of this post.
Step 4 - After the installation completes, you should run the doctor utility on brew to see if there were any issues with the Homebrew installation. This can be done by running the following command:
brew doctor
If it returns any error, try fixing them. If you see just warnings then you could ignore them.
At this point you have succesfully installed Homebrew on El Capitan and you can use the commands mentioned above to perform various operations.
Some sample Outputs:
This is a step-by-step guide to installing and running Kubernetes on your Mac so that you can develop applications locally.
You will be guided through running and accessing a Kubernetes cluster on your local machine using the following tools:
- Homebrew
- Docker for Mac
- Minikube
- virtualbox
- kubectl
Macos How To Run Brew Installed Apple
Installation Guide
The only pre-requisite for this guide is that you have Homebrew installed. Spectacle app mac fund. Homebrew is a package manager for the Mac. You’ll also need Homebrew Cask, which you can install after Homebrew by running
brew tap caskroom/cask
in your Terminal.- Install Docker for Mac. Docker is used to create, manage, and run our containers. It lets us construct containers that will run in Kubernetes Pods.
- Install VirtualBox for Mac using Homebrew. Run
brew cask install virtualbox
in your Terminal. VirtualBox lets you run virtual machines on your Mac (like running Windows inside macOS, except for a Kubernetes cluster.)Skip to step three if everything has worked to this point.In my case, I already had the non-Homebrew VirtualBox app installed which caused issues when trying to start minikube.If you already have VirtualBox installed, start the installation as before withbrew cask install virtualbox
. You will get a warning that confirms this sayingWarning: Cask 'virtualbox' is already installed.
. Once this is confirmed, you can reinstall VirtualBox with Homebrew by runningbrew cask reinstall virtualbox
.If you happen to have VirtualBox already running when you do this, you could see an error sayingFailed to unload org.virtualbox.kext.VBoxDrv - (libkern/kext) kext is in use or retained (cannot unload).
Loom app windows.This is because the kernel extensions that VirtualBox uses were in use when the uninstall occurred. If you scroll up in the output of that command, beneathWarning! Found the following active VirtualBox processes:
you’ll see a list of the processes that need to be killed.Kill each of these in turn by runningkill first_column_number
(first_column_number
is the process identifier for that process).Now re-runbrew cask reinstall virtualbox
and it should succeed. https://newincome211.weebly.com/blog/remove-unwanted-apps-macos. - Install
kubectl
for Mac. This is the command-line interface that lets you interact with Kuberentes. Runbrew install kubectl
in your Terminal. - Install Minikube via the Installation > OSX instructions from the latest release. At the time of writing, this meant running the following command in Terminal…Minikube will run a Kubernetes cluster with a single node.
- Everything should work! Start your Minikube cluster with
minikube start
. Then runkubectl api-versions
. If you see a list of versions, everything’s working!minikube start
might take a few minutes.
At this point, I got an error saying
Error starting host: Error getting state for host: machine does not exist.
because I had previously tried to run Minikube. You can fix this by running open ~/.minikube/
to open Minikube’s data files, and then deleting and deleting the machines
directory. Then run minikube start
again.Macos Brew Update
Come Together
You’ve installed all these tools and everything looks like it’s working. A quick explanation of how the components relate is needed.
Macos Install Brew
- VirtualBox is a generic tool for running virtual machines. You can use it to run Ubuntu, Windows, etc. inside your macOS operating system host.
- Minikube is a Kubernetes-specific package that runs a Kubernetes cluster on your machine. That cluster has a single node and has some unique features that make it more suitable for local development. Minikube tells VirtualBox to run. Minikube can use other virtualization tools—not just VirtualBox—however these require extra configuration.
kubectl
is the command line application that lets you interact with your Minikube Kubernetes cluster. It sends request to the Kubernetes API server running on the cluser to manage your Kubernetes environment.kubectl
is like any other application that runs on your Mac—it just makes HTTP requests to the Kubernetes API on the cluster.