Solved

Installing php-mbstring on CentOS 6

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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

816 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now