Problems installing on Centos

Linux specific questions, problems.
Post Reply
pointer2null

Problems installing on Centos

Post by pointer2null »

I've recently moved from Fedora to Centos6 and woudl love to get qbittorrent back. However, it's not available in the repos so I'm trying to build from scratch.

So far, the libtorrent-rasterbar-0.16.15 will not build as it has a bug and won't recognise the libboost so have installed libtorrent-rasterbar-0.16.12
[root@localhost qbittorrent-3.1.9]# find / -name libtorrent-rasterbar.so.7
/usr/lib/libtorrent-rasterbar.so.7
/usr/src/libtorrent-rasterbar-0.16.12/src/.libs/libtorrent-rasterbar.so.7
[root@localhost qbittorrent-3.1.9]# rpm -qa | grep libtorrent
libtorrent-0.13.2-1.el6.rf.x86_64
I've then built qbittorrent-3.1.3 which built ok,
[root@localhost qbittorrent-3.1.9]# ./configure
Configuring qbittorrent ...
Verifying Qt 4 build environment ... ok
Checking for Qt >= 4.6 ... yes
Checking for QtDBus >= 4.5 ... yes
Checking for pkg-config executable ... yes
Checking for libtorrent-rasterbar >= 0.15.0 ... yes
Checking for libboost ... yes
Checking for GeoIP Database (optional) ... yes
Checking for qtsingleapplication library ... [shipped]  yes
Project MESSAGE: Project is built in RELEASE mode.
Project MESSAGE: Disabling debug output.
Project MESSAGE: GeoIP database will not be embedded in qBittorrent executable.
...
Good, your configure finished.  Now run /usr/bin/gmake.

[root@localhost qbittorrent-3.1.9]# /usr/bin/gmake
cd src/ && /usr/lib64/qt4/bin/qmake-qt4 /usr/src/qbittorrent-3.1.9/src/src.pro -unix -o Makefile
Project MESSAGE: Project is built in RELEASE mode.
Project MESSAGE: Disabling debug output.
Project MESSAGE: GeoIP database will not be embedded in qBittorrent executable.
cd src/ && /usr/bin/gmake -f Makefile
gmake[1]: Entering directory `/usr/src/qbittorrent-3.1.9/src'
...
lcrypto -lz -ltorrent-rasterbar -lboost_system-mt -lpthread -lQtDBus -lQtXml -lQtGui -lQtNetwork -lQtCore
gmake[1]: Leaving directory `/usr/src/qbittorrent-3.1.9/src'

[root@localhost qbittorrent-3.1.9]# make install
cd src/ && make -f Makefile install
make[1]: Entering directory `/usr/src/qbittorrent-3.1.9/src'
install -m 644 -p /usr/src/qbittorrent-3.1.9/doc/qbittorrent.1 /usr/local/share/man/man1/
install -m 644 -p /usr/src/qbittorrent-3.1.9/src/Icons/qBittorrent.desktop /usr/local/share/applications/
...
install -m 644 -p /usr/src/qbittorrent-3.1.9/src/menuicons/128x128/apps/qbittorrent.png /usr/local/share/pixmaps/
install -m 755 -p "qbittorrent" "/usr/local/bin/qbittorrent"
make[1]: Leaving directory `/usr/src/qbittorrent-3.1.9/src'

But when I attempt to execute qbit I get:
[root@localhost qbittorrent-3.1.9]# /usr/local/bin/qbittorrent
/usr/local/bin/qbittorrent: error while loading shared libraries: libtorrent-rasterbar.so.7: cannot open shared object file: No such file or directory
Any ideas?
sledgehammer_999
Administrator
Administrator
Posts: 2443
Joined: Sun Jan 23, 2011 1:17 pm

Re: Problems installing on Centos

Post by sledgehammer_999 »

Locate your 'qbittorrent' binary, cd to it and issue "ldd qbittorrent"
The entry for libtorrent-rasterbar.so.7 does it point somewhere? Does it point to the path where you installed libtorrent?
pointer2null

Re: Problems installing on Centos

Post by pointer2null »

libtorrent-rasterbar.so.7 => not found

