<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Linux Admin Zone &#187; centos</title>
	<atom:link href="http://linuxadminzone.com/tag/centos/feed/" rel="self" type="application/rss+xml" />
	<link>http://linuxadminzone.com</link>
	<description>Adding more reasons to celebrate Open Source.</description>
	<lastBuildDate>Wed, 09 May 2012 10:17:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Upgrade/update php to latest 5.2.17 in Linux</title>
		<link>http://linuxadminzone.com/upgrade-update-php-to-latest-5-2-17-in-linux/</link>
		<comments>http://linuxadminzone.com/upgrade-update-php-to-latest-5-2-17-in-linux/#comments</comments>
		<pubDate>Thu, 28 Jul 2011 15:54:54 +0000</pubDate>
		<dc:creator>jagbir</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[update]]></category>

		<guid isPermaLink="false">http://linuxadminzone.com/?p=427</guid>
		<description><![CDATA[In a CentOS 5.5 host, we were required to upgrade php to its latest release which is 5.2.17 when writing this article. Again there are various options to do such upgrade and trying to install with the package manager (yum) is just one (aka easy) of them. You can also trying downloading latest source code [...]]]></description>
			<content:encoded><![CDATA[<p>In a CentOS 5.5 host, we were required to upgrade php to its latest release which is 5.2.17 when writing this article. Again there are various options to do such upgrade and trying to install with the package manager (yum) is just one (aka easy) of them. You can also trying downloading latest source code and compile yourself to have better control but for ease of use, I&#8217;m updating php with yum here.</p>
<p>Again, you won&#8217;t find the latest PHP binaries in default repositories available with CentOS and to resolve that we need to have CentAlt repo (or other such repos like epel). </p>
<p>Here are quick steps: </p>
<p><strong>Step 1.</strong> Create repo file in /etc/yum.repos.d directory:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>yum.repos.d<span style="color: #000000; font-weight: bold;">/</span>centalt.repo
<span style="color: #7a0874; font-weight: bold;">&#91;</span>CentALT<span style="color: #7a0874; font-weight: bold;">&#93;</span>
<span style="color: #007800;">name</span>=CentALT Packages <span style="color: #000000; font-weight: bold;">for</span> Enterprise Linux <span style="color: #000000;">5</span> - <span style="color: #007800;">$basearch</span>
<span style="color: #007800;">baseurl</span>=http:<span style="color: #000000; font-weight: bold;">//</span>centos.alt.ru<span style="color: #000000; font-weight: bold;">/</span>repository<span style="color: #000000; font-weight: bold;">/</span>centos<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">5</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$basearch</span><span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #007800;">enabled</span>=<span style="color: #000000;">1</span>
<span style="color: #007800;">gpgcheck</span>=<span style="color: #000000;">0</span></pre></div></div>

<p>RELATED: <a href="http://linuxadminzone.com/download-compile-install-and-configure-php-5-3-5-in-linux/"> Upgrade PHP to its latest version by manual compiling its source code. </a></p>
<p><strong>Step 2.</strong> When I tried updating PHP, ran in an issue of &#8220;Error: Missing Dependency: libt1.so.5 is needed by package php-gd-5.2.17-1.el5.i386&#8243;. Complete details below:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ yum update php
Loaded plugins: fastestmirror
Determining fastest mirrors
CentALT                                                                                                                             <span style="color: #000000; font-weight: bold;">|</span>  <span style="color: #000000;">951</span> B     00:00     
CentALT<span style="color: #000000; font-weight: bold;">/</span>primary                                                                                                                     <span style="color: #000000; font-weight: bold;">|</span>  <span style="color: #000000;">90</span> kB     00:01     
CentALT                                                                                                                                            <span style="color: #000000;">258</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">258</span>
addons                                                                                                                              <span style="color: #000000; font-weight: bold;">|</span>  <span style="color: #000000;">951</span> B     00:00     
addons<span style="color: #000000; font-weight: bold;">/</span>primary                                                                                                                      <span style="color: #000000; font-weight: bold;">|</span>  <span style="color: #000000;">202</span> B     00:00     
base                                                                                                                                <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #000000;">2.1</span> kB     00:00     
base<span style="color: #000000; font-weight: bold;">/</span>primary_db                                                                                                                     <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #000000;">1.6</span> MB     00:00     
extras                                                                                                                              <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #000000;">2.1</span> kB     00:00     
extras<span style="color: #000000; font-weight: bold;">/</span>primary_db                                                                                                                   <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #000000;">188</span> kB     00:00     
turbopanel-base                                                                                                                     <span style="color: #000000; font-weight: bold;">|</span>  <span style="color: #000000;">951</span> B     00:00     
turbopanel-base<span style="color: #000000; font-weight: bold;">/</span>primary                                                                                                             <span style="color: #000000; font-weight: bold;">|</span>  <span style="color: #000000;">83</span> kB     00:00     
turbopanel-base                                                                                                                                    <span style="color: #000000;">560</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">560</span>
turbopanel-centos5                                                                                                                  <span style="color: #000000; font-weight: bold;">|</span>  <span style="color: #000000;">951</span> B     00:00     
turbopanel-centos5<span style="color: #000000; font-weight: bold;">/</span>primary                                                                                                          <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #000000;">2.5</span> kB     00:00     
turbopanel-centos5                                                                                                                                   <span style="color: #000000;">10</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">10</span>
update                                                                                                                              <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #000000;">1.9</span> kB     00:00     
update<span style="color: #000000; font-weight: bold;">/</span>primary_db                                                                                                                   <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #000000;">889</span> kB     00:00     
Setting up Update Process
Resolving Dependencies
--<span style="color: #000000; font-weight: bold;">&gt;</span> Running transaction check
---<span style="color: #000000; font-weight: bold;">&gt;</span> Package php.i386 <span style="color: #000000;">0</span>:5.2.17-<span style="color: #000000;">1</span>.el5 <span style="color: #000000; font-weight: bold;">set</span> to be updated
---<span style="color: #000000; font-weight: bold;">&gt;</span> Package php-cli.i386 <span style="color: #000000;">0</span>:5.2.17-<span style="color: #000000;">1</span>.el5 <span style="color: #000000; font-weight: bold;">set</span> to be updated
--<span style="color: #000000; font-weight: bold;">&gt;</span> Processing Dependency: libevent-<span style="color: #000000;">1.4</span>.so.2 <span style="color: #000000; font-weight: bold;">for</span> package: php-cli
---<span style="color: #000000; font-weight: bold;">&gt;</span> Package php-common.i386 <span style="color: #000000;">0</span>:5.2.17-<span style="color: #000000;">1</span>.el5 <span style="color: #000000; font-weight: bold;">set</span> to be updated
---<span style="color: #000000; font-weight: bold;">&gt;</span> Package php-devel.i386 <span style="color: #000000;">0</span>:5.2.17-<span style="color: #000000;">1</span>.el5 <span style="color: #000000; font-weight: bold;">set</span> to be updated
---<span style="color: #000000; font-weight: bold;">&gt;</span> Package php-gd.i386 <span style="color: #000000;">0</span>:5.2.17-<span style="color: #000000;">1</span>.el5 <span style="color: #000000; font-weight: bold;">set</span> to be updated
--<span style="color: #000000; font-weight: bold;">&gt;</span> Processing Dependency: libt1.so.5 <span style="color: #000000; font-weight: bold;">for</span> package: php-gd
---<span style="color: #000000; font-weight: bold;">&gt;</span> Package php-imap.i386 <span style="color: #000000;">0</span>:5.2.17-<span style="color: #000000;">1</span>.el5 <span style="color: #000000; font-weight: bold;">set</span> to be updated
---<span style="color: #000000; font-weight: bold;">&gt;</span> Package php-ldap.i386 <span style="color: #000000;">0</span>:5.2.17-<span style="color: #000000;">1</span>.el5 <span style="color: #000000; font-weight: bold;">set</span> to be updated
---<span style="color: #000000; font-weight: bold;">&gt;</span> Package php-mbstring.i386 <span style="color: #000000;">0</span>:5.2.17-<span style="color: #000000;">1</span>.el5 <span style="color: #000000; font-weight: bold;">set</span> to be updated
---<span style="color: #000000; font-weight: bold;">&gt;</span> Package php-mysql.i386 <span style="color: #000000;">0</span>:5.2.17-<span style="color: #000000;">1</span>.el5 <span style="color: #000000; font-weight: bold;">set</span> to be updated
---<span style="color: #000000; font-weight: bold;">&gt;</span> Package php-ncurses.i386 <span style="color: #000000;">0</span>:5.2.17-<span style="color: #000000;">1</span>.el5 <span style="color: #000000; font-weight: bold;">set</span> to be updated
---<span style="color: #000000; font-weight: bold;">&gt;</span> Package php-odbc.i386 <span style="color: #000000;">0</span>:5.2.17-<span style="color: #000000;">1</span>.el5 <span style="color: #000000; font-weight: bold;">set</span> to be updated
---<span style="color: #000000; font-weight: bold;">&gt;</span> Package php-pdo.i386 <span style="color: #000000;">0</span>:5.2.17-<span style="color: #000000;">1</span>.el5 <span style="color: #000000; font-weight: bold;">set</span> to be updated
---<span style="color: #000000; font-weight: bold;">&gt;</span> Package php-pear.noarch <span style="color: #000000;">1</span>:1.9.1-<span style="color: #000000;">1</span>.el5 <span style="color: #000000; font-weight: bold;">set</span> to be updated
---<span style="color: #000000; font-weight: bold;">&gt;</span> Package php-pgsql.i386 <span style="color: #000000;">0</span>:5.2.17-<span style="color: #000000;">1</span>.el5 <span style="color: #000000; font-weight: bold;">set</span> to be updated
---<span style="color: #000000; font-weight: bold;">&gt;</span> Package php-snmp.i386 <span style="color: #000000;">0</span>:5.2.17-<span style="color: #000000;">1</span>.el5 <span style="color: #000000; font-weight: bold;">set</span> to be updated
---<span style="color: #000000; font-weight: bold;">&gt;</span> Package php-xml.i386 <span style="color: #000000;">0</span>:5.2.17-<span style="color: #000000;">1</span>.el5 <span style="color: #000000; font-weight: bold;">set</span> to be updated
---<span style="color: #000000; font-weight: bold;">&gt;</span> Package php-xmlrpc.i386 <span style="color: #000000;">0</span>:5.2.17-<span style="color: #000000;">1</span>.el5 <span style="color: #000000; font-weight: bold;">set</span> to be updated
--<span style="color: #000000; font-weight: bold;">&gt;</span> Running transaction check
---<span style="color: #000000; font-weight: bold;">&gt;</span> Package libevent.i386 <span style="color: #000000;">0</span>:1.4.13-<span style="color: #000000;">1</span> <span style="color: #000000; font-weight: bold;">set</span> to be updated
---<span style="color: #000000; font-weight: bold;">&gt;</span> Package php-gd.i386 <span style="color: #000000;">0</span>:5.2.17-<span style="color: #000000;">1</span>.el5 <span style="color: #000000; font-weight: bold;">set</span> to be updated
--<span style="color: #000000; font-weight: bold;">&gt;</span> Processing Dependency: libt1.so.5 <span style="color: #000000; font-weight: bold;">for</span> package: php-gd
--<span style="color: #000000; font-weight: bold;">&gt;</span> Finished Dependency Resolution
php-gd-5.2.17-<span style="color: #000000;">1</span>.el5.i386 from CentALT has depsolving problems
  --<span style="color: #000000; font-weight: bold;">&gt;</span> Missing Dependency: libt1.so.5 is needed by package php-gd-5.2.17-<span style="color: #000000;">1</span>.el5.i386 <span style="color: #7a0874; font-weight: bold;">&#40;</span>CentALT<span style="color: #7a0874; font-weight: bold;">&#41;</span>
Error: Missing Dependency: libt1.so.5 is needed by package php-gd-5.2.17-<span style="color: #000000;">1</span>.el5.i386 <span style="color: #7a0874; font-weight: bold;">&#40;</span>CentALT<span style="color: #7a0874; font-weight: bold;">&#41;</span>
 You could try using <span style="color: #660033;">--skip-broken</span> to work around the problem
 You could try running: package-cleanup <span style="color: #660033;">--problems</span>
                        package-cleanup <span style="color: #660033;">--dupes</span>
                        rpm <span style="color: #660033;">-Va</span> <span style="color: #660033;">--nofiles</span> <span style="color: #660033;">--nodigest</span>
The program package-cleanup is found <span style="color: #000000; font-weight: bold;">in</span> the yum-utils package.</pre></div></div>

<p><strong>Step 3.</strong> To resolve the issue, we need to have t1lib package, so install it now:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ yum <span style="color: #c20cb9; font-weight: bold;">install</span> t1lib<span style="color: #000000; font-weight: bold;">*</span> <span style="color: #660033;">--nogpgcheck</span>
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
addons                                                                                                                              <span style="color: #000000; font-weight: bold;">|</span>  <span style="color: #000000;">951</span> B     00:00     
base                                                                                                                                <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #000000;">2.1</span> kB     00:00     
extras                                                                                                                              <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #000000;">2.1</span> kB     00:00     
update                                                                                                                              <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #000000;">1.9</span> kB     00:00     
Setting up Install Process
Examining t1lib-5.1.2-<span style="color: #000000;">1</span>.el5.rf.i386.rpm: t1lib-5.1.2-<span style="color: #000000;">1</span>.el5.rf.i386
Marking t1lib-5.1.2-<span style="color: #000000;">1</span>.el5.rf.i386.rpm to be installed
Resolving Dependencies
--<span style="color: #000000; font-weight: bold;">&gt;</span> Running transaction check
---<span style="color: #000000; font-weight: bold;">&gt;</span> Package t1lib.i386 <span style="color: #000000;">0</span>:5.1.2-<span style="color: #000000;">1</span>.el5.rf <span style="color: #000000; font-weight: bold;">set</span> to be updated
--<span style="color: #000000; font-weight: bold;">&gt;</span> Processing Dependency: libICE.so.6 <span style="color: #000000; font-weight: bold;">for</span> package: t1lib
--<span style="color: #000000; font-weight: bold;">&gt;</span> Processing Dependency: libSM.so.6 <span style="color: #000000; font-weight: bold;">for</span> package: t1lib
--<span style="color: #000000; font-weight: bold;">&gt;</span> Processing Dependency: libXaw.so.7 <span style="color: #000000; font-weight: bold;">for</span> package: t1lib
--<span style="color: #000000; font-weight: bold;">&gt;</span> Processing Dependency: libXext.so.6 <span style="color: #000000; font-weight: bold;">for</span> package: t1lib
--<span style="color: #000000; font-weight: bold;">&gt;</span> Processing Dependency: libXmu.so.6 <span style="color: #000000; font-weight: bold;">for</span> package: t1lib
--<span style="color: #000000; font-weight: bold;">&gt;</span> Processing Dependency: libXt.so.6 <span style="color: #000000; font-weight: bold;">for</span> package: t1lib
--<span style="color: #000000; font-weight: bold;">&gt;</span> Running transaction check
---<span style="color: #000000; font-weight: bold;">&gt;</span> Package libICE.i386 <span style="color: #000000;">0</span>:1.0.1-<span style="color: #000000;">2.1</span> <span style="color: #000000; font-weight: bold;">set</span> to be updated
---<span style="color: #000000; font-weight: bold;">&gt;</span> Package libSM.i386 <span style="color: #000000;">0</span>:1.0.1-<span style="color: #000000;">3.1</span> <span style="color: #000000; font-weight: bold;">set</span> to be updated
---<span style="color: #000000; font-weight: bold;">&gt;</span> Package libXaw.i386 <span style="color: #000000;">0</span>:1.0.2-<span style="color: #000000;">8.1</span> <span style="color: #000000; font-weight: bold;">set</span> to be updated
---<span style="color: #000000; font-weight: bold;">&gt;</span> Package libXext.i386 <span style="color: #000000;">0</span>:1.0.1-<span style="color: #000000;">2.1</span> <span style="color: #000000; font-weight: bold;">set</span> to be updated
---<span style="color: #000000; font-weight: bold;">&gt;</span> Package libXmu.i386 <span style="color: #000000;">0</span>:1.0.2-<span style="color: #000000;">5</span> <span style="color: #000000; font-weight: bold;">set</span> to be updated
---<span style="color: #000000; font-weight: bold;">&gt;</span> Package libXt.i386 <span style="color: #000000;">0</span>:1.0.2-<span style="color: #000000;">3.2</span>.el5 <span style="color: #000000; font-weight: bold;">set</span> to be updated
--<span style="color: #000000; font-weight: bold;">&gt;</span> Finished Dependency Resolution
&nbsp;
Dependencies Resolved
&nbsp;
===========================================================================================================================================================
 Package                        Arch                        Version                                Repository                                         Size
===========================================================================================================================================================
Installing:
 t1lib                          i386                        5.1.2-<span style="color: #000000;">1</span>.el5.rf                         <span style="color: #000000; font-weight: bold;">/</span>t1lib-5.1.2-<span style="color: #000000;">1</span>.el5.rf.i386                        <span style="color: #000000;">854</span> k
Installing <span style="color: #000000; font-weight: bold;">for</span> dependencies:
 libICE                         i386                        1.0.1-<span style="color: #000000;">2.1</span>                              base                                               <span style="color: #000000;">54</span> k
 libSM                          i386                        1.0.1-<span style="color: #000000;">3.1</span>                              base                                               <span style="color: #000000;">27</span> k
 libXaw                         i386                        1.0.2-<span style="color: #000000;">8.1</span>                              base                                              <span style="color: #000000;">324</span> k
 libXext                        i386                        1.0.1-<span style="color: #000000;">2.1</span>                              base                                               <span style="color: #000000;">35</span> k
 libXmu                         i386                        1.0.2-<span style="color: #000000;">5</span>                                base                                               <span style="color: #000000;">62</span> k
 libXt                          i386                        1.0.2-<span style="color: #000000;">3.2</span>.el5                          base                                              <span style="color: #000000;">173</span> k
&nbsp;
Transaction Summary
===========================================================================================================================================================
Install       <span style="color: #000000;">7</span> Package<span style="color: #7a0874; font-weight: bold;">&#40;</span>s<span style="color: #7a0874; font-weight: bold;">&#41;</span>
Upgrade       <span style="color: #000000;">0</span> Package<span style="color: #7a0874; font-weight: bold;">&#40;</span>s<span style="color: #7a0874; font-weight: bold;">&#41;</span>
&nbsp;
Total <span style="color: #c20cb9; font-weight: bold;">size</span>: <span style="color: #000000;">1.5</span> M
Is this ok <span style="color: #7a0874; font-weight: bold;">&#91;</span>y<span style="color: #000000; font-weight: bold;">/</span>N<span style="color: #7a0874; font-weight: bold;">&#93;</span>: y
...
...
Installed:
  t1lib.i386 <span style="color: #000000;">0</span>:5.1.2-<span style="color: #000000;">1</span>.el5.rf</pre></div></div>

<p><strong>Step 4.</strong> Trying again now to update PHP should go smooth:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ yum update php
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
addons                                                                                                                              <span style="color: #000000; font-weight: bold;">|</span>  <span style="color: #000000;">951</span> B     00:00     
base                                                                                                                                <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #000000;">2.1</span> kB     00:00     
extras                                                                                                                              <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #000000;">2.1</span> kB     00:00     
update                                                                                                                              <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #000000;">1.9</span> kB     00:00     
Setting up Update Process
Resolving Dependencies
--<span style="color: #000000; font-weight: bold;">&gt;</span> Running transaction check
--<span style="color: #000000; font-weight: bold;">&gt;</span> Processing Dependency: php = 5.1.6-<span style="color: #000000;">27</span>.el5 <span style="color: #000000; font-weight: bold;">for</span> package: php-devel
---<span style="color: #000000; font-weight: bold;">&gt;</span> Package php.i386 <span style="color: #000000;">0</span>:5.2.17-<span style="color: #000000;">1</span>.el5 <span style="color: #000000; font-weight: bold;">set</span> to be updated
--<span style="color: #000000; font-weight: bold;">&gt;</span> Processing Dependency: php-common = 5.2.17-<span style="color: #000000;">1</span>.el5 <span style="color: #000000; font-weight: bold;">for</span> package: php
--<span style="color: #000000; font-weight: bold;">&gt;</span> Processing Dependency: php-cli = 5.2.17-<span style="color: #000000;">1</span>.el5 <span style="color: #000000; font-weight: bold;">for</span> package: php
--<span style="color: #000000; font-weight: bold;">&gt;</span> Running transaction check
---<span style="color: #000000; font-weight: bold;">&gt;</span> Package php-cli.i386 <span style="color: #000000;">0</span>:5.2.17-<span style="color: #000000;">1</span>.el5 <span style="color: #000000; font-weight: bold;">set</span> to be updated
--<span style="color: #000000; font-weight: bold;">&gt;</span> Processing Dependency: libevent-<span style="color: #000000;">1.4</span>.so.2 <span style="color: #000000; font-weight: bold;">for</span> package: php-cli
--<span style="color: #000000; font-weight: bold;">&gt;</span> Processing Dependency: php-common = 5.1.6-<span style="color: #000000;">27</span>.el5 <span style="color: #000000; font-weight: bold;">for</span> package: php-gd
--<span style="color: #000000; font-weight: bold;">&gt;</span> Processing Dependency: php-common = 5.1.6-<span style="color: #000000;">27</span>.el5 <span style="color: #000000; font-weight: bold;">for</span> package: php-xml
--<span style="color: #000000; font-weight: bold;">&gt;</span> Processing Dependency: php-common = 5.1.6-<span style="color: #000000;">27</span>.el5 <span style="color: #000000; font-weight: bold;">for</span> package: php-imap
--<span style="color: #000000; font-weight: bold;">&gt;</span> Processing Dependency: php-common = 5.1.6-<span style="color: #000000;">27</span>.el5 <span style="color: #000000; font-weight: bold;">for</span> package: php-pgsql
--<span style="color: #000000; font-weight: bold;">&gt;</span> Processing Dependency: php-common = 5.1.6-<span style="color: #000000;">27</span>.el5 <span style="color: #000000; font-weight: bold;">for</span> package: php-mysql
--<span style="color: #000000; font-weight: bold;">&gt;</span> Processing Dependency: php-common = 5.1.6-<span style="color: #000000;">27</span>.el5 <span style="color: #000000; font-weight: bold;">for</span> package: php-xmlrpc
--<span style="color: #000000; font-weight: bold;">&gt;</span> Processing Dependency: php-common = 5.1.6-<span style="color: #000000;">27</span>.el5 <span style="color: #000000; font-weight: bold;">for</span> package: php-ncurses
--<span style="color: #000000; font-weight: bold;">&gt;</span> Processing Dependency: php-common = 5.1.6-<span style="color: #000000;">27</span>.el5 <span style="color: #000000; font-weight: bold;">for</span> package: php-pdo
--<span style="color: #000000; font-weight: bold;">&gt;</span> Processing Dependency: php-common = 5.1.6-<span style="color: #000000;">27</span>.el5 <span style="color: #000000; font-weight: bold;">for</span> package: php-mbstring
--<span style="color: #000000; font-weight: bold;">&gt;</span> Processing Dependency: php-common = 5.1.6-<span style="color: #000000;">27</span>.el5 <span style="color: #000000; font-weight: bold;">for</span> package: php-odbc
--<span style="color: #000000; font-weight: bold;">&gt;</span> Processing Dependency: php-common = 5.1.6-<span style="color: #000000;">27</span>.el5 <span style="color: #000000; font-weight: bold;">for</span> package: php-snmp
--<span style="color: #000000; font-weight: bold;">&gt;</span> Processing Dependency: php-common = 5.1.6-<span style="color: #000000;">27</span>.el5 <span style="color: #000000; font-weight: bold;">for</span> package: php-ldap
---<span style="color: #000000; font-weight: bold;">&gt;</span> Package php-common.i386 <span style="color: #000000;">0</span>:5.2.17-<span style="color: #000000;">1</span>.el5 <span style="color: #000000; font-weight: bold;">set</span> to be updated
---<span style="color: #000000; font-weight: bold;">&gt;</span> Package php-devel.i386 <span style="color: #000000;">0</span>:5.2.17-<span style="color: #000000;">1</span>.el5 <span style="color: #000000; font-weight: bold;">set</span> to be updated
--<span style="color: #000000; font-weight: bold;">&gt;</span> Running transaction check
---<span style="color: #000000; font-weight: bold;">&gt;</span> Package libevent.i386 <span style="color: #000000;">0</span>:1.4.13-<span style="color: #000000;">1</span> <span style="color: #000000; font-weight: bold;">set</span> to be updated
---<span style="color: #000000; font-weight: bold;">&gt;</span> Package php-gd.i386 <span style="color: #000000;">0</span>:5.2.17-<span style="color: #000000;">1</span>.el5 <span style="color: #000000; font-weight: bold;">set</span> to be updated
---<span style="color: #000000; font-weight: bold;">&gt;</span> Package php-imap.i386 <span style="color: #000000;">0</span>:5.2.17-<span style="color: #000000;">1</span>.el5 <span style="color: #000000; font-weight: bold;">set</span> to be updated
---<span style="color: #000000; font-weight: bold;">&gt;</span> Package php-ldap.i386 <span style="color: #000000;">0</span>:5.2.17-<span style="color: #000000;">1</span>.el5 <span style="color: #000000; font-weight: bold;">set</span> to be updated
---<span style="color: #000000; font-weight: bold;">&gt;</span> Package php-mbstring.i386 <span style="color: #000000;">0</span>:5.2.17-<span style="color: #000000;">1</span>.el5 <span style="color: #000000; font-weight: bold;">set</span> to be updated
---<span style="color: #000000; font-weight: bold;">&gt;</span> Package php-mysql.i386 <span style="color: #000000;">0</span>:5.2.17-<span style="color: #000000;">1</span>.el5 <span style="color: #000000; font-weight: bold;">set</span> to be updated
---<span style="color: #000000; font-weight: bold;">&gt;</span> Package php-ncurses.i386 <span style="color: #000000;">0</span>:5.2.17-<span style="color: #000000;">1</span>.el5 <span style="color: #000000; font-weight: bold;">set</span> to be updated
---<span style="color: #000000; font-weight: bold;">&gt;</span> Package php-odbc.i386 <span style="color: #000000;">0</span>:5.2.17-<span style="color: #000000;">1</span>.el5 <span style="color: #000000; font-weight: bold;">set</span> to be updated
---<span style="color: #000000; font-weight: bold;">&gt;</span> Package php-pdo.i386 <span style="color: #000000;">0</span>:5.2.17-<span style="color: #000000;">1</span>.el5 <span style="color: #000000; font-weight: bold;">set</span> to be updated
---<span style="color: #000000; font-weight: bold;">&gt;</span> Package php-pgsql.i386 <span style="color: #000000;">0</span>:5.2.17-<span style="color: #000000;">1</span>.el5 <span style="color: #000000; font-weight: bold;">set</span> to be updated
---<span style="color: #000000; font-weight: bold;">&gt;</span> Package php-snmp.i386 <span style="color: #000000;">0</span>:5.2.17-<span style="color: #000000;">1</span>.el5 <span style="color: #000000; font-weight: bold;">set</span> to be updated
---<span style="color: #000000; font-weight: bold;">&gt;</span> Package php-xml.i386 <span style="color: #000000;">0</span>:5.2.17-<span style="color: #000000;">1</span>.el5 <span style="color: #000000; font-weight: bold;">set</span> to be updated
---<span style="color: #000000; font-weight: bold;">&gt;</span> Package php-xmlrpc.i386 <span style="color: #000000;">0</span>:5.2.17-<span style="color: #000000;">1</span>.el5 <span style="color: #000000; font-weight: bold;">set</span> to be updated
--<span style="color: #000000; font-weight: bold;">&gt;</span> Finished Dependency Resolution
&nbsp;
Dependencies Resolved
&nbsp;
===========================================================================================================================================================
 Package                                 Arch                            Version                                  Repository                          Size
===========================================================================================================================================================
Updating:
 php                                     i386                            5.2.17-<span style="color: #000000;">1</span>.el5                             CentALT                            <span style="color: #000000;">1.2</span> M
Installing <span style="color: #000000; font-weight: bold;">for</span> dependencies:
 libevent                                i386                            1.4.13-<span style="color: #000000;">1</span>                                 base                               <span style="color: #000000;">112</span> k
Updating <span style="color: #000000; font-weight: bold;">for</span> dependencies:
 php-cli                                 i386                            5.2.17-<span style="color: #000000;">1</span>.el5                             CentALT                            <span style="color: #000000;">2.3</span> M
 php-common                              i386                            5.2.17-<span style="color: #000000;">1</span>.el5                             CentALT                            <span style="color: #000000;">275</span> k
 php-devel                               i386                            5.2.17-<span style="color: #000000;">1</span>.el5                             CentALT                            <span style="color: #000000;">552</span> k
 php-gd                                  i386                            5.2.17-<span style="color: #000000;">1</span>.el5                             CentALT                            <span style="color: #000000;">121</span> k
 php-imap                                i386                            5.2.17-<span style="color: #000000;">1</span>.el5                             CentALT                             <span style="color: #000000;">51</span> k
 php-ldap                                i386                            5.2.17-<span style="color: #000000;">1</span>.el5                             CentALT                             <span style="color: #000000;">33</span> k
 php-mbstring                            i386                            5.2.17-<span style="color: #000000;">1</span>.el5                             CentALT                            <span style="color: #000000;">1.1</span> M
 php-mysql                               i386                            5.2.17-<span style="color: #000000;">1</span>.el5                             CentALT                             <span style="color: #000000;">82</span> k
 php-ncurses                             i386                            5.2.17-<span style="color: #000000;">1</span>.el5                             CentALT                             <span style="color: #000000;">38</span> k
 php-odbc                                i386                            5.2.17-<span style="color: #000000;">1</span>.el5                             CentALT                             <span style="color: #000000;">50</span> k
 php-pdo                                 i386                            5.2.17-<span style="color: #000000;">1</span>.el5                             CentALT                             <span style="color: #000000;">63</span> k
 php-pgsql                               i386                            5.2.17-<span style="color: #000000;">1</span>.el5                             CentALT                             <span style="color: #000000;">67</span> k
 php-snmp                                i386                            5.2.17-<span style="color: #000000;">1</span>.el5                             CentALT                             <span style="color: #000000;">26</span> k
 php-xml                                 i386                            5.2.17-<span style="color: #000000;">1</span>.el5                             CentALT                            <span style="color: #000000;">112</span> k
 php-xmlrpc                              i386                            5.2.17-<span style="color: #000000;">1</span>.el5                             CentALT                             <span style="color: #000000;">54</span> k
&nbsp;
Transaction Summary
===========================================================================================================================================================
Install       <span style="color: #000000;">1</span> Package<span style="color: #7a0874; font-weight: bold;">&#40;</span>s<span style="color: #7a0874; font-weight: bold;">&#41;</span>
Upgrade      <span style="color: #000000;">16</span> Package<span style="color: #7a0874; font-weight: bold;">&#40;</span>s<span style="color: #7a0874; font-weight: bold;">&#41;</span>
&nbsp;
Total download <span style="color: #c20cb9; font-weight: bold;">size</span>: <span style="color: #000000;">6.2</span> M
Is this ok <span style="color: #7a0874; font-weight: bold;">&#91;</span>y<span style="color: #000000; font-weight: bold;">/</span>N<span style="color: #7a0874; font-weight: bold;">&#93;</span>: y
...
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
....
Updated:
  php.i386 <span style="color: #000000;">0</span>:5.2.17-<span style="color: #000000;">1</span>.el5                                                                                              ...
Complete<span style="color: #000000; font-weight: bold;">!</span></pre></div></div>

<p><strong>Step 5. </strong> Verify PHP version and restart httpd service to apply it:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ php <span style="color: #660033;">--version</span>
PHP 5.2.17 <span style="color: #7a0874; font-weight: bold;">&#40;</span>cli<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>built: Jan  <span style="color: #000000;">7</span> <span style="color: #000000;">2011</span> <span style="color: #000000;">10</span>:<span style="color: #000000;">51</span>:<span style="color: #000000;">53</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> 
Copyright <span style="color: #7a0874; font-weight: bold;">&#40;</span>c<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000;">1997</span>-<span style="color: #000000;">2010</span> The PHP Group
Zend Engine v2.2.0, Copyright <span style="color: #7a0874; font-weight: bold;">&#40;</span>c<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000;">1998</span>-<span style="color: #000000;">2010</span> Zend Technologies
&nbsp;
$ <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>httpd restart
Stopping httpd:                                            <span style="color: #7a0874; font-weight: bold;">&#91;</span>  OK  <span style="color: #7a0874; font-weight: bold;">&#93;</span>
Starting httpd:                                            <span style="color: #7a0874; font-weight: bold;">&#91;</span>  OK  <span style="color: #7a0874; font-weight: bold;">&#93;</span></pre></div></div>

<p>Let me know if you face any issues or have query by putting a comment below.</p>
<p>More helpful articles you may like to read:<br />
* <a href="http://linuxadminzone.com/download-compile-install-and-configure-php-5-3-5-in-linux/"> Upgrade PHP to its latest version by compiling source.</a><br />
* <a href="http://linuxadminzone.com/5-steps-to-secure-your-linux-server/"> 5 steps to secure your Linux Server </a><br />
* <a href="http://linuxadminzone.com/upgrade-apachehttpd-to-2-2-17-in-centos-linux/> Upgrade Apache to latest version in CentOS </a><br />
* <a href="http://linuxadminzone.com/ensuring-secure-access-to-production-linux-servers/ > Ensuring secure access to prod Linux hosts </a> </p>
]]></content:encoded>
			<wfw:commentRss>http://linuxadminzone.com/upgrade-update-php-to-latest-5-2-17-in-linux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Missing Dependency: libFLAC.so.4 is needed by package libsndfile</title>
		<link>http://linuxadminzone.com/missing-dependency-libflacso4-is-needed-by-package-libsndfile/</link>
		<comments>http://linuxadminzone.com/missing-dependency-libflacso4-is-needed-by-package-libsndfile/#comments</comments>
		<pubDate>Wed, 18 Jun 2008 06:45:59 +0000</pubDate>
		<dc:creator>jagbir</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mplayer]]></category>
		<category><![CDATA[multimedia]]></category>

		<guid isPermaLink="false">http://linuxadminzone.com/?p=14</guid>
		<description><![CDATA[In mood to listen some music on my CentOS 5 system, I found that mplayer is not installed. I&#8217;ve followed instructions from http://wiki.centos.org/TipsAndTricks/MultimediaOnCentOS but stuck with error: Error: Missing Dependency: libFLAC.so.4 is needed by package libsndfile I have then forcebly removed following: $ rpm -e --nodeps flac-1.1.2-27 and installed: $ wget ftp://rpmfind.net/linux/dag/redhat/el3/en/i386/dag/RPMS/flac-1.1.0-4.rhel3.dag.i386.rpm $ rpm -ivh [...]]]></description>
			<content:encoded><![CDATA[<p>In mood to listen some music on my CentOS 5 system, I found that mplayer is not installed.<br />
I&#8217;ve followed instructions from <a href="http://wiki.centos.org/TipsAndTricks/MultimediaOnCentOS">http://wiki.centos.org/TipsAndTricks/MultimediaOnCentOS</a><br />
but stuck with error:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Error: Missing Dependency: libFLAC.so.4 is needed by package libsndfile</pre></div></div>

<p>I have then forcebly removed following:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ rpm <span style="color: #660033;">-e</span> <span style="color: #660033;">--nodeps</span> flac-1.1.2-<span style="color: #000000;">27</span></pre></div></div>

<p>and installed:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">wget</span> <span style="color: #c20cb9; font-weight: bold;">ftp</span>:<span style="color: #000000; font-weight: bold;">//</span>rpmfind.net<span style="color: #000000; font-weight: bold;">/</span>linux<span style="color: #000000; font-weight: bold;">/</span>dag<span style="color: #000000; font-weight: bold;">/</span>redhat<span style="color: #000000; font-weight: bold;">/</span>el3<span style="color: #000000; font-weight: bold;">/</span>en<span style="color: #000000; font-weight: bold;">/</span>i386<span style="color: #000000; font-weight: bold;">/</span>dag<span style="color: #000000; font-weight: bold;">/</span>RPMS<span style="color: #000000; font-weight: bold;">/</span>flac-1.1.0-<span style="color: #000000;">4</span>.rhel3.dag.i386.rpm
 $ rpm <span style="color: #660033;">-ivh</span> flac-1.1.0-<span style="color: #000000;">4</span>.rhel3.dag.i386.rpm</pre></div></div>

<p>This resolved the error and system is now happily playing music.</p>
<p>You may also like to read:<br />
* <a href="http://linuxadminzone.com/5-steps-to-secure-your-linux-server/"> 5 steps to secure your Linux Server </a><br />
* <a href="http://linuxadminzone.com/ensuring-secure-access-to-production-linux-servers/"> Ensuring secure access to production Linux Servers </a><br />
* <a href="http://linuxadminzone.com/bash-script-to-backup-essential-log-files-of-linux-server/"> Bash script to backup essential log files in Linux </a><br />
* <a href="http://linuxadminzone.com/quickly-change-your-ssh-port-from-default-22-to-something-higher/"> Quickly change your ssh port from defualt 22 to something higher </a><br />
* <a href="http://linuxadminzone.com/ssh-port-forwarding-from-remote-to-local-machine/"> SSH port forwarding from remote to local machine </a><br />
* <a href="http://linuxadminzone.com/save-root-or-user-history-to-check-later/"> Save root or user history to check later </a><br />
* <a href="http://linuxadminzone.com/install-and-configure-denyhost/"> Install and configure denyhost to prevent brute force attacks </a></p>
]]></content:encoded>
			<wfw:commentRss>http://linuxadminzone.com/missing-dependency-libflacso4-is-needed-by-package-libsndfile/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

