LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 11-18-2012, 01:45 PM   #1
kind_of_linux_user
LQ Newbie
 
Registered: Mar 2012
Location: HR
Distribution: Slackware 14
Posts: 12

Rep: Reputation: Disabled
Compiling rtorrent with XMLRPC


Hi,

I'm trying to compile rtorrent 0.9.3 on Slackware 14 64bit.
libtorrent 0.13.3 and xmlrpc-c r2447 are installed, but the configure script won't find the xmlrpc.

./configure --with-xmlrpc-c
Code:
checking pkg-config is at least version 0.9.0... yes
checking for sigc... yes
checking for libcurl... yes
checking for libtorrent... yes
checking for XMLRPC-C... failed
configure: error: Could not compile XMLRPC-C test.
strace shows that xmlrpc is found:
Code:
stat("/usr/local/sbin/xmlrpc-c-config", 0x7fff8136d660) = -1 ENOENT (No such file or directory)
stat("/usr/local/bin/xmlrpc-c-config", {st_mode=S_IFREG|0755, st_size=6789, ...}) = 0
stat("/usr/local/bin/xmlrpc-c-config", {st_mode=S_IFREG|0755, st_size=6789, ...}) = 0
access("/usr/local/bin/xmlrpc-c-config", X_OK) = 0
stat("/usr/local/bin/xmlrpc-c-config", {st_mode=S_IFREG|0755, st_size=6789, ...}) = 0
access("/usr/local/bin/xmlrpc-c-config", R_OK) = 0
stat("/usr/local/bin/xmlrpc-c-config", {st_mode=S_IFREG|0755, st_size=6789, ...}) = 0
stat("/usr/local/bin/xmlrpc-c-config", {st_mode=S_IFREG|0755, st_size=6789, ...}) = 0
access("/usr/local/bin/xmlrpc-c-config", X_OK) = 0
stat("/usr/local/bin/xmlrpc-c-config", {st_mode=S_IFREG|0755, st_size=6789, ...}) = 0
access("/usr/local/bin/xmlrpc-c-config", R_OK) = 0
read(3, "-L/usr/local/lib   -lxmlrpc_serv"..., 128) = 93
write(1, "configure: error: Could not comp"..., 51configure: error: Could not compile XMLRPC-C test.
Tried adding the xmlrpc path to the --with-xmlrpc-c argument, but nothing changed.
What can be the problem?
 
Old 11-18-2012, 03:04 PM   #2
mrclisdue
Senior Member
 
Registered: Dec 2005
Distribution: Slackware -current, 14.1
Posts: 1,049

Rep: Reputation: 170Reputation: 170
I recently installed rtorrent with xmlrpc support on a slack 32bit system, using sbopkg and slackbuilds without issue, so I tried the same thing on a very vanilla 64 bit system, and it also went off without a hitch.

So, unless you have an aversion to slackbuilds, might I suggest you remove xmlrpc (I suspect that its installation may have gone awry...) and reinstall it using the slackbuild/sbopkg and then give rtorrent another shot, either from source or slackbuild (edit the slackbuild itself and add --with-xmlrpc-c).

Or, alternatively, have a look at the slackbuilds to see if they may provide a clue as to what may be wrong with your attempt.

cheers,

Last edited by mrclisdue; 11-18-2012 at 03:22 PM.
 
1 members found this post helpful.
Old 11-18-2012, 04:54 PM   #3
kind_of_linux_user
LQ Newbie
 
Registered: Mar 2012
Location: HR
Distribution: Slackware 14
Posts: 12

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by mrclisdue View Post
I recently installed rtorrent with xmlrpc support on a slack 32bit system, using sbopkg and slackbuilds without issue, so I tried the same thing on a very vanilla 64 bit system, and it also went off without a hitch.

So, unless you have an aversion to slackbuilds, might I suggest you remove xmlrpc (I suspect that its installation may have gone awry...) and reinstall it using the slackbuild/sbopkg and then give rtorrent another shot, either from source or slackbuild (edit the slackbuild itself and add --with-xmlrpc-c).

Or, alternatively, have a look at the slackbuilds to see if they may provide a clue as to what may be wrong with your attempt.

cheers,
Hi,

I've removed my installation and tried with slackbuilds, but I got the same error message. The slackbuild actually has the --with-xmlrpc-c set already. Without --with-xmlrpc-c it will compile and run ok, but I need the RPC support.
 
Old 11-19-2012, 01:59 AM   #4
thegato
Member
 
Registered: Nov 2006
Posts: 42

Rep: Reputation: 4
You have to check the proper syntax using ./configure --help

It is:

--with-xmlrpc-c=/usr/bin/xmlrpc-c-config

You have to tell it where the binary is specifically.
 
Old 11-20-2012, 08:02 AM   #5
kind_of_linux_user
LQ Newbie
 
Registered: Mar 2012
Location: HR
Distribution: Slackware 14
Posts: 12

Original Poster
Rep: Reputation: Disabled
Thanks,

I don't know what happened, but after removing everything (libtorrent, xmlrpc-c, rtorrent) and recompiling from SBo slackbuilds everything is working.

Had to change the rtorrent.slackbuild --with-xmlrpc-c to --with-xmlrpc-c=/usr/local/bin/xmlrpc-c-config (as shown in strace above).


br, Z

Last edited by kind_of_linux_user; 11-20-2012 at 08:03 AM.
 
Old 11-20-2012, 08:41 AM   #6
mrclisdue
Senior Member
 
Registered: Dec 2005
Distribution: Slackware -current, 14.1
Posts: 1,049

Rep: Reputation: 170Reputation: 170
Here's where I'm mystified:

You said that the slackbuild already had "--with-xmlrpc-c" in it, yet the slackbuild at slackbuilds.org:

http://slackbuilds.org/slackbuilds/1...ent.SlackBuild

doesn't have it.

Secondly, the slackbuilds from slackbuilds.org generally put the binary in /usr/bin, as opposed to /usr/local/bin. So, in both my cases, compiling rtorrent didn't need the path for xmlrpc-c included in the configure statement.

So, in the event that someone at some point has a similar issue, could you indicate where your slackbuilds came from, and what else you may have edited (and perhaps "why" for clarity)?
 
Old 11-23-2012, 02:17 PM   #7
kind_of_linux_user
LQ Newbie
 
Registered: Mar 2012
Location: HR
Distribution: Slackware 14
Posts: 12

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by mrclisdue View Post
Here's where I'm mystified:

You said that the slackbuild already had "--with-xmlrpc-c" in it, yet the slackbuild at slackbuilds.org:

http://slackbuilds.org/slackbuilds/1...ent.SlackBuild

doesn't have it.

Secondly, the slackbuilds from slackbuilds.org generally put the binary in /usr/bin, as opposed to /usr/local/bin. So, in both my cases, compiling rtorrent didn't need the path for xmlrpc-c included in the configure statement.

So, in the event that someone at some point has a similar issue, could you indicate where your slackbuilds came from, and what else you may have edited (and perhaps "why" for clarity)?
Sorry for late response.
I had a failing disk (or cable) in the whole story - it started to make problems in the same time I struggled with this software. So I decided to (instead of moving my upgrade of upgrade of upgrade system) to install a fresh copy of Slackware 14 to another disk.

And, except from one little edit, all of the packages compiled without any issue ;-) You are right, I had to edit rtorrent.SlackBuild - I added the --with-xmlrpc-c. But without any arguments, and it just works.

