Home  >  Article  >  Backend Development  >  How to Resolve Unavailable php-mbstring Package Issue during Installation on CentOS 6.2?

How to Resolve Unavailable php-mbstring Package Issue during Installation on CentOS 6.2?

Mary-Kate Olsen
Mary-Kate OlsenOriginal
2024-10-18 16:27:03751browse

How to Resolve Unavailable php-mbstring Package Issue during Installation on CentOS 6.2?

Installing PHP mbstring on CentOS 6.2

Encountering an unavailable php-mbstring package during the installation process is a widespread issue. To resolve this, follow these specific steps:

  1. Open CentOS-Base.repo using the nano editor:
sudo nano /etc/yum.repos.d/CentOS-Base.repo
  1. Locate the section labeled "updates" in the file.
  2. Comment out the existing mirrorlist line by adding a "#" character at the beginning.
  3. Add a new line below the mirrorlist line:
baseurl=http://centos.intergenia.de/$releasever/updates/$basearch/
  1. Save and close the CentOS-Base.repo file.
  2. Attempt to install php-mbstring again:
yum install php-mbstring

Once the installation is complete, you can revert the changes you made in step 3 by uncommenting the mirrorlist line and commenting out the baseurl line.

The above is the detailed content of How to Resolve Unavailable php-mbstring Package Issue during Installation on CentOS 6.2?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn