You are not logged in.

#1 2017-06-09 04:59:03

doblerone
Member
Registered: 2011-12-08
Posts: 215

[SOLVED] qbitorrent problem dependencies (libtorrent-rasterbar.so.8)

I updated my system and qbittorrent no longer works. If I run it from a terminal I get this:

qbittorrent 
qbittorrent: error while loading shared libraries: libtorrent-rasterbar.so.8: cannot open shared object file: No such file or directory

I thought that it was a bug of qbittorrent and posted in github. The maintainer kindly suggested that everything was correct, and maybe I should submit a report to Arch bug tracker. So I did it but, apparently was neither the case. Thanks to @Scimmia suggestion, it looks like qbittorrent is trying to use an old version of libtorrent-rasterbar, which is no longer in my system:

 lddtree /usr/local/bin/qbittorrent 
/usr/local/bin/qbittorrent (interpreter => /lib64/ld-linux-x86-64.so.2)
    libz.so.1 => /usr/lib/libz.so.1
    [b]libtorrent-rasterbar.so.8 => None[/b]
    libboost_system.so.1.63.0 => None
    libQt5Widgets.so.5 => /usr/lib/libQt5Widgets.so.5
    libQt5Gui.so.5 => /usr/lib/libQt5Gui.so.5
        libGL.so.1 => /usr/lib/libGL.so.1
            libGLX.so.0 => /usr/lib/libGLX.so.0
            libX11.so.6 => /usr/lib/libX11.so.6
                libxcb.so.1 => /usr/lib/libxcb.so.1
                    libXau.so.6 => /usr/lib/libXau.so.6
                    libXdmcp.so.6 => /usr/lib/libXdmcp.so.6
            libXext.so.6 => /usr/lib/libXext.so.6
            libGLdispatch.so.0 => /usr/lib/libGLdispatch.so.0
            libdl.so.2 => /usr/lib/libdl.so.2
        libpng16.so.16 => /usr/lib/libpng16.so.16
        libharfbuzz.so.0 => /usr/lib/libharfbuzz.so.0
            libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0
                libpcre.so.1 => /usr/lib/libpcre.so.1
            libfreetype.so.6 => /usr/lib/libfreetype.so.6
            libharfbuzz.so.0 => !!! circular loop !!!
                libbz2.so.1.0 => /usr/lib/libbz2.so.1.0
            libgraphite2.so.3 => /usr/lib/libgraphite2.so.3
    libQt5DBus.so.5 => /usr/lib/libQt5DBus.so.5
        libdbus-1.so.3 => /usr/lib/libdbus-1.so.3
            libsystemd.so.0 => /usr/lib/libsystemd.so.0
                libresolv.so.2 => /usr/lib/libresolv.so.2
                libcap.so.2 => /usr/lib/libcap.so.2
                librt.so.1 => /usr/lib/librt.so.1
                liblzma.so.5 => /usr/lib/liblzma.so.5
                liblz4.so.1 => /usr/lib/liblz4.so.1
                libgcrypt.so.20 => /usr/lib/libgcrypt.so.20
                libgpg-error.so.0 => /usr/lib/libgpg-error.so.0
    libQt5Xml.so.5 => /usr/lib/libQt5Xml.so.5
    libQt5Network.so.5 => /usr/lib/libQt5Network.so.5
        libssl.so.1.0.0 => /usr/lib/libssl.so.1.0.0
        libcrypto.so.1.0.0 => /usr/lib/libcrypto.so.1.0.0
    libQt5Core.so.5 => /usr/lib/libQt5Core.so.5
        libicui18n.so.59 => /usr/lib/libicui18n.so.59
        libicuuc.so.59 => /usr/lib/libicuuc.so.59
            libicudata.so.59 => /usr/lib/libicudata.so.59
        libpcre2-16.so.0 => /usr/lib/libpcre2-16.so.0
        libdouble-conversion.so.1 => /usr/lib/libdouble-conversion.so.1
    libpthread.so.0 => /usr/lib/libpthread.so.0
    libstdc++.so.6 => /usr/lib/libstdc++.so.6
    libm.so.6 => /usr/lib/libm.so.6
    libgcc_s.so.1 => /usr/lib/libgcc_s.so.1
    libc.so.6 => /usr/lib/libc.so.6
    ld-linux-x86-64.so.2 => /lib64/ld-linux-x86-64.so.2

