Total novice playing with stuff i prob shouldn't help needed

General Discussion of atomic repo and development projects.

Ask for help here with anything else not covered by other forums.
craig333
New Forum User
New Forum User
Posts: 3
Joined: Sat May 22, 2010 11:15 pm

Total novice playing with stuff i prob shouldn't help needed

Unread post by craig333 »

Hi first of i have very limited knowlage on any of this stuff only just learnt it tonight.

my problem is i am trying to update my php to 5.2.whatever from 5.1.6 i am running on plesk 9.5.1... CentOS Enterprise Linux - x86_64 OS ES 5.0

then i tried to upgrade via this tutorial http://www.atomicorp.com/wiki/index.php/PHP

i get the following output...

# yum update
Loaded plugins: fastestmirror
Determining fastest mirrors
* addons: mirror.vcu.edu
* atomic: www5.atomicorp.com
* base: mirror.ubiquityservers.com
* extras: yum.singlehop.com
* updates: mirrors.finalasp.com
addons | 951 B 00:00
addons/primary | 204 B 00:00
atomic | 1.9 kB 00:00
atomic/primary_db | 390 kB 00:00
base | 1.1 kB 00:00
base/primary | 1.2 MB 00:01
base 3434/3434
extras | 2.1 kB 00:00
extras/primary_db | 206 kB 00:00
updates | 1.9 kB 00:00
updates/primary_db | 82 kB 00:00
Excluding Packages in global exclude list
Finished
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package mysql-server.x86_64 0:5.0.90-1.el5.art set to be updated
--> Processing Dependency: mysql = 5.0.90-1.el5.art for package: mysql-server
---> Package nmap.x86_64 2:4.85-1.el5.art set to be updated
---> Package php-gd.x86_64 0:5.2.13-1.el5.art set to be updated
--> Processing Dependency: php-common = 5.2.13-1.el5.art for package: php-gd
--> Processing Dependency: libt1.so.5()(64bit) for package: php-gd
---> Package php-imap.x86_64 0:5.2.13-1.el5.art set to be updated
--> Processing Dependency: php-common = 5.2.13-1.el5.art for package: php-imap
---> Package php-mbstring.x86_64 0:5.2.13-1.el5.art set to be updated
--> Processing Dependency: php-common = 5.2.13-1.el5.art for package: php-mbstring
---> Package php-mysql.x86_64 0:5.2.13-1.el5.art set to be updated
--> Processing Dependency: php-common = 5.2.13-1.el5.art for package: php-mysql
---> Package php-pdo.x86_64 0:5.2.13-1.el5.art set to be updated
--> Processing Dependency: php-common = 5.2.13-1.el5.art for package: php-pdo
---> Package php-xml.x86_64 0:5.2.13-1.el5.art set to be updated
--> Processing Dependency: php-common = 5.2.13-1.el5.art for package: php-xml
---> Package spamassassin.x86_64 1:3.2.5-1.el5.art set to be updated
--> Running transaction check
---> Package mysql-server.x86_64 0:5.0.90-1.el5.art set to be updated
--> Processing Dependency: mysql = 5.0.90-1.el5.art for package: mysql-server
---> Package php-gd.x86_64 0:5.2.13-1.el5.art set to be updated
--> Processing Dependency: php-common = 5.2.13-1.el5.art for package: php-gd
---> Package php-imap.x86_64 0:5.2.13-1.el5.art set to be updated
--> Processing Dependency: php-common = 5.2.13-1.el5.art for package: php-imap
---> Package php-mbstring.x86_64 0:5.2.13-1.el5.art set to be updated
--> Processing Dependency: php-common = 5.2.13-1.el5.art for package: php-mbstring
---> Package php-mysql.x86_64 0:5.2.13-1.el5.art set to be updated
--> Processing Dependency: php-common = 5.2.13-1.el5.art for package: php-mysql
---> Package php-pdo.x86_64 0:5.2.13-1.el5.art set to be updated
--> Processing Dependency: php-common = 5.2.13-1.el5.art for package: php-pdo
---> Package php-xml.x86_64 0:5.2.13-1.el5.art set to be updated
--> Processing Dependency: php-common = 5.2.13-1.el5.art for package: php-xml
---> Package t1lib.x86_64 0:5.1.2-2.el5.art set to be updated
--> Finished Dependency Resolution
mysql-server-5.0.90-1.el5.art.x86_64 from atomic has depsolving problems
--> Missing Dependency: mysql = 5.0.90-1.el5.art is needed by package mysql-server-5.0.90-1.el5.art.x86_64 (atomic)
php-mbstring-5.2.13-1.el5.art.x86_64 from atomic has depsolving problems
--> Missing Dependency: php-common = 5.2.13-1.el5.art is needed by package php-mbstring-5.2.13-1.el5.art.x86_64 (atomic)
php-mysql-5.2.13-1.el5.art.x86_64 from atomic has depsolving problems
--> Missing Dependency: php-common = 5.2.13-1.el5.art is needed by package php-mysql-5.2.13-1.el5.art.x86_64 (atomic)
php-gd-5.2.13-1.el5.art.x86_64 from atomic has depsolving problems
--> Missing Dependency: php-common = 5.2.13-1.el5.art is needed by package php-gd-5.2.13-1.el5.art.x86_64 (atomic)
php-xml-5.2.13-1.el5.art.x86_64 from atomic has depsolving problems
--> Missing Dependency: php-common = 5.2.13-1.el5.art is needed by package php-xml-5.2.13-1.el5.art.x86_64 (atomic)
php-pdo-5.2.13-1.el5.art.x86_64 from atomic has depsolving problems
--> Missing Dependency: php-common = 5.2.13-1.el5.art is needed by package php-pdo-5.2.13-1.el5.art.x86_64 (atomic)
php-imap-5.2.13-1.el5.art.x86_64 from atomic has depsolving problems
--> Missing Dependency: php-common = 5.2.13-1.el5.art is needed by package php-imap-5.2.13-1.el5.art.x86_64 (atomic)
Error: Missing Dependency: php-common = 5.2.13-1.el5.art is needed by package php-imap-5.2.13-1.el5.art.x86_64 (atomic)
Error: Missing Dependency: php-common = 5.2.13-1.el5.art is needed by package php-mbstring-5.2.13-1.el5.art.x86_64 (atomic)
Error: Missing Dependency: php-common = 5.2.13-1.el5.art is needed by package php-gd-5.2.13-1.el5.art.x86_64 (atomic)
Error: Missing Dependency: php-common = 5.2.13-1.el5.art is needed by package php-mysql-5.2.13-1.el5.art.x86_64 (atomic)
Error: Missing Dependency: php-common = 5.2.13-1.el5.art is needed by package php-xml-5.2.13-1.el5.art.x86_64 (atomic)
Error: Missing Dependency: mysql = 5.0.90-1.el5.art is needed by package mysql-server-5.0.90-1.el5.art.x86_64 (atomic)
Error: Missing Dependency: php-common = 5.2.13-1.el5.art is needed by package php-pdo-5.2.13-1.el5.art.x86_64 (atomic)
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.

i have tried clear all and also rna the the yum update and upragde php commands which gave me this output.

# yum upgrade php
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: ftp.linux.ncsu.edu
* atomic: www5.atomicorp.com
* base: centos-distro.cavecreek.net
* extras: ftp.linux.ncsu.edu
* updates: mirrors.finalasp.com
Excluding Packages in global exclude list
Finished
Setting up Upgrade Process
No Packages marked for Update

# yum update php
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: ftp.linux.ncsu.edu
* atomic: www3.atomicorp.com
* base: centos-distro.cavecreek.net
* extras: ftp.linux.ncsu.edu
* updates: mirrors.finalasp.com
Excluding Packages in global exclude list
Finished
Setting up Update Process
No Packages marked for Update

i am totally clueless on how or why this all works all i know is its not for working for me :(

i do know the problem is here....

Error: Missing Dependency: php-common = 5.2.13-1.el5.art is needed by package php-imap-5.2.13-1.el5.art.x86_64 (atomic)
Error: Missing Dependency: php-common = 5.2.13-1.el5.art is needed by package php-mbstring-5.2.13-1.el5.art.x86_64 (atomic)
Error: Missing Dependency: php-common = 5.2.13-1.el5.art is needed by package php-gd-5.2.13-1.el5.art.x86_64 (atomic)
Error: Missing Dependency: php-common = 5.2.13-1.el5.art is needed by package php-mysql-5.2.13-1.el5.art.x86_64 (atomic)
Error: Missing Dependency: php-common = 5.2.13-1.el5.art is needed by package php-xml-5.2.13-1.el5.art.x86_64 (atomic)
Error: Missing Dependency: mysql = 5.0.90-1.el5.art is needed by package mysql-server-5.0.90-1.el5.art.x86_64 (atomic)
Error: Missing Dependency: php-common = 5.2.13-1.el5.art is needed by package php-pdo-5.2.13-1.el5.art.x86_64 (atomic)

but have no idea how to fix this... please help :)
faris
Long Time Forum Regular
Long Time Forum Regular
Posts: 2321
Joined: Thu Dec 09, 2004 11:19 am

Re: Total novice playing with stuff i prob shouldn't help ne

