zoukankan      html  css  js  c++  java
  • PHP报错configure error Cannot find libmysqlclient under usr

    编译PHP报错configure error Cannot find libmysqlclient under usr的解决方法
    (问题产生,mysql是yum安装的,libmysqlclient* 一般存放在 /usr/lib64/mysql/)

    find / -name "libmysqlclient"

    cp /usr/lib64/mysql/libmysqlclient* /usrl/lib/

    ./configure
    --prefix=/usr/local/php56
    --with-config-file-path=/usr/local/php56/etc
    --with-mysql=/usr
    --with-mysqli=/usr/bin/mysql_config
    --with-mysql-sock=/var/lib/mysql/mysql.sock
    --with-pdo-mysql=/usr
    --with-gd=/usr/local/libgd
    --with-png-dir=/usr/local/libpng
    --with-jpeg-dir=/usr/local/jpeg
    --with-freetype-dir=/usr/local/freetype
    --with-xpm-dir=/usr/lib64
    --with-vpx-dir=/usr/local/libvpx/
    --with-zlib-dir=/usr/local/zlib
    --with-t1lib=/usr/local/t1lib
    --with-iconv
    --enable-libxml
    --enable-xml
    --enable-bcmath
    --enable-shmop
    --enable-sysvsem
    --enable-inline-optimization
    --enable-opcache
    --enable-mbregex
    --enable-fpm
    --enable-mbstring
    --enable-ftp
    --enable-gd-native-ttf
    --with-openssl
    --enable-pcntl
    --enable-sockets
    --with-xmlrpc
    --enable-zip
    --enable-soap
    --without-pear
    --with-gettext
    --enable-session
    --with-mcrypt
    --with-curl
    --enable-ctype
    --enable-mysqlnd

  • 相关阅读:
    HDU5000 (DP + 规律)
    HDU5127 神坑题---vector 、 list 、 deque 的用法区别
    HDU5128 细心、细心、细心
    dij单源最短路纯模板
    POJ 1236 SCC+缩点
    SCC(强连通分量)
    用树状数组求数组内的逆序对数
    HDU 1811 并查集
    大数模板,只要不是手敲,非常好用
    市赛
  • 原文地址:https://www.cnblogs.com/xkus/p/7698087.html
Copyright © 2011-2022 走看看