Install Homebrew on M1, M1 Pro, M1 Max Macs
A useful tutorial showing how to install Home-brew on Apple Silicon Macs.
Homebrew on Apple Silicon
Homebrew has been updated
Apple Silicon is now officially supported for installations in /opt/homebrew. formulae.brew.sh formula pages indicate for which platforms bottles (binary packages) are provided and therefore whether they are supported by Homebrew. Homebrew doesn’t (yet) provide bottles for all packages on Apple Silicon that we do on Intel x8664 but we welcome your help in doing so. Rosetta 2 on Apple Silicon still provides support for Intel x8664 in /usr/local.
Installing Cheminformtics packages on a Mac
A while back I wrote a very popular page describing how to install a wide variety of chemiformatics packages on a Mac, since there have been some changes with Homebrew which have meant that a few of the scientific applications are no longer available so I've decided to rewrite the page on installing the missing packages using Anaconda.
I've also included a list of quick demos so you can everything is working as expected.
Packages include:
- OpenBabel
- RDKit
- brew install cdk
- chemspot
- indigo
- inchi
- opsin
- osra
- pymol
- oddt
In addition to gfortran and a selection of developers tools.
End to End Swift
This looks interesting, Perfect
Perfect is an application server for Linux or OS X which provides a framework for developing web and other REST services in the Swift programming language. Its primary focus is on facilitating mobile apps which require backend server software, enabling you to use one language for both front and back ends.
Perfect relies on Home Brew for installing dependencies on OS X, once done you are up and running and can follow the Perfect tutorials
Pymol under El Capitan
When El Capitan first came out I upgraded a machine with an existing installation of a variety of cheminformatics tools installed using Homebrew and PIP as described here. Under this situation Pymol worked without problem. However I have had a few readers email me saying they are having problems so I took a new machine running El Capitan and tried to instal the same cheminformatics tools including Pymol using Homebrew and PIP. All worked fine except Pymol which opened but crashed with the following error.
Username:~ prompt$ pymol
PyMOL(TM) Molecular Graphics System, Version 1.7.6.0.
Copyright (c) Schrodinger, LLC.
All Rights Reserved.
Created by Warren L. DeLano, Ph.D.
PyMOL is user-supported open-source software. Although some versions
are freely available, PyMOL is not in the public domain.
If PyMOL is helpful in your work or study, then please volunteer
support for our ongoing efforts to create open and affordable scientific
software by purchasing a PyMOL Maintenance and/or Support subscription.
More information can be found at "http://www.pymol.org".
Enter "help" for a list of commands.
Enter "help <command-name>" for information on a specific command.
Hit ESC anytime to toggle between text and graphics.
Detected OpenGL version 2.0 or greater. Shaders available.
Detected GLSL version 1.20.
OpenGL graphics engine:
GL_VENDOR: NVIDIA Corporation
GL_RENDERER: NVIDIA GeForce 8600M GT OpenGL Engine
GL_VERSION: 2.1 NVIDIA-10.0.40 310.90.10.05b12
Detected 2 CPU cores. Enabled multithreaded rendering.
libpng warning: Application built with libpng-1.6.19 but running with 1.5.23
/usr/local/bin/pymol: line 4: 3628 Segmentation fault: 11 "/usr/local/opt/python/bin/python2.7" "/usr/local/Cellar/pymol/1.7.6.0/libexec/lib/python2.7/site-packages/pymol/__init__.py" "$@“
The helpful on the Pymol user list pointed me to this message on the Homebrew-Science issues
First uninstall pymol and libpng
brew uninstall pymol
brew uninstall libpng
then install pymol first.
brew install pymol
brew install libpng
Now when you type pymol in a Terminal window you should see.
PYMOL under Yosemite
Reading through the discussion on Scientific Applications under Yosemite it seems some people are having problems with PYMOL, I thought I'd mention that installation of PYMOL using Homebrew is included on the page describing how to set up a Mac for Cheminformatics. The page also describes how to install a wide range of other useful tools.
Lilly MedChem Rules
In late 2012 Robert Bruns and Ian Watson published a paper entitled Rules for Identifying Potentially Reactive or Promiscuous Compounds. These 275 rules encapsulated 18 years of Drug Discovery experience and are used to identify potentially troublesome molecules.
The code to implement these rules was kindly made available by Ian Watson on GitHub unfortunately my initial attempts to compile this failed, but Matt was able to provide a patch to compile under Mac OSX (Mavericks) using Clang. Whilst this would be sufficient he then went the extra step and made it available via HomeBrew.
You can read more here.
Cheminformatics on a Mac
I’ve recently needed to set up a new Mac and I realised that the current installation process for all the applications, tools, chemistry toolboxes, and associated dependencies was unmanageable. I have a mixture of apps that I have compiled myself, others that I have simply used the precompiled binaries, others from Macports etc.
I decided to write a detailed account of the process of installing a number of toolkits and packages using Homebrew and PIP.
You can read the full account here in the hints and tutorials.
I’d be delighted to hear of any comments or suggestions for addition.