LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-21-2010, 08:20 PM   #1
anaigini45
Member
 
Registered: Nov 2009
Posts: 49

Rep: Reputation: 15
Installing php-gd


Hi,

I've installed php-imap, php-mycrypt, and php-mysql into my server using the command :

Code:
yum install libc-client
rpm -i http://repo.webtatic.com/yum/centos/5/x86_64/php-imap-5.2.12-1.x86_64.rpm
Code:
yum install libmcrypt
rpm -i http://repo.webtatic.com/yum/centos/5/x86_64/php-mcrypt-5.2.12-1.x86_64.rpm
Code:
yum install php-mysql
rpm -i http://repo.webtatic.com/yum/centos/5/x86_64/php-mysql-5.2.12-1.x86_64.rpm
Now I want to install php-gd. The only version available for php5.2.12 in the webtatic repo is php-gd-5.2.12-1.1.

I do a :
Code:
yum install php-gd
rpm -i http://repo.webtatic.com/yum/centos/5/x86_64/php-gd-5.2.12-1.1.x86_64.rpm
The error that I get is :
Code:
error: Failed dependencies:php-common = 5.2.12-1.1 is needed by php-gd-5.2.12-1.1.x86_64
So I do a :
Code:
rpm -i http://repo.webtatic.com/yum/centos/5/x86_64/php-common-5.2.12-1.1.x86_64.rpm
And then the error that I get is :

Code:
file /usr/lib64/php/modules/curl.so from install of php-common-5.2.12-1.1.x86_64 conflicts with file from package php-common-5.2.12-1.x86_64
file /usr/lib64/php/modules/dbase.so from install of php-common-5.2.12-1.1.x86_64 conflicts with file from package php-common-5.2.12-1.x86_64
file /usr/lib64/php/modules/json.so from install of php-common-5.2.12-1.1.x86_64 conflicts with file from package php-common-5.2.12-1.x86_64
file /usr/lib64/php/modules/zip.so from install of php-common-5.2.12-1.1.x86_64 conflicts with file from package php-common-5.2.12-1.x86_64
My boss insists that I install a php-gd-5.2.12.1.x86_64 and does not want me to remove all the php-common-5.2.12.1.x86_64.

The reason I want to remove php-common-5.2.12.1.x86_64 is so that I can install the newer package, which is php-common-5.2.12.1.1.x86_64.

Please give a link or guide me on how to install php-gd-5.2.12.1.x86_64

Last edited by anaigini45; 01-21-2010 at 08:21 PM.
 
Old 01-22-2010, 07:40 AM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Try:
Code:
rpm -Uvh http://repo.webtatic.com/yum/centos/5/x86_64/php-common-5.2.12-1.1.x86_64.rpm
As it's already installed you should Upgrade not install

cheers

Last edited by kbp; 01-22-2010 at 07:41 AM.
 
Old 01-22-2010, 02:55 PM   #3
andytson
LQ Newbie
 
Registered: Jan 2010
Posts: 2

Rep: Reputation: 0
kbp is correct, you need to do an upgrade instead.

I rebuilt the PHP 5.2.12 rpms because of the 5.2.12-1 build having an x386 dependency. The newer 5.2.12-1.1 build only links to x86_64 dependencies.

Rather than use the rpm command to upgrade just php-common (there are more php packages installed that need upgrading), you should use yum (which I assume has already been set up with the webtatic repo).

You may want to check with your boss before doing this if it was him/her who set up the previous install.

yum upgrade --enablerepo=webtatic php

Then install php-gd

yum install --enablerepo=webtatic php-gd

Andy (the Webtatic.com repo maintainer)
 
Old 01-24-2010, 07:02 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
rpm -Uvh : is the universal install command,
also used by yum / package managers.

rpm -i or rpm -ivh : is only to be used, if you
on purpose want two versions of the same (library)
package installed.
And is of course only possible, when the files have
different file names.
.....
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Help installing php 5.1.4 Bedworth22 Linux - Newbie 8 06-15-2006 01:06 PM
Installing php package after installing from source shubb Slackware 4 03-14-2006 10:19 AM
installing php 5.0.5 da_cat Linux - Software 1 11-19-2005 07:16 AM
installing php 5.0.4 Infernal67 Mandriva 26 04-12-2005 06:02 PM
Installing PHP vinicius Linux - Newbie 5 09-18-2003 12:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:29 AM.

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