LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Compiling rtorrent on Slackware (Error) (http://www.linuxquestions.org/questions/slackware-14/compiling-rtorrent-on-slackware-error-902456/)

J.D.H. 09-11-2011 02:09 PM

Compiling rtorrent on Slackware (Error)
 
Hi,
I've successfully managed to compile and install libtorrent and now I'm trying to do the same with rtorrent. I have come across a lot of errors due to missing pkg's but installed them and moved on. Now I've come across this error:

Quote:

make[3]: Entering directory `/root/rtorrent-0.8.9/src'
/bin/sh ../libtool --tag=CXX --mode=link g++ -g -O2 -g -DDEBUG -I/usr/include/sigc++-2.0 -I/usr/lib64/sigc++-2.0/include -I/usr/local/include -o rtorrent main.o libsub_root.a ui/libsub_ui.a core/libsub_core.a display/libsub_display.a input/libsub_input.a rpc/libsub_rpc.a utils/libsub_utils.a -lncursesw -lsigc-2.0 -lcurl -L/usr/local/lib -ltorrent
libtool: link: g++ -g -O2 -g -DDEBUG -I/usr/include/sigc++-2.0 -I/usr/lib64/sigc++-2.0/include -I/usr/local/include -o rtorrent main.o libsub_root.a ui/libsub_ui.a core/libsub_core.a display/libsub_display.a input/libsub_input.a rpc/libsub_rpc.a utils/libsub_utils.a -lncursesw /usr/lib64/libcurl.so /usr/lib64/libidn.so /usr/lib64/libldap.so /usr/lib64/liblber.so /usr/lib64/libsasl2.so -lresolv -lrt -lssl -ldl -lz -L/usr/local/lib /usr/local/lib/libtorrent.so -lcrypto /usr/lib64/libsigc-2.0.so /usr/lib64/../lib64/libstdc++.so -lm -Wl,-rpath -Wl,/usr/lib64 -Wl,-rpath -Wl,/usr/lib64/../lib64 -Wl,-rpath -Wl,/usr/lib64 -Wl,-rpath -Wl,/usr/lib64/../lib64
/usr/lib64/gcc/x86_64-slackware-linux/4.3.3/../../../../x86_64-slackware-linux/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
make[3]: *** [rtorrent] Error 1
make[3]: Leaving directory `/root/rtorrent-0.8.9/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/rtorrent-0.8.9/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/rtorrent-0.8.9'
make: *** [all] Error 2
I'm confused. What exactly is the problem or what is it that I'm missing?

Thanks
Jordan

sinic 09-11-2011 02:21 PM

You need zlib.

weibullguy 09-11-2011 02:23 PM

You're missing zlib or your environment is borked and your build tools can't find libz (it should be in /usr/lib64). Also, I wouldn't recommend you build as root, a small error can have big effects.

J.D.H. 09-11-2011 02:28 PM

Was missing zlib. Installed and worked like a charm! thanks!

kingbeowulf 09-11-2011 02:34 PM

Since you are on Slackware, are you compiling rtorrent yourself or via the http://slackbuilds.org/repository/13...work/rtorrent/ SBo slackbuild? The only dependendency for stock Slackware is libtorrent. zlib is already part of Slackware. Also, are you running pure Slackware64 or multilib?

J.D.H. 09-11-2011 03:09 PM

Compilied myself on pure slackware 64. Very minimal install. There was actually quite a few packages that I was missing.

EDIT: I'm not sure whether it's multilib or pure 64. When I answered this question I had no idea what multilib was. :)

sycamorex 09-11-2011 03:33 PM

Quote:

Originally Posted by J.D.H. (Post 4469043)
Compilied myself on pure slackware 64. Very minimal install. There was actually quite a few packages that I was missing.

Out of curiosity, how minimal is your install? I mean how much disk space it's taking now?

J.D.H. 09-11-2011 04:35 PM

I do know that's possible to have a much smaller install then I currently have. I'm looking to get rid of anything I don't need. I want rtorrent to have as much resources as possible. Also I'll need to set it up as ftp server. Once all that is setup I should be able to get rid of everything used to compile from source right? This may not be necessary but I want to do it anyways. As of right now:

Quote:

Filesystem Size Used Avail Use% Mounted on
/dev/root 20G 716M 18G 4% /
/dev/sda2 212G 188M 201G 1% /home
list of installed packages according to /var/log/packages/:


Quote:

