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加上本版号,即可。

  • 相关阅读:
    insertAfter()
    Unity3D之协程(Coroutines & Yield )
    C#中 As 和强制转换的总结
    Mesh系列文章
    在Unity3D 4中关联Visual Studio 2012来编写C#
    Unity3D安装多版本
    Time.deltaTime 增量时间
    Unity3D中Update和Lateupdate的区别
    Making raycast ignore multiple layers
    Unity3d中SendMessage 用法简单笔记
  • 原文地址:https://www.cnblogs.com/gxkB/p/7028167.html
Copyright © 2011-2022 走看看