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

  • 相关阅读:
    大道至简第一章和java理论学时第一节。感受。
    jQuery基础
    JavaScript对象及初始面向对象
    使用JavaScript操作DOM
    JavaScript操作BOM对象
    JavaScript基础
    实体之间的对应关系
    MySQL常用函数
    SQL Server中分离附加数据及生成SQL脚本
    C#中子类构造函数
  • 原文地址:https://www.cnblogs.com/xkus/p/7698087.html
Copyright © 2011-2022 走看看