LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-10-2011, 01:07 PM   #1
macg
LQ Newbie
 
Registered: Jul 2011
Posts: 5

Rep: Reputation: Disabled
Unhappy PHP 5.3.3 update - missing xml2 or libxml install dir??


Ok, firstly like many that have probably already posted similar questions to the pro's on here, I am a newbee - I can manage to follow instructions as far as SSH etc goes, but thats about it for me.

I am trying to upgrade my PHP on the Linux server (CentOS) to above version 5.2.4 in order to support the latest Wordpress version - currently PHP 5.1.6 is on there.
I have got as far as getting downloaded tar.gz files onto the server and located in the /usr/src/ directories - I have 5.3.3 & 5.3.6 on there - & already done the
Code:
# gunzip < php-5.3.3.tar.gz | tar xvf -
&
Code:
# gunzip < php-5.3.6.tar.gz | tar xvf -
but when I go to the folders
Code:
# cd /usr/src/php-5.3.3
and try to run the ./configure I get errors, below is what I suspect is causing the errors, but as you may have guessed I am no expert...

Code:
Configuring extensions
checking size of long... (cached) 8
checking size of int... (cached) 4
checking for int32_t... yes
checking for uint32_t... yes
checking for sys/types.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for string.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for strtoll... yes
checking for atoll... yes
checking for strftime... (cached) yes
checking which regex library to use... php
checking whether to enable LIBXML support... yes
checking libxml2 install dir... no
checking for xml2-config path... 
configure: error: xml2-config not found. Please check your libxml2 installation.
[root@server77-68-104-85 php-5.3.3]#
I have tried
Code:
./configure --with-mysql --with-xml2
but with no joy... (I am guessing the --with-xml2 bit)

Can anyone guide me? or do you need more information?
 
Old 07-10-2011, 01:22 PM   #2
macg
LQ Newbie
 
Registered: Jul 2011
Posts: 5

Original Poster
Rep: Reputation: Disabled
Just tried this on the off-chance

Code:
[root@server77-68-104-85 ~]# yum update libxml2-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * atomic: www7.atomicorp.com
 * base: mirror.sov.uk.goscomb.net
 * extras: mirror.sov.uk.goscomb.net
 * updates: mirror.sov.uk.goscomb.net
Setting up Update Process
Package(s) libxml2-devel available, but not installed.
No Packages marked for Update
[root@server77-68-104-85 ~]#
Still no joy

Have a book on the desk here called PHP, MySQL and Apache ... does not cover this issue unfortunately - finding more info on this board than anywhere
 
Old 07-10-2011, 08:53 PM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
You used the keyword 'update'; as it says
Quote:
libxml2-devel available, but not installed.
No Packages marked for Update
IOW, you can't update something not already installed; sounds logical hey?
First you install
Code:
yum install libxml2-devel
http://kbase.redhat.com/faq/docs/DOC-2531
 
1 members found this post helpful.
Old 07-11-2011, 05:11 AM   #4
macg
LQ Newbie
 
Registered: Jul 2011
Posts: 5

Original Poster
Rep: Reputation: Disabled
I am stating, the ruddy obvious here..... I should have went to spec-savers...

(Spec savers being optitions in the UK, ie need my eyes tested, must be blind)

That worked chrism01, but it's now not getting the SQL update, I have tried installing as before from the files in the /usr/src/php-5.3.3 & 5.3.6 directories, and also via YUM - the atomic as per the thread on http://www.eukhost.com/forums/f15/up...nux-unix-9412/ (directed there by server provider).
This is what I am getting now;

Code:
...
--> Processing Dependency: any-php-sqlite2 for package: sb-publish
---> Package t1lib.x86_64 0:5.1.2-2.el5.art set to be updated
--> Processing Dependency: libXaw.so.7()(64bit) for package: t1lib
--> Running transaction check
---> Package libXaw.x86_64 0:1.0.2-8.1 set to be updated
--> Processing Dependency: libXmu.so.6()(64bit) for package: libXaw
--> Processing Dependency: any-php-sqlite2 for package: sb-publish
--> Running transaction check
---> Package libXmu.x86_64 0:1.0.2-5 set to be updated
--> Processing Dependency: any-php-sqlite2 for package: sb-publish
--> Finished Dependency Resolution
sb-publish-3.0.1-200705230938.noarch from installed has depsolving problems
  --> Missing Dependency: any-php-sqlite2 is needed by package sb-publish-3.0.1-200705230938.noarch (installed)
Error: Missing Dependency: any-php-sqlite2 is needed by package sb-publish-3.0.1-200705230938.noarch (installed)
 You could try using --skip-broken to work around the problem
 You could try running: package-cleanup --problems
                        package-cleanup --dupes
                        rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.

Last edited by macg; 07-11-2011 at 05:15 AM.
 
Old 07-11-2011, 03:25 PM   #5
macg
LQ Newbie
 
Registered: Jul 2011
Posts: 5

Original Poster
Rep: Reputation: Disabled
I thought that MySQL was packaged along with the PHP packages, I take it its not.
 
  


Reply



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
yum update PHP on CentOS - missing dependency php-common AndyMillne Linux - Server 7 05-21-2013 06:34 AM
PHP 5 cannot find xml2-config for libxml2 support ridertech Linux - Software 21 02-08-2013 09:00 PM
xml2-config not found, can't install php snip128 Linux - Newbie 12 09-29-2011 03:32 PM
problem installing PHP 5 xml2-config not found SpinningCone Linux - Newbie 5 02-21-2007 07:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:52 PM.

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
Open Source Consulting | Domain Registration