zoukankan      html  css  js  c++  java
  • centos 安装mbstring(mb_strlen )

    部署onethink框架的时候,检测到mb_strlen未支持,

    在网上检索一大堆教程,最多的就是先检测一下需要安装的安装包

    yum search php

    楼主小白满心欢喜地输入,一对照返回的结果,

    心中千万只草泥马奔腾,命苦,和别人返回的不太一样,

    根本就找不到需要安装的版本,于是楼主看了一下刚才的命令,

    大胆推测一下,既然可以通过search php找到php相关的,

    那么应该可以通过search php-mbstring更加精确地找到安装包的版本

    于是在命令窗口输入:

    yum search php-mbstring

    返回:

    Loaded plugins: fastestmirror, refresh-packagekit, security
    Loading mirror speeds from cached hostfile
     * base: mirrors.tuna.tsinghua.edu.cn
     * epel: mirrors.tuna.tsinghua.edu.cn
     * extras: mirrors.tuna.tsinghua.edu.cn
     * updates: mirrors.tuna.tsinghua.edu.cn
     * webtatic: sp.repo.webtatic.com
    ========================== N/S Matched: php-mbstring ===========================
    php-mbstring.x86_64 : A module for PHP applications which need multi-byte string
                        : handling
    老天果然不欺负老实人,于是就继续输入安装命令:

    yum install php-mbstring.x86_64

    果然,人还是不能高兴得太快,有错误~~~

    Error: php55w-common conflicts with php-common-5.3.3-49.el6.x86_64
     You could try using --skip-broken to work around the problem
    不过这个看的时候需要针对不同的机器,这个是因为本人之前有另外一个php版本所致,

    之前安装gd库的时候就解决过了,故照样画葫芦:

    yum install php55w-mbstring.x86_64

    在php加上本版号,即可。

  • 相关阅读:
    [ios]单例
    [ios]添加第三方类库造成的linker command failed with exit code 1 (use v to see invocation)的错误调试 【转】
    [ios] Core Animation之简单使用CALayer 【转】
    [ios]多线程(基础)
    [ios] IOS CoreText.framework 【转】
    [ios]框架
    [ios]设计模式MVC模式【转】
    [oc] 代码戒律:ObjectiveC最佳实践 【推荐】【转】
    [ios]NSLock锁
    [ios]kvc
  • 原文地址:https://www.cnblogs.com/gxkB/p/7028167.html
Copyright © 2011-2022 走看看