phpでマルチバイト文字を使うための必須モジュールphp-mbstringをRed Hat Enterprise Linux 7にインストールしました。
php-mbstringはrhel-7-server-optional-rpmsに含まれていました。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
[root@rhel7 ~]# yum --enablerepo=rhel-7-server-optional-rpms search php-mbstring Loaded plugins: fastestmirror, product-id, search-disabled-repos, subscription-manager Loading mirror speeds from cached hostfile ============================================= N/S matched: php-mbstring ============================================= php-mbstring.x86_64 : A module for PHP applications which need multi-byte string handling Name and summary matches only, use "search all" for everything. [root@rhel7 ~]# yum --enablerepo=rhel-7-server-optional-rpms info php-mbstring Loaded plugins: fastestmirror, product-id, search-disabled-repos, subscription-manager Loading mirror speeds from cached hostfile Available Packages Name : php-mbstring Arch : x86_64 Version : 5.4.16 Release : 36.el7_1 Size : 503 k Repo : rhel-7-server-optional-rpms/7Server/x86_64 Summary : A module for PHP applications which need multi-byte string handling URL : http://www.php.net/ License : PHP and LGPLv2 and BSD and OpenLDAP Description : The php-mbstring package contains a dynamic shared object that will add : support for multi-byte string handling to PHP. |
インストールします。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
[root@rhel7 ~]# yum --enablerepo=rhel-7-server-optional-rpms -y install php-mbstring Loaded plugins: fastestmirror, product-id, search-disabled-repos, subscription-manager Loading mirror speeds from cached hostfile Resolving Dependencies --> Running transaction check ---> Package php-mbstring.x86_64 0:5.4.16-36.el7_1 will be installed --> Processing Dependency: php-common(x86-64) = 5.4.16-36.el7_1 for package: php-mbstring-5.4.16-36.el7_1.x86_64 --> Running transaction check ---> Package php-common.x86_64 0:5.4.16-36.el7_1 will be installed --> Processing Dependency: libzip.so.2()(64bit) for package: php-common-5.4.16-36.el7_1.x86_64 --> Running transaction check ---> Package libzip.x86_64 0:0.10.1-8.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ===================================================================================================================== Package Arch Version Repository Size ===================================================================================================================== Installing: php-mbstring x86_64 5.4.16-36.el7_1 rhel-7-server-optional-rpms 503 k Installing for dependencies: libzip x86_64 0.10.1-8.el7 rhel-7-server-eus-rpms 49 k php-common x86_64 5.4.16-36.el7_1 rhel-7-server-eus-rpms 563 k Transaction Summary ===================================================================================================================== Install 1 Package (+2 Dependent packages) Total download size: 1.1 M Installed size: 5.2 M Downloading packages: (1/3): libzip-0.10.1-8.el7.x86_64.rpm | 49 kB 00:00:00 (2/3): php-mbstring-5.4.16-36.el7_1.x86_64.rpm | 503 kB 00:00:01 (3/3): php-common-5.4.16-36.el7_1.x86_64.rpm | 563 kB 00:00:01 --------------------------------------------------------------------------------------------------------------------- Total 663 kB/s | 1.1 MB 00:00:01 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : libzip-0.10.1-8.el7.x86_64 1/3 Installing : php-common-5.4.16-36.el7_1.x86_64 2/3 Installing : php-mbstring-5.4.16-36.el7_1.x86_64 3/3 Verifying : php-mbstring-5.4.16-36.el7_1.x86_64 1/3 Verifying : libzip-0.10.1-8.el7.x86_64 2/3 Verifying : php-common-5.4.16-36.el7_1.x86_64 3/3 Installed: php-mbstring.x86_64 0:5.4.16-36.el7_1 Dependency Installed: libzip.x86_64 0:0.10.1-8.el7 php-common.x86_64 0:5.4.16-36.el7_1 Complete! |