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

Mary-Kate Olsen
Release: 2024-10-18 16:27:03
Original
809 people have browsed it

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
Copy after login
  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/
Copy after login
  1. Save and close the CentOS-Base.repo file.
  2. Attempt to install php-mbstring again:
yum install php-mbstring
Copy after login

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!

source:php
Statement of this Website
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
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template