Compile on mac - secure411dotorg/mal4s GitHub Wiki


Prepare your Mac

Have your Mac OS at Mavericks or beyond. (For older than Mavericks, see this.)

Be sure xcode is installed and update it.

Start Xcode and agree to all the agreements.

Install the xcode command line tools. ( Much easier than searching for this option in xcode GUI, just initiate the install from Terminal like this: xcode-select --install ) If you get an error try the Separate Download method explained here.

Get brew:

ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"

After brew finishes installing issue brew doctor and brew update.

brew update

brew doctor

Verify that you can successfully build sdl2:

brew -v install sdl2

If successful, continue, otherwise go here and get sdl2 installed from a bottle first.

Install Mal4s:

brew install -v mal4s

####To get the latest development version:

Instead of the above brew install command substitute this one:

brew install -v --fresh mal4s --HEAD

To remove and reinstall mal4s:

brew remove --force mal4s;brew install -v --fresh mal4s --HEAD

NEXT - Quick Start ( minimum configuration, importing data, cheat sheet )


Having trouble compiling on Mac?

Early beta users click here for how to remove early beta versions


Installing Homebrew on Mac

1.Before installing Homebrew do the following:

  • Make sure that all upgrades are up to date
  • Install Xcode go to developer.apple.com/downloads
  • Install Homebrew to /usr/local only is recommended
  1. In terminal paste /bin/bash -c β€œ$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)”

Installing Zetalytics API on Mac

  1. Open Terminal

  2. If you have Homebrew already installed go to step 3, if not Install Homebrew- (you need Homebrew installed in order to download Python 3 and pip) Paste into Terminal /bin/bash -c β€œ$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)”

  3. Install Python 3- paste brew install python into Terminal (the Zetalytics API won’t install unless you have Python 3)

  4. Install pip- paste curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py into Terminal followed by the command python get-pip.py

  5. Check to see if you have the right pip version installed, type which pip into Terminal, it should say /Library/Frameworks/Python.framework/Versions/3.8/bin/pip

To Upgrade pip Paste pip install -U pip

  1. Install Zetalytics API- In Terminal paste pip3 install zetalytics-api

Installing Mal4s on a Mac

Make sure to install Homebrew before installing Mal4s

  1. In Terminal paste brew update

  2. In Terminal paste brew doctor

  3. Install sdl2 – In Terminal paste brew -v install sdl2

  4. Install Mal4s - In terminal paste

    brew tap Zlightning/mal4s
    
    
    xxxxxxxxxxx