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

  • 相关阅读:
    k8s问题收集
    kubeadm简单安装k8s
    centos7 --kubeadm安装
    K8S各知识点整理
    【转载】dfs序七个经典问题
    ZJOI 2018 一试记
    【模板】高精度
    【科技】扩展欧几里得 + 逆元
    【模板】ISAP最大流
    【模板】最小费用最大流
  • 原文地址:https://www.cnblogs.com/xkus/p/7698087.html
Copyright © 2011-2022 走看看