我想安装 mbstring ..(我在我的服务器上使用 64bit centos 5.8 和 cpanel)
有人可以帮助我吗?我应该怎么做,除了easyapache(我害怕做错事;或者删除任何扩展名或php.ini细节)
我试过这些;但没有人为我工作:
a)我试过这个链接......
如何在 CentOS 6.2 上安装 PHP mbstring
(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
ORsudo yum install php-mbstring.html?hl=com&cs=php-mbstring:PR:0:0:0:0:0
等....
我总是得到相同的答案:无事可做
如果我写:
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
:加载的插件:fastestmirror,安全设置本地包进程检查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