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

Barbara Streisand
Release: 2024-10-18 16:29:03
Original
407 people have browsed it

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!

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!