Home  >  Article  >  Backend Development  >  How to Resolve \"No Package Available\" Error for PHP mbstring Installation on CentOS 6.2?

How to Resolve \"No Package Available\" Error for PHP mbstring Installation on CentOS 6.2?

Barbara Streisand
Barbara StreisandOriginal
2024-10-18 16:29:03408browse

How to Resolve

Installing PHP mbstring on CentOS 6.2

You recently attempted to install mbstring with PHP on CentOS 6.2 but were met with an error stating that no package was available. This issue can be resolved by modifying the CentOS repository configuration.

To resolve this:

  1. Open the CentOS base repository file: sudo nano /etc/yum.repos.d/CentOS-Base.repo.
  2. Locate the "updates" section and comment out the mirrorlist line by adding a "#" symbol at the beginning of the line.
  3. On a new line, add the following: "baseurl=http://centos.intergenia.de/$releasever/updates/$basearch/".
  4. Save and close the file.
  5. Run this command to install php-mbstring: yum install php-mbstring.

After the installation is complete, you can revert the changes you made to the repository file by uncommenting the mirrorlist line and commenting out the baseurl line.

The above is the detailed content of How to Resolve \"No Package Available\" Error for PHP mbstring 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