我想安装mbstring .. (我在服务器上使用64位centos 5.8和cpanel)
有人可以帮助我;我应该怎么做,除了 easyapache (我害怕做错事;或删除任何扩展名或php.ini细节) 我试过这些;但没有人适合我: A)
我试过这个链接......
How to install PHP mbstring on CentOS 6.2
(sudo nano /etc/yum.repos.d/CentOS-Base.repo
等。)
我也安装了EPEL存储库,并通过以下几行获得确认:
/etc/yum.repos.d/epel.repo
/etc/yum.repos.d/epel-testing.repo
/etc/yum.repos.d/remi.repo
但......不能正常工作......
b)我从(第8行)下载rpm文件: http://www.rpmseek.com/rpm-pl/php-mbstring.html?hl=com&cs=php-mbstring:PR:0:0:0:0:0
并尝试安装
via sudo yum install php-mbstring
或sudo yum install php-mbstring.html?hl=com&cs=php-mbstring:PR:0:0:0:0:0
等......
我alwalys得到了相同的答案:无事可做
如果我写:
sudo rpm –ivh php-mbstring-5.1.6-39.el5_8.x86_64.rpm
我收到此错误:
RPM version 4.4.2.3
Copyright (C) 1998-2002 - Red Hat, Inc.
This program may be freely redistributed under the terms of the GNU GPL
Usage: rpm [-aKfgpWHqV] [-aKfgpWHqVcdils] [-aKfgpWHqVcdilsaKfgpWHqV] [-aKfgpWHqVcdilsaKfgpWHqV] [-aKfgpWHqVcdilsaKfgpWHqV] [-aKfgpWHqVcdilsaKfgpWHqVK] [-aKfgpWHqVcdilsaKfgpWHqVK] [-aKfgpWHqVcdilsaKfgpWHqVKi] [-aKfgpWHqVcdilsaKfgpWHqVKiv] [-aKfgpWHqVcdilsaKfgpWHqVKiv] [-aKfgpWHqVcdilsaKfgpWHqVKiv?] [-a|--all] [-f|--file] [-g|--group]
[-p|--package] [-W|--ftswalk] [--pkgid] [--hdrid] [--fileid]
[--specfile] [--triggeredby] [--whatrequires] [--whatprovides]
[--nomanifest] [-c|--configfiles] [-d|--docfiles] [--dump] [-l|--list]
[--queryformat=QUERYFORMAT] [-s|--state] [--nomd5] [--nofiles]
[--nodeps] [--noscript] [--comfollow] [--logical] [--nochdir]
[--nostat] [--physical] [--seedot] [--xdev] [--whiteout]
[--addsign] [-K|--checksig] [--delsign] [--import] [--resign]
[--nodigest] [--nosignature] [--initdb] [--rebuilddb] [--aid]
[--allfiles] [--allmatches] [--badreloc] [-e|--erase <package>+]
[--excludedocs] [--excludepath=<path>] [--fileconflicts] [--force]
[-F|--freshen <packagefile>+] [-h|--hash] [--ignorearch] [--ignoreos]
[--ignoresize] [-i|--install] [--justdb] [--nodeps] [--nomd5]
[--nocontexts] [--noorder] [--nosuggest] [--noscripts]
[--notriggers] [--oldpackage] [--percent] [--prefix=<dir>]
[--relocate=<old>=<new>] [--repackage] [--replacefiles]
[--replacepkgs] [--test] [-U|--upgrade <packagefile>+] [--quiet]
[-D|--define 'MACRO EXPR'] [-E|--eval 'EXPR'] [--macros=<FILE:...>]
[--nodigest] [--nosignature] [--rcfile=<FILE:...>] [-r|--root ROOT]
[--querytags] [--showrc] [--quiet] [-v|--verbose] [--version]
[-?|--help] [--usage] [--scripts] [--setperms] [--setugids]
[--conflicts] [--obsoletes] [--provides] [--requires] [--info]
[--changelog] [--xml] [--triggers] [--last] [--dupes]
[--filesbypkg] [--fileclass] [--filecolor] [--filecontext]
[--fscontext] [--recontext] [--fileprovide] [--filerequire]
[--redhatprovides] [--redhatrequires] [--buildpolicy=<policy>]
[--with=<option>] [--without=<option>]
如果我写yum localinstall php-mbstring-5.1.6-39.el5_8.x86_64.rpm
:
加载的插件:rapidmirror,安全性
设置本地包过程
检查php-mbstring-5.1.6-39.el5_8.x86_64.rpm:php-mbstring-5.1.6-39.el5_8.x86_64
什么都不做
如果我写rpm -ivh php-mbstring-5.1.6-39.el5_8.x86_64.rpm
:
错误:失败的依赖项:
php-mbstring-5.1.6-39.el5_8.x86_64需要php-common = 5.1.6-39.el5_8