Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to install mbstring in PHP. I used these commands in ssh:

sudo yum install php-mbstring

I tried all the below repository, but I always get:

No package php-mbstring available.

sudo nano /etc/yum.repos.d/CentOS-Base.repo

share|improve this question

migrated from Dec 15 '12 at 19:35

This question came from our site for professional and enthusiast programmers.

Possible duplicate: How to install PHP mbstring on CentOS 6.2 – cmbuckley Dec 15 '12 at 18:46
hey cbuckley,, in that question it provides$releasever/updates/$basearch but it dont work for me – Suraj Kumar Dec 15 '12 at 19:09

Open up a terminal (# - 'shorthand' for terminal) and run these commands:

# cd ~
# wget
# rpm –ivh php-mbstring-5.3.3-3.el6_2.8.i686.rpm

or use for 64-bit, depending on your system.

If you use a desktop interface (most likely), you can just double click on the .rpm file in the file browser to install, instead of using terminal. This is kind of the 'old' way to install things. Before yum simplified things.

Please note that you need to run as root. The best way to do so is to type sudo before each command. Example:

sudo rpm –ivh php-mbstring-5.3.3-3.el6_2.8.i686.rpm
share|improve this answer
where sould i use # wget… – Suraj Kumar Dec 15 '12 at 19:10

You must log in to answer this question.