And to answer somebody's later question, the scgi setup in httpd.conf should be:
Code:
LoadModule proxy_scgi_module lib64/httpd/modules/mod_proxy_scgi.so
# rTorrent SCGI port
ProxyPass /RPC2 scgi://127.0.0.1:5000/
 
Old 11-23-2012, 05:44 PM   #8
mrclisdue
Senior Member
 
Registered: Dec 2005
Distribution: Slackware -current, 14.1
Posts: 1,049

Rep: Reputation: 170Reputation: 170
kewl.

On a tangent, what are you using xmlrpc for? I had a web gui for rtorrent semi-running a few years back, but was never thrilled with it, so gave it a pass. Recently, I decided to try again, and after a quick failure, I found PyRT, which basically runs right after extraction; however I'm still not chuffed, so I'm wondering what you're running....

cheers,
 
Old 11-24-2012, 02:53 AM   #9
thegato
Member
 
Registered: Nov 2006
Posts: 42

Rep: Reputation: 4
rutorrent is pretty excellent in my opinion.
 
1 members found this post helpful.
Old 11-24-2012, 05:47 AM   #10
kind_of_linux_user
LQ Newbie
 
Registered: Mar 2012
Location: HR
Distribution: Slackware 14
Posts: 12

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by mrclisdue View Post
On a tangent, what are you using xmlrpc for? I had a web gui for rtorrent semi-running a few years back, but was never thrilled with it, so gave it a pass. Recently, I decided to try again, and after a quick failure, I found PyRT, which basically runs right after extraction; however I'm still not chuffed, so I'm wondering what you're running....
As thegato recommended - rutorrent. It has everything I need, and more.
 
1 members found this post helpful.
Old 11-24-2012, 06:43 AM   #11
mrclisdue
Senior Member
 
Registered: Dec 2005
Distribution: Slackware -current, 14.1
Posts: 1,049

Rep: Reputation: 170Reputation: 170
Thank you, both.

cheers,
 
  


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
Compiling rtorrent on Slackware (Error) J.D.H. Slackware 9 09-11-2011 04:59 PM
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
How can i operate rtorrent with XMLRPC over ssh? em00guy Linux - Software 0 11-21-2007 09:42 AM


All times are GMT -5. The time now is 02:59 AM.

Main Menu
Advertisement
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