aaa_base-13.0-x86_64-2 man-1.6f-x86_64-2
aaa_elflibs-13.0-x86_64-2 man-pages-3.22-noarch-2
aaa_terminfo-5.7-noarch-1 mdadm-2.6.4-x86_64-1
acl-2.2.47_1-x86_64-1 module-init-tools-3.6-x86_64-2
attr-2.4.43_1-x86_64-1 mpfr-2.3.1-x86_64-1
autoconf-2.63-noarch-1 mtr-0.73-x86_64-2
bash-3.1.017-x86_64-2 ncurses-5.7-x86_64-2
bin-11.1-x86_64-1 net-tools-1.60-x86_64-2
binutils-2.18.50.0.9-x86_64-2 network-scripts-13.0-noarch-2
bzip2-1.0.5-x86_64-1 openldap-client-2.3.43-x86_64-1
coreutils-7.4-x86_64-1 openssh-5.2p1-x86_64-2
curl-7.19.6-x86_64-1 openssl-0.9.8k-x86_64-2
cxxlibs-6.0.10-x86_64-1 openssl-solibs-0.9.8k-x86_64-2
devs-2.3.1-noarch-25 patch-2.5.4-x86_64-1
dialog-1.1_20080819-x86_64-3 pciutils-3.1.3-x86_64-1
e2fsprogs-1.41.8-x86_64-1 perl-5.10.0-x86_64-2
etc-13.0-x86_64-2 pkg-config-0.23-x86_64-3
findutils-4.4.2-x86_64-1 pkgtools-13.0-noarch-3
gawk-3.1.6-x86_64-2 procps-3.2.7-x86_64-3
gcc-4.3.3-x86_64-4 quota-3.17-x86_64-1
gcc-g++-4.3.3-x86_64-4 reiserfsprogs-3.6.21-x86_64-1
glibc-2.9-x86_64-3 rpm2tgz-1.1-x86_64-1
glibc32-2.9-x86_64_slamd64-2 rsync-3.0.6-x86_64-1
glibc-solibs-2.9-x86_64-3 screen-4.0.3-x86_64-2
glibc-zoneinfo-2.9-noarch-3 sdparm-1.01-x86_64-2
grep-2.5.4-x86_64-1 sed-4.1.5-x86_64-1
groff-1.20.1-x86_64-1 shadow-4.0.3-x86_64-18
gzip-1.3.12-x86_64-1 sharutils-4.7-x86_64-1
hdparm-9.3-x86_64-1 slackpkg-2.81-noarch-2
iceauth-1.0.4-i486-1 slapt-get-0.10.2b-x86_64-1
infozip-6.0-x86_64-1 slocate-3.1-x86_64-3
inotify-tools-3.13-x86_64-1 smartmontools-5.38-x86_64-1
iproute2-2.6.29_1-x86_64-2 sysfsutils-2.1.0-x86_64-1
iputils-s20070202-x86_64-2 sysklogd-1.4.1-x86_64-10
jfsutils-1.1.14-x86_64-1 sysvinit-2.86-x86_64-6
kbd-1.15-x86_64-3 sysvinit-functions-8.53-x86_64-2
kernel-headers-2.6.29.6-x86-2 sysvinit-scripts-1.2-noarch-30
less-418-x86_64-3 tar-1.22-x86_64-2
lha-114i-x86_64-1 tcpdump-4.0.0-x86_64-1
libgpg-error-1.7-x86_64-1 time-1.7-x86_64-1
libidn-1.5-x86_64-1 udev-141-x86_64-3
libsigc++-2.2.4.1-x86_64-2gsb usbutils-0.82-x86_64-2
libXaw-1.0.9-i486-1 utempter-1.1.4-x86_64-1
lilo-22.8-x86_64-14 util-linux-ng-2.14.2-x86_64-2
linux-faqs-20060228-noarch-1 vim-7.2.245-x86_64-1
logrotate-3.7.4-x86_64-1 wget-1.11.4-x86_64-1
lvm2-2.02.40-x86_64-1 which-2.20-x86_64-1
m4-1.4.13-x86_64-1 xz-4.999.8beta-x86_64-1
make-3.81-x86_64-1 zlib-1.2.3-x86_64-2
EDIT: I tried removing some packages I didn't want by using "removepkg packagename". For a lot of them it didn't show any files deleted (some worked though). For example I tried getting rid of elvis. It didn't give me an error but also didn't show any files deleted. After that I typed elvis and hit enter and elvis fired up. ???

Please have some patience with me, I'm very new to linux and slackware.

TobiSGD 09-11-2011 04:44 PM

Quote:

Originally Posted by J.D.H. (Post 4469110)
Once all that is setup I should be able to get rid of everything used to compile from source right? This may not be necessary but I want to do it anyways.

This would be counterproductive. Since you are compiling from source you are the one in charge to apply security patches and bugfixes. So sooner or later you will need the development tools again to recompile the fixed sources, if you don't want to run a system with known security holes.

J.D.H. 09-11-2011 04:59 PM

Quote:

This would be counterproductive. Since you are compiling from source you are the one in charge to apply security patches and bugfixes. So sooner or later you will need the development tools again to recompile the fixed sources, if you don't want to run a system with known security holes.
Alright so I'll keep all the development tools. Even still there's got to be quite a few of those packages I listed that can go.


All times are GMT -5. The time now is 12:37 PM.