LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Compiling rtorrent with XMLRPC (http://www.linuxquestions.org/questions/slackware-14/compiling-rtorrent-with-xmlrpc-4175437694/)

kind_of_linux_user 11-18-2012 12:45 PM

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?

mrclisdue 11-18-2012 02:04 PM

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,

kind_of_linux_user 11-18-2012 03:54 PM

Quote:

Originally Posted by mrclisdue (Post 4832143)
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.

thegato 11-19-2012 12:59 AM

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.

kind_of_linux_user 11-20-2012 07:02 AM

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

mrclisdue 11-20-2012 07:41 AM

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)?

kind_of_linux_user 11-23-2012 01:17 PM

Quote:

Originally Posted by mrclisdue (Post 4833256)
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/


mrclisdue 11-23-2012 04:44 PM

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,

thegato 11-24-2012 01:53 AM

rutorrent is pretty excellent in my opinion.

kind_of_linux_user 11-24-2012 04:47 AM

Quote:

Originally Posted by mrclisdue (Post 4835757)
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.

mrclisdue 11-24-2012 05:43 AM

Thank you, both.

cheers,


All times are GMT -5. The time now is 01:39 PM.