Unread post by faris »

Very curious. It doesn't look as though you are doing anything wrong. It looks more like yum is not doing its job properly.

You did yum clean all which is usually the solution to this type of issue, but not in this case apparently.

It does seem as though there may be some potential for there to be a 64bit v 32bit problem here.

Anyway, in my experience, one way to get round this sort of thing is to upgrade things individually rather than all at once.

So maybe "yum upgrade php" to start with, or maybe "yum upgrade php php-common" then see if it works and then upgrade anything that didn't get done initially.

The thing is that php-common is there in the repo, so should be pulled in automatically during the upgrade. What is not clear is if it is the 32bit or the 64bit version that is being asked for. I would presume the 64bit, but like I say, I wonder if it wants both?

I'm just venting my thoughts and guesses here though. Someone else will undoubtedly chip in shortly to give you a definitive answer and hopefully tell you exactly how to solve this issue. Do not follow any of my suggestions unless you are doing this for fun, can easily re-image your server with no loss of important data and don't mind risking ending up with a totally broken php and mysql and nowhere to go for help :-)
--------------------------------
<advert>
If you want to rent a UK-based VPS that comes with friendly advice and support from a fellow ART fan, please get in touch.
</advert>
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: Total novice playing with stuff i prob shouldn't help ne

Unread post by scott »

Yeah its probably that 32/64 bit thing. Try just regular "yum upgrade" or "yum upgrade php.x86_64"
craig333
New Forum User
New Forum User
Posts: 3
Joined: Sat May 22, 2010 11:15 pm

Re: Total novice playing with stuff i prob shouldn't help ne

Unread post by craig333 »

thanks for the help guys glad to know i'm not doing anything wrong as this is interesting stuff, i tried the separate thing and that didn't work.

and i was excited when i seen the yum upgrade php.x86_64 as i thought that has to be it


# yum clean all
Loaded plugins: fastestmirror
Cleaning up Everything
Cleaning up list of fastest mirrors

yum upgrade php.x86_64
Loaded plugins: fastestmirror
Determining fastest mirrors
* addons: mirrors.netdna.com
* atomic: www5.atomicorp.com
* base: styx.biochem.wfubmc.edu
* extras: mirrors.netdna.com
* updates: mirrors.bluehost.com
addons | 951 B 00:00
addons/primary | 204 B 00:00
atomic | 1.9 kB 00:00
atomic/primary_db | 390 kB 00:00
base | 1.1 kB 00:00
base/primary | 1.2 MB 00:00
base 3434/3434
extras | 2.1 kB 00:00
extras/primary_db | 206 kB 00:00
updates | 1.9 kB 00:00
updates/primary_db | 82 kB 00:00
Excluding Packages in global exclude list
Finished
Setting up Upgrade Process
No Packages marked for Update

tried yum upgrade last night and that spouts out the same error

having done a bit of googling i found this snippet...
How to solve Error: Missing Dependency: php-common = 5.1.6-23.2.el5_3 is needed by package php-gd-5.1.6-23.2.el5_3.i386 (updates)

This is a very strange error and there seems to be no answers on the web for it. I found some cases on the CentOS forums and the recommendation was to reinstall the whole OS. This is how I solved it.

as superuser

#yum remove php-common

(this command may remove a lot of installed software, you must make a list and install them again)

#yum install php-gd

(this will install the proper version of php-common and php-gd)
im guessing in my case ((remember i aint got a clue)) it would be

yum remove php-common

then

yum update php php-imap php-mbstring php-gd php-mysql php-xml mysql-server php-pdo

but for some reason the command "yum remove php-common" really scares me senseless enough to not try it... but like the dr peppers advert... "what is the worse that could happen"? brake PHP and pay a tech guy to sort out the mess for me i suppose.

what do you guys think worth a try?
craig333
New Forum User
New Forum User
Posts: 3
Joined: Sat May 22, 2010 11:15 pm

Re: Total novice playing with stuff i prob shouldn't help ne

Unread post by craig333 »

forget that remove php-common i did it and it was gonna remove my plesk before i picked N in the Y/N LOL

i'm out of my depth guys i think this upgrade is beyond me... time to give the tech guys some money before i break something ;)

thanks for the replies all the same guys and keep up the good work you do here helping numpties like me ;)
dayo
Forum Regular
Forum Regular
Posts: 158
Joined: Sun Jul 12, 2009 1:33 pm

Re: Total novice playing with stuff i prob shouldn't help ne

Unread post by dayo »

Use rpm to force erase, then yum to reinstall. The "--nodeps" flag keeps it from removing dependencies.

rpm -e --nodeps PACKAGE
yum install PACKAGE
Post Reply