Installation missing of php-devel php-mbstring on Redhat 7
# yum install php-devel php-mbstring
No package php-devel available.
No package php-mbstring available.
Solution:-
# subscription-manager repos –enable=rhel-7-server-optional-rpms
[root@mail /]# yum install php-devel php-mbstring
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-
: manager
Resolving Dependencies
–> Running transaction check
—> Package php-devel.x86_64 0:5.4.16-45.el7 will be installed
–> Processing Dependency: pcre-devel(x86-64) for package: php-devel-5.4.16-45.el7.x86_64
—> Package php-mbstring.x86_64 0:5.4.16-45.el7 will be installed
–> Running transaction check
—> Package pcre-devel.x86_64 0:8.32-17.el7 will be installed
–> Finished Dependency Resolution
Dependencies Resolved
==============================================================================
Package Arch Version Repository Size
==============================================================================
Installing:
php-devel x86_64 5.4.16-45.el7 rhel-7-server-optional-rpms 602 k
php-mbstring x86_64 5.4.16-45.el7 rhel-7-server-optional-rpms 505 k
Installing for dependencies:
pcre-devel x86_64 8.32-17.el7 rhel-7-server-rpms 480 k
Transaction Summary
==============================================================================
Install 2 Packages (+1 Dependent package)
Total download size: 1.5 M
Installed size: 6.7 M
Is this ok [y/d/N]: y
Downloading packages:
(1/3): php-mbstring-5.4.16-45.el7.x86_64.rpm | 505 kB 00:06
(2/3): php-devel-5.4.16-45.el7.x86_64.rpm | 602 kB 00:07
(3/3): pcre-devel-8.32-17.el7.x86_64.rpm | 480 kB 00:07
——————————————————————————
Total 216 kB/s | 1.5 MB 00:07
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : pcre-devel-8.32-17.el7.x86_64 1/3
Installing : php-devel-5.4.16-45.el7.x86_64 2/3
Installing : php-mbstring-5.4.16-45.el7.x86_64 3/3
Verifying : php-mbstring-5.4.16-45.el7.x86_64 1/3
Verifying : php-devel-5.4.16-45.el7.x86_64 2/3
Verifying : pcre-devel-8.32-17.el7.x86_64 3/3
Installed:
php-devel.x86_64 0:5.4.16-45.el7 php-mbstring.x86_64 0:5.4.16-45.el7
Dependency Installed:
pcre-devel.x86_64 0:8.32-17.el7
Complete!
[root@mail /]#