LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 09-11-2011, 02:09 PM   #1
J.D.H.
LQ Newbie
 
Registered: Sep 2011
Posts: 12

Rep: Reputation: Disabled
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
 
Old 09-11-2011, 02:21 PM   #2
sinic
LQ Newbie
 
Registered: Jun 2009
Posts: 9

Rep: Reputation: 4
You need zlib.
 
1 members found this post helpful.
Old 09-11-2011, 02:23 PM   #3
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,750
Blog Entries: 1

Rep: Reputation: 238Reputation: 238Reputation: 238
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.
 
Old 09-11-2011, 02:28 PM   #4
J.D.H.
LQ Newbie
 
Registered: Sep 2011
Posts: 12

Original Poster
Rep: Reputation: Disabled
Was missing zlib. Installed and worked like a charm! thanks!
 
Old 09-11-2011, 02:34 PM   #5
kingbeowulf
Member
 
Registered: Oct 2003
Location: WA
Distribution: Slackware64 14.1, Slackware 14.1
Posts: 526

Rep: Reputation: 140Reputation: 140
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?
 
Old 09-11-2011, 03:09 PM   #6
J.D.H.
LQ Newbie
 
Registered: Sep 2011
Posts: 12

Original Poster
Rep: Reputation: Disabled
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.

Last edited by J.D.H.; 09-11-2011 at 04:41 PM.
 
Old 09-11-2011, 03:33 PM   #7
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,578
Blog Entries: 1

Rep: Reputation: 1033Reputation: 1033Reputation: 1033Reputation: 1033Reputation: 1033Reputation: 1033Reputation: 1033Reputation: 1033
Quote:
Originally Posted by J.D.H. View Post
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?
 
Old 09-11-2011, 04:35 PM   #8
J.D.H.
LQ Newbie
 
Registered: Sep 2011
Posts: 12

Original Poster
Rep: Reputation: Disabled
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.

Last edited by J.D.H.; 09-11-2011 at 04:44 PM.
 
Old 09-11-2011, 04:44 PM   #9
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,615
Blog Entries: 2

Rep: Reputation: 4070Reputation: 4070Reputation: 4070Reputation: 4070Reputation: 4070Reputation: 4070Reputation: 4070Reputation: 4070Reputation: 4070Reputation: 4070Reputation: 4070
Quote:
Originally Posted by J.D.H. View Post
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.
 
Old 09-11-2011, 04:59 PM   #10
J.D.H.
LQ Newbie
 
Registered: Sep 2011
Posts: 12

Original Poster
Rep: Reputation: Disabled
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Compiling Coloured rTorrent From SVN In Ubuntu 10.10/Debian Squeeze With ruTorrent LXer Syndicated Linux News 0 02-25-2011 06:30 PM
Rtorrent keyboard commands unresponsive when starting rtorrent in detached screen MheAd Linux - Software 1 09-05-2010 08:00 AM
problem in compiling rtorrent geotri314 Fedora 1 07-12-2010 01:33 PM
Error using rtorrent Laodiceans Slackware 2 01-16-2010 03:53 PM
rtorrent/libtorrent error truthe Linux - Software 0 06-26-2005 03:41 AM


All times are GMT -5. The time now is 03:22 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration