Slackware This Forum is for the discussion of Slackware Linux.
|
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
09-11-2011, 01:09 PM
|
#1
|
|
LQ Newbie
Registered: Sep 2011
Posts: 12
Rep: 
|
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
|
|
|
|
09-11-2011, 01:21 PM
|
#2
|
|
LQ Newbie
Registered: Jun 2009
Posts: 9
Rep:
|
|
|
|
1 members found this post helpful.
|
09-11-2011, 01:23 PM
|
#3
|
|
ReliaFree Maintainer
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware, Cross Linux from Scratch, Gentoo
Posts: 2,663
Rep: 
|
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.
|
|
|
|
09-11-2011, 01:28 PM
|
#4
|
|
LQ Newbie
Registered: Sep 2011
Posts: 12
Original Poster
Rep: 
|
Was missing zlib. Installed and worked like a charm! thanks!
|
|
|
|
09-11-2011, 01:34 PM
|
#5
|
|
Member
Registered: Oct 2003
Location: WA
Distribution: Slackware64 14.0, Slackware 14.0
Posts: 448
Rep: 
|
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?
|
|
|
|
09-11-2011, 02:09 PM
|
#6
|
|
LQ Newbie
Registered: Sep 2011
Posts: 12
Original Poster
Rep: 
|
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 03:41 PM.
|
|
|
|
09-11-2011, 02:33 PM
|
#7
|
|
LQ Veteran
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,088
|
Quote:
Originally Posted by J.D.H.
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?
|
|
|
|
09-11-2011, 03:35 PM
|
#8
|
|
LQ Newbie
Registered: Sep 2011
Posts: 12
Original Poster
Rep: 
|
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 03:44 PM.
|
|
|
|
09-11-2011, 03:44 PM
|
#9
|
|
Moderator
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Slackware
Posts: 12,136
|
Quote:
Originally Posted by J.D.H.
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.
|
|
|
|
09-11-2011, 03:59 PM
|
#10
|
|
LQ Newbie
Registered: Sep 2011
Posts: 12
Original Poster
Rep: 
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 02:07 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|