Update instructions for building from source

kannibalox
2024-11-26 10:12:50 -05:00
parent 4971c62bb6
commit 49de208cca
+41 -3
@@ -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