From 2f7ad34e5bea099555295d7c363fe68102a30e3d Mon Sep 17 00:00:00 2001 From: V33m <48420633+V33m@users.noreply.github.com> Date: Wed, 11 Sep 2019 11:45:37 +0200 Subject: [PATCH] [arm64] Fixes "WARNING: Unable to start rtorrent" If the package libxmlrpc-core-c3-dev is not installed on an arm64 system, rTorrent won't be able to run and you'll get the following error - WARNING: Unable to start rtorrent Fixes the issue: https://github.com/arakasi72/rtinst/issues/246 --- scripts/rtinst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/rtinst b/scripts/rtinst index 6d2aabb2..93cd5f2d 100755 --- a/scripts/rtinst +++ b/scripts/rtinst @@ -556,6 +556,11 @@ for package_name in $package_list fi done +# Installs a package needed to prevent arm64 architectures from "WARNING: Unable to start rtorrent" +if [ "$(uname --m)" == "aarch64" ] || [ "$(dpkg --print-architecture)" == "arm64" ] ; then + sudo apt-get install libxmlrpc-core-c3-dev +fi + test -z "$install_list" || apt-get -qq install $install_list >> $logfile 2>&1 if ! [ $? = 0 ]; then echo "Problem installing packages. Check log and rerun once it is resolved" && exit