Solved

Installing php-mbstring on CentOS 6

Posted on 2011-09-15
3
1,528 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

617 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