qBittorrent and libtorrent-rasterbar were installed using pacman as usual and both are up-to-date:

pacman -Qi libtorrent-rasterbar qbittorrent
[sudo] password for david: 
Nombre                    : libtorrent-rasterbar
Versión                   : 1:1.1.3-4
...

Name                    : qbittorrent
Versión                   : 3.3.13-1
...

The library required to run qbittorrent is already installed in my system:

sudo find / -name libtorrent-rasterbar.so.9
/usr/lib/libtorrent-rasterbar.so.9

But not the one that it's linked to qbittorrent

sudo find / -name libtorrent-rasterbar.so.8

How could I link qbittorrent for using the required library?


Thanks in advance.

Last edited by doblerone (2017-06-09 18:43:51)

Offline

#2 2017-06-09 05:16:09

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [SOLVED] qbitorrent problem dependencies (libtorrent-rasterbar.so.8)

You're running qbittorrent from /usr/local instead of the packaged version.

Offline

#3 2017-06-09 05:17:05

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: [SOLVED] qbitorrent problem dependencies (libtorrent-rasterbar.so.8)

lddtree /usr/local/bin/qbittorrent

Why does it matter what the pacman-managed version of qbittorrent is, when you aren't using the pacman-managed version?

Delete the qbittorrent installation that you installed outside of pacman, and /usr/bin/qbittorrent will jump to the first resolved command in `type -a qbittorrent`. This is useful because /usr/bin/qbittorrent on your system is linked against libtorrent-rasterbar.so.9 as it should be...

EDIT: ninjaed...

Last edited by eschwartz (2017-06-09 05:17:31)


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#4 2017-06-09 06:30:28

doblerone
Member
Registered: 2011-12-08
Posts: 215

Re: [SOLVED] qbitorrent problem dependencies (libtorrent-rasterbar.so.8)

Eschwartz wrote:
lddtree /usr/local/bin/qbittorrent

Why does it matter what the pacman-managed version of qbittorrent is, when you aren't using the pacman-managed version?

Delete the qbittorrent installation that you installed outside of pacman, and /usr/bin/qbittorrent will jump to the first resolved command in `type -a qbittorrent`. This is useful because /usr/bin/qbittorrent on your system is linked against libtorrent-rasterbar.so.9 as it should be...

EDIT: ninjaed...

@Eschwartz thanks for the fast reply.
Could it be that the reason for having a local version of qbittorrent is that I compiled it from source in the past? Now I remember that several months ago I did it due to some issues with the RSS reader from qbittorrent.

To achieve what you're suggestion should I do "sudo rm /usr/local/bin/qbittorrent" or is there a better way to do it?

Thanks in advance.

Offline

#5 2017-06-09 07:30:10

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,410

Re: [SOLVED] qbitorrent problem dependencies (libtorrent-rasterbar.so.8)

If the makefile of the source build you did contains an uninstall target use that, if not most of them are likely in the /usr/local dirs somewhere, so yeah remove those

Offline

#6 2017-06-09 17:53:25

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: [SOLVED] qbitorrent problem dependencies (libtorrent-rasterbar.so.8)

doblerone wrote:

@Eschwartz thanks for the fast reply.
Could it be that the reason for having a local version of qbittorrent is that I compiled it from source in the past? Now I remember that several months ago I did it due to some issues with the RSS reader from qbittorrent.

Sounds like you should have used the qbittorrent-git package from the AUR.

To achieve what you're suggestion should I do "sudo rm /usr/local/bin/qbittorrent" or is there a better way to do it?

Thanks in advance.

That will get rid of the bad qbittorrent executable, yes, but it will leave behind a lot of clutter as well -- that isn't the only file qbittorrent installs.

As V1del said, use the `make uninstall` target of the Makefile in the directory you originally compiled qbittorrent in. Failing that, https://aur.archlinux.org/packages/lostfiles can help you track down the detritus.


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#7 2017-06-09 18:43:03

doblerone
Member
Registered: 2011-12-08
Posts: 215

Re: [SOLVED] qbitorrent problem dependencies (libtorrent-rasterbar.so.8)

Thanks guys for all your suggestions and for sharing with knowledge!

Offline

Board footer

Powered by FluxBB