# MacOS - miner tutorial

## Install from Source

{% code title="#install\_guide" %}

```bash
# Make sure you have homebrew installed (if you do, skip this step):
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

# Make sure to install all required dependencies
brew install gmp make cmake openssl

# Get the latest source code (or run a git pull to update)
git clone https://github.com/OrdinaryDude/xel_miner

# Make sure to link the OpenSSL include directory to the right place
ln -s /usr/local/opt/openssl/include/openssl/ /usr/local/include/openssl

# Compile the miner
cd xel_miner
OPENSSL_ROOT_DIR=/usr/local/opt/openssl cmake .
make
```

{% endcode %}

You can test if it’s functioning properly by running:

{% code title="#run" %}

```bash
xel_miner --test-vm examples/SHA256_BTC.epl
```

{% endcode %}

## Video tutorial

{% embed url="<https://vimeo.com/265864791>" %}
xel\_miner on MacOS
{% endembed %}

{% content-ref url="linux" %}
[linux](https://xel.gitbook.io/wiki/tutorials/xel_miner/linux)
{% endcontent-ref %}

>
