-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Building on macOS
Michael P edited this page Sep 25, 2016
·
5 revisions
There are a couple of dependencies required to build Lime on macOS.
Homebrew (often referred as just brew
to resemble its command) is a package manager for macOS. This page details how you can install Homebrew. Make sure to run brew doctor
before installing anything.
Once Homebrew is installed, install the following dependencies:
$ brew install pkg-config go mercurial oniguruma python3 qt5
Before building you will need to add the python3
and qt5
paths to your PKG_CONFIG_PATH
:
$ export PKG_CONFIG_PATH=$(brew --prefix python3)/Frameworks/Python.framework/Versions/3.4/lib/pkgconfig:$(brew --prefix qt5)/lib/pkgconfig:$(brew --prefix oniguruma)/lib/pkgconfig
All external dependencies are now installed. Continue on to the instructions on the Building page.
If you have problems installing python3
try downloading the .dmg
instead:
For macOS 10.6 or later:
$ curl -O https://www.python.org/ftp/python/3.4.1/python-3.4.1-macosx10.6.dmg
For macOS 10.5:
$ curl -O https://www.python.org/ftp/python/3.4.1/python-3.4.1-macosx10.5.dmg
If you get the error:
package github.com/limetext/lime-backend/lib/...: cannot download, $GOPATH not set. For more details see: go help gopath
Set a GoPath
$ mkdir ~/.gopath; export GOPATH=~/.gopath