Created
July 8, 2018 12:40
-
-
Save rezamt/b25c0981c6096f0f89737ddd6a0e6064 to your computer and use it in GitHub Desktop.
How to compile tarsnap on your MAC OS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install OpenSSL | |
brew install openssl | |
# Make sure you add openssl to your shell : | |
ZSH: echo 'export PATH="/usr/local/opt/openssl/bin:$PATH"' >> ~/.zshrc | |
Bash: echo 'export PATH="/usr/local/opt/openssl/bin:$PATH"' >> ~/.bashrc | |
# and then export the following environment variables: | |
export LDFLAGS=-L/usr/local/opt/openssl/lib | |
export CPPFLAGS=-I/usr/local/opt/openssl/include | |
# Note: For pkg-config to find this software you may need to set: | |
PKG_CONFIG_PATH: /usr/local/opt/openssl/lib/pkgconfig | |
# and run source command | |
$ source ~/.zshrc | |
$ source ~/.bashrc | |
# then install autoconf, automake | |
$ brew install autoconf | |
$ brew install automake | |
# Checkout the git code: | |
https://github.com/Tarsnap/tarsnap | |
# change your current directory to: tarsnap | |
autoreconf -i | |
./configure | |
make | |
make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment