PDA

View Full Version : XML-RPC Errors



mwebinc
07-12-2006, 03:36 PM
Hi,

I tried configuring XML-RPC by adding "--with-xmlrpc \" to the customapache configure.php

I get the following error when trying to run a build:

"XML-RPC support requires libexpat. Use --with-expat-dir=<DIR>"

Any ideas guys?

Thanks again.

~Matt

toml
07-14-2006, 12:42 PM
well....for starters I would read the error. Try adding --with-expat-dir=/path/to/libexpat to the custompache. If you don't have expat installed then do so before trying to build apache again.

mwebinc
07-18-2006, 08:55 PM
Ok guys... tried locating libexpat and adding it to configure.php but still no avail...

Has ANYONE got XML-RPC PHP working?

Does anyone have any step-by-step instructions?

Thanks!

~Matt

toml
07-18-2006, 09:11 PM
You need to install expat and possibly expat-devel if you haven't already. How to do that depends on which operating system you are on.

mwebinc
07-19-2006, 08:14 PM
I'm running CentOS 4... any ideas?

Thanks!

~Matt

toml
07-19-2006, 10:06 PM
try
yum install expat

mwebinc
07-19-2006, 10:17 PM
It tells me there's nothing to do...

toml
07-20-2006, 06:35 AM
Did you also install expat-devel, like I mentioned in an earlier post?

mwebinc
07-20-2006, 10:21 AM
Yes, tried a yum install expat-devel and it says nothing to do as well...

I'm still baffled...

Any ideas?

Thanks!

Matt

toml
07-20-2006, 10:22 AM
What does your exact --with-expat-dir= line look like?

mwebinc
07-20-2006, 10:28 AM
My first 2 lines in my configure.php look like this:

--with-expat-dir=/usr/lib \
--with-xmlrpc \

I hit this error now:

checking external libexpat install dir... /usr/lib
configure: error: not found. Please reinstall the expat distribution.

*** There was an error while trying to configure php. Check the configure.php file

Matt

toml
07-20-2006, 10:34 AM
/usr/lib is not the expat install dir /usr is the install dir.

mwebinc
07-20-2006, 10:43 AM
Ok, tried that and ran build clean and build php and now I get this when trying to restart httpd:

PHP Warning: Unknown(): Unable to load dynamic library './php_xmlrpc.dll' - ./php_xmlrpc.dll: cannot open shared object file: No such file or directory in Unknown on line 0


Thanks!

Matt

toml
07-20-2006, 10:44 AM
I am guessing you added php_xmlrpc.dll to the php.ini, you need to read the xmlrpc docs and add the correct entry. The php_xmlrpc.dll would be for Windows not Linux.

mwebinc
07-20-2006, 10:49 AM
Do you know where to find the docs?

Thanks again for all of your help!

Matt

toml
07-20-2006, 11:07 AM
I don't know anything about about xml-rpc , so I can't really help you with that. I am a software developer/systems admin, so I can help with those kinds of problems.

mwebinc
07-22-2006, 07:45 AM
Can anyone offer up any help?

Thanks!

Matt

mwebinc
07-22-2006, 10:15 AM
I got it solved. Thank you to everyone that helped!

~Matt