From 49de208cca93d92bc804c5eafde145b561c79a02 Mon Sep 17 00:00:00 2001 From: kannibalox Date: Tue, 26 Nov 2024 10:12:50 -0500 Subject: [PATCH] Update instructions for building from source --- Installing.md | 44 +++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 41 insertions(+), 3 deletions(-) diff --git a/Installing.md b/Installing.md index 3f2e946..70975d2 100644 --- a/Installing.md +++ b/Installing.md @@ -1,7 +1,8 @@ **Contents** * [Installing](#installing) - * [Building](#building) + * [Building Building from stable release tarballs](#building-from-stable-release-tarballs) + * [Building from source](#building-from-source) * [Non-blocking hostname lookup in curl](#non-blocking-hostname-lookup-in-curl) * [Compilation Help](#compilation-help) * [libtorrent.so.5: cannot open shared object file: No such file or directory](#libtorrent-so-5-cannot-open-shared-object-file-no-such-file-or-directory) @@ -15,11 +16,48 @@ # Installing +Dependencies: +* pkg-config +* libcurl (c-ares support for asynchronous DNS lookups is recommend) +* zlib +* xmlrpc-c (optional, for XMLRPC support in rtorrent, most guides will assume XMLRPC is desired) +* cppunit (optional, only used for testing with `make check`) -## Building +## Building from stable release tarballs -`./configure; make; make install` +Note that if you already have a `libtorrent` package installed from your package manager, it may take precedence when compiling rtorrent. Simply uninstalling the package prior to building is the easiest way to ensure a clean build environment. +``` +wget https://github.com/rakshasa/rtorrent-archive/raw/master/libtorrent-0.13.8.tar.gz +# Or with curl: curl -sSLO https://github.com/rakshasa/rtorrent-archive/raw/master/libtorrent-0.13.8.tar.gz +tar xzvf libtorrent-0.13.8.tar.gz +cd libtorrent-0.13.8/ +./configure && make && make install + +cd ../ + +wget https://github.com/rakshasa/rtorrent-archive/raw/master/rtorrent-0.9.8.tar.gz +# Or with curl: curl -sSLO https://github.com/rakshasa/rtorrent-archive/raw/master/rtorrent-0.9.8.tar.gz +tar xzvf rtorrent-0.9.8.tar.gz +cd rtorrent-0.9.8/ +./configure --with-xmlrpc-c && make && make install +``` + +## Building from source + +In addition to the above dependencies, the [autoconf](https://www.gnu.org/software/autoconf/) tools are required to build from source. Nearly all distributions should have a package available. + +``` +git clone https://github.com/rakshasa/libtorrent.git +cd libtorrent/ +autoreconf -fi && ./configure && make && make install + +cd ../ + +git clone https://github.com/rakshasa/rtorrent.git +cd rtorrent/ +autoreconf -fi && ./configure --with-xmlrpc-c && make && make install +``` ## Non-blocking hostname lookup in curl