Could I have make a mistake in building it or libtorrent?
[root@localhost bin]# ldd qbittorrent
        linux-vdso.so.1 =>  (0x00007fff073ff000)
        libssl.so.10 => /usr/lib64/libssl.so.10 (0x0000003b1ca00000)
        libcrypto.so.10 => /usr/lib64/libcrypto.so.10 (0x0000003b17e00000)
        libz.so.1 => /lib64/libz.so.1 (0x0000003b0ce00000)
        libtorrent-rasterbar.so.7 => not found
        libboost_system-mt.so.5 => /usr/lib64/libboost_system-mt.so.5 (0x00007f610263c000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x0000003b0c200000)
        libQtDBus.so.4 => /usr/lib64/libQtDBus.so.4 (0x00007f61023ca000)
        libQtXml.so.4 => /usr/lib64/libQtXml.so.4 (0x00007f6102188000)
        libQtGui.so.4 => /usr/lib64/libQtGui.so.4 (0x00007f610155f000)
        libQtNetwork.so.4 => /usr/lib64/libQtNetwork.so.4 (0x00007f6101264000)
        libQtCore.so.4 => /usr/lib64/libQtCore.so.4 (0x00007f6100e00000)
        libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x0000003b16e00000)
        libm.so.6 => /lib64/libm.so.6 (0x0000003b0ca00000)
        libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x0000003b11600000)
        libc.so.6 => /lib64/libc.so.6 (0x0000003b0be00000)
        libgssapi_krb5.so.2 => /lib64/libgssapi_krb5.so.2 (0x0000003b19600000)
        libkrb5.so.3 => /lib64/libkrb5.so.3 (0x0000003b19a00000)
        libcom_err.so.2 => /lib64/libcom_err.so.2 (0x0000003b18600000)
        libk5crypto.so.3 => /lib64/libk5crypto.so.3 (0x0000003b1a200000)
        libdl.so.2 => /lib64/libdl.so.2 (0x0000003b0ba00000)
        librt.so.1 => /lib64/librt.so.1 (0x0000003b0c600000)
        /lib64/ld-linux-x86-64.so.2 (0x0000003b0b600000)
        libdbus-1.so.3 => /lib64/libdbus-1.so.3 (0x0000003b0e600000)
        libgthread-2.0.so.0 => /lib64/libgthread-2.0.so.0 (0x00007f6100bf7000)
        libglib-2.0.so.0 => /lib64/libglib-2.0.so.0 (0x00007f61008f2000)
        libpng12.so.0 => /usr/lib64/libpng12.so.0 (0x0000003b11e00000)
        libfreetype.so.6 => /usr/lib64/libfreetype.so.6 (0x0000003b11a00000)
        libgobject-2.0.so.0 => /lib64/libgobject-2.0.so.0 (0x00007f61006a5000)
        libSM.so.6 => /usr/lib64/libSM.so.6 (0x0000003b18a00000)
        libICE.so.6 => /usr/lib64/libICE.so.6 (0x0000003b18200000)
        libXi.so.6 => /usr/lib64/libXi.so.6 (0x0000003b10a00000)
        libXrender.so.1 => /usr/lib64/libXrender.so.1 (0x0000003b12200000)
        libXrandr.so.2 => /usr/lib64/libXrandr.so.2 (0x0000003b12e00000)
        libXfixes.so.3 => /usr/lib64/libXfixes.so.3 (0x0000003b11200000)
        libXcursor.so.1 => /usr/lib64/libXcursor.so.1 (0x0000003b15e00000)
        libXinerama.so.1 => /usr/lib64/libXinerama.so.1 (0x0000003b14600000)
        libfontconfig.so.1 => /usr/lib64/libfontconfig.so.1 (0x0000003b12a00000)
        libXext.so.6 => /usr/lib64/libXext.so.6 (0x0000003b0fe00000)
        libX11.so.6 => /usr/lib64/libX11.so.6 (0x0000003b0f200000)
        libkrb5support.so.0 => /lib64/libkrb5support.so.0 (0x0000003b19e00000)
        libkeyutils.so.1 => /lib64/libkeyutils.so.1 (0x0000003b19200000)
        libresolv.so.2 => /lib64/libresolv.so.2 (0x0000003b0e200000)
        libuuid.so.1 => /lib64/libuuid.so.1 (0x0000003b16600000)
        libexpat.so.1 => /lib64/libexpat.so.1 (0x0000003b10200000)
        libxcb.so.1 => /usr/lib64/libxcb.so.1 (0x0000003b0fa00000)
        libselinux.so.1 => /lib64/libselinux.so.1 (0x0000003b0d600000)
        libXau.so.6 => /usr/lib64/libXau.so.6 (0x0000003b0ee00000)
[root@localhost bin]#
pointer2null

Re: Problems installing on Centos

Post by pointer2null »

SOLVED. (I hope)
Was looking at the output of the ldd command and thenit hit me - there are all lib64 libraries, and libtorrent is in /usr/lib/ not /usr/lib64 so put a softlink in and bingo.
Post Reply