-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Building on macOS
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
Note that (as of January 26, 2018) brew install python3
installs Python 3.6.
But https://github.com/limetext/gopy seems to require Python 3.5.
This StackOverflow question shows a way to install Python 3.5: https://apple.stackexchange.com/questions/237430/how-to-install-specific-version-of-python-on-os-x Via this command: brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/ec545d45d4512ace3570782283df4ecda6bb0044/Formula/python3.rb
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