ActiveState ActiveGo 1.8
...

Installing ActiveGo on macOS

You can install the macOS package using the standard user interface, or by using the command line.

ActiveGo is distributed on macOS as an installer package (.pkg bundle) that you run to install ActiveGo.

Before you begin

Before you start the installation, you need to ensure that your system meets the prerequisites, and that you do not have other Go distributions that are going to conflict with ActiveGo.

Prerequisites

  • macOS 10.9 "Mavericks" or later
  • 1 GB hard disk space; Intel 64-bit processor

Existing Go installations

ActiveGo can usually co-exist with other Go installations, but only one Go can be first on your PATH environment variable at a time. This determines which Go installation is run when you type go in Terminal. The ActiveGo installation places the path to ActiveGo at the start of your path, making it the default Go installation on your system.

By default, the installer will install the ActiveGo distribution in /usr/local/ActiveGo- and set your PATH and GOPATH environment variables in your $HOME/.profile file.

Installing with Package

  1. Download the ActiveGo package installer (ActiveGo-<version>-macosx.pkg).
  2. Double-click the ActiveGo installer package to start the installation.
  3. Follow the installer prompts. The installer will ask for administrative authentication if the current user does not have administrative privileges.

Installing with the Package command line tool

macOS includes a command-line tool, installer, for installing macOS packages non-interactively from the command line. This can be useful for remote administration.

sudo installer -pkg ~/Downloads/ActiveGo-.pkg -target /

Note: It is sometimes useful to create an install log file. For example, if you are running into issues and need to send the log to ActiveState technical support). To create a log file during installation, use the -verbose and -dumplog flags:

sudo installer -pkg ~/Downloads/ActiveGo-.pkg \
-target / -verbose -dumplog > install.log 2>&1

Verifying your installation

To verify that ActiveGo is installed and configured, enter: godoc -play -http=:6060 to test your ActiveGo installation. Once the godoc server starts you can access a local instance of the ActiveGo help at http://localhost:6060.

After installing and configuring ActiveGo, read the Getting Started pages in this guide for a general introduction to ActiveGo on your platform and pointers to documentation that will be most useful to you.

ActiveGo supports integration with TensorFlow, an open-source software library for Machine Intelligence, with the TensorFlow for Go package. For information on configuring ActiveGo to work with TensorFlow, see Configuring TensorFlow for ActiveGo.

Uninstalling the macOS Package

If you need to uninstall ActiveGo, you can do so by running the following command in Terminal:


/usr/local/ActiveGo-/misc/activego-uninstall