- Install GNU Make if
gmakeis not available:brew install make
- Clone the repository:
git clone https://github.com/codedellemc/rexray
- Build it:
If the build was successful you should see something like this:
cd rexray gmakeThe rexray binary is 52MB and located at: ./rexray
- Copy it somewhere useful:
mkdir -p ~/bin cp ./rexray ~/bin
- Be sure to include
~/binin$PATH:cat <<EOT >> ~/.bashrc # Path: ~/bin" >> ~/.bashrc if [ -s "$HOME/bin" ]; then export PATH="$HOME/bin:$PATH" fi EOT
- Run your
.bashrcagain:source ~/.bashrc
- Verify:
cd ~ rexray
And you're done!
This is good tutorial, except missing the command "export GOOS=darwin", before running "gmake". By default, it builds the binary for Linux system. The env variables GOOS and GOARCH will determine which OS and architecture the binary will be built for.