Page 1 of 1

php-common and php-xml don't like each other on my machine

Posted: Sat Sep 13, 2008 11:28 pm
by joeyda3rd
I am at a loss on this one. I am trying to work with php DOMElement class. When I run my script I get:
PHP Fatal error: Class 'DOMElement' not found in /var/www/html/auctions/htmlparsing/library/JS/Extractor/Element.php on line 21

Ok, so DOMElement is not installed or enabled. PHP.net says it is installed and enabled by default. So I find many forums that say php-xml needs to be installed. ok.... :
---command line--------------------------------------------------------
[root@lab auctions]# yum install php-xml
Loaded plugins: refresh-packagekit
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package php-xml.i386 0:5.2.5-7.fc9 set to be updated
--> Processing Dependency: php-common = 5.2.5-7.fc9 for package: php-xml
--> Finished Dependency Resolution
php-xml-5.2.5-7.fc9.i386 from fedora has depsolving problems
--> Missing Dependency: php-common = 5.2.5-7.fc9 is needed by package php-xml-5.2.5-7.fc9.i386 (fedora)
Error: Missing Dependency: php-common = 5.2.5-7.fc9 is needed by package php-xml-5.2.5-7.fc9.i386 (fedora)
------------------------------------------------------------

So, I thought php-common was installed. Let's see....
---command line--------------------------------------------
[root@lab auctions]# yum install php-common
Loaded plugins: refresh-packagekit
Setting up Install Process
Parsing package install arguments
Package matching php-common-5.2.5-7.fc9.i386 already installed. Checking for update.
Nothing to do

------------------------------------------------------------

Yup, it's installed and up to date. It seems I can't install php-xml without php-common, but php-common is installed. Am I going crazy? :crazy: What am I missing?

---command line--------------------------------------------
[root@lab auctions]# php-config --extension-dir
/usr/lib/php/modules
[root@lab auctions]# ls /usr/lib/php/modules/
dbase.so ffmpeg.so gd.so json.so ldap.so mysqli.so mysql.so pdo_mysql.so pdo.so pdo_sqlite.so phpcups.so zip.so

[root@lab auctions]# php-config --libs
-lcrypt -lcrypt -lhistory -lreadline -lncurses -lgmp -lcurl -lbz2 -lz -lpcre -lresolv -lm -ldl -lnsl -lxml2 -lz -lm -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto -ldl -lz -lcurl -lssl -lcrypto -ldl -lz -lxml2 -lz -lm -lcrypt -lxml2 -lz -lm -lxml2 -lz -lm -lcrypt

[root@lab auctions]# php-config --version
5.2.6
-------------------------------------------------------------

Re: php-common and php-xml don't like each other on my machine

Posted: Tue Sep 16, 2008 2:29 pm
by Steph
I have exactly the same issue on fedora.
http://forums.fedora-fr.org/viewtopic.p ... 70#p297170

Please give us a short information to solve that.

I don't have any idea

Steph

Re: php-common and php-xml don't like each other on my machine

Posted: Wed Sep 17, 2008 2:24 pm
by Steph
I solved my issue by using
yum update fedora-release
after
yum install php-xml
I hope to help you

Steph