Forked from doctorpangloss/libtorrent and rtorrent on mac.sh
Last active
January 14, 2023 20:39
-
-
Save pyed/197f6a9348212e92c211ad3d3cff710a to your computer and use it in GitHub Desktop.
Compiling rtorrent on a mac
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
#!/bin/bash | |
# Installs the XCode command line tools if you don't have them | |
xcode-select --install | |
# Installs brew if you don't have it | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
# Makes your account the owner of /usr/local, which is preferred on single user Macs | |
sudo chown -R `whoami` /usr/local | |
# Installs all the dependencies for building libtorrent and rtorrent | |
brew install automake libtool boost curl lzlib libsigc++ openssl pkg-config xmlrpc-c | |
# Uninstall libtorrent-rasterbar if you already have it | |
brew uninstall libtorrent-rasterbar | |
# Get the repos | |
git clone https://github.com/rakshasa/rtorrent.git | |
git clone https://github.com/rakshasa/libtorrent.git | |
cd libtorrent | |
./autogen.sh | |
# Adds the openssl includes to your build command | |
export PKG_CONFIG_PATH=/usr/local/opt/openssl/lib/pkgconfig | |
CC=clang CXX=clang++ CXXFLAGS="-Wno-deprecated-declarations -O3 -std=c++11 -stdlib=libc++ -I/usr/local/opt/openssl/include" LDFLAGS="-L/usr/local/opt/openssl/lib" ./configure | |
make | |
# Installs libtorrent to /usr/local/lib | |
make install | |
cd ../rtorrent | |
./autogen.sh | |
CC=clang CXX=clang++ CXXFLAGS="-Wno-deprecated-declarations -O3 -std=c++11 -stdlib=libc++ -I/usr/local/opt/openssl/include" LDFLAGS="-L/usr/local/opt/openssl/lib" ./configure --with-xmlrpc-c | |
make | |
# Installs rtorrent to /usr/local/bin | |
make install | |
# Run rtorrent | |
rtorrent |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for your guide, but when I try to "make" rtorrent I get the following error:
Any clues?