Solved

Installing php-mbstring on CentOS 6

Posted on 2011-09-15
3
1,457 Views
Last Modified: 2013-12-13
I am trying to install the mbstring PHP extension however I have run into a problem.

I use CentOS 6, 64 Bit.
[root]#yum install php-mbstring
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * epel: mirror.utexas.edu
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-mbstring.x86_64 0:5.3.2-6.el6_0.1 set to be updated
--> Processing Dependency: php-common = 5.3.2-6.el6_0.1 for package: php-mbstring-5.3.2-6.el6_0.1.x86_64
--> Finished Dependency Resolution
Error: Package: php-mbstring-5.3.2-6.el6_0.1.x86_64 (updates)
           Requires: php-common = 5.3.2-6.el6_0.1
           Installed: php-common-5.3.8-1.el6.remi.x86_64 (@remi)
               php-common = 5.3.8-1.el6.remi
           Available: php-common-5.3.2-6.el6.x86_64 (base)
               php-common = 5.3.2-6.el6
           Available: php-common-5.3.2-6.el6_0.1.x86_64 (updates)
               php-common = 5.3.2-6.el6_0.1
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
[root]# 
[root]# 
[root]# 
[root]# yum update php-common 
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * epel: mirror.utexas.edu
Setting up Update Process
No Packages marked for Update

Open in new window

0
Comment
Question by:hankknight
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 4

Expert Comment

by:h4hardy
ID: 36542065
you could install it using one of these rpms:

ftp://fr2.rpmfind.net/linux/PLD/dists/ra/PLD/i386/PLD/RPMS/php-mbstring-4.2.3-8.i386.rpm

in case you weren't sure (sorry if you were):

wget ftp://fr2.rpmfind.net/linux/PLD/dists/ra/PLD/i386/PLD/RPMS/php-mbstring-4.2.3-8.i386.rpm
rpm -ivh php-mbstring-4.2.3-8.i386.rpm
0
 
LVL 16

Author Comment

by:hankknight
ID: 36542209
Unfortunately that rpm is no longer at that address:

ftp://fr2.rpmfind.net/linux/PLD/dists/ra/PLD/i386/PLD/RPMS/php-mbstring-4.2.3-8.i386.rpm

Error: "No such directory or file"
0
 
LVL 6

Accepted Solution

by:
mohansahu earned 500 total points
ID: 36548498
Hi,
follow the below steps for enabling or installing php-mbstring.

1. rpm -qa | grep php

2.  rpm --import http://dev.centos.org/centos/RPM-GPG-KEY-CentOS-testing
3.  cd /etc/yum.repos.d
4.  wget http://dev.centos.org/centos/5/CentOS-Testing.repo
5.  yum --disablerepo=* --enablerepo=c5-testing update php

MS


0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
Fine Tune your automatic Updates for Ubuntu / Debian
The viewer will learn how to dynamically set the form action using jQuery.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question