php-mysql compile error

Discussion in 'General' started by msesxi, Jul 23, 2013.

  1. msesxi

    msesxi New Member

    Hi,
    im trying to roll back to php 5.3 or 5.2 but during compile i have this err:

    configure: error: Cannot find libmysqlclient under /usr.
    Note that the MySQL client library is not bundled anymore!
    **ERROR** Could not configure PHP build
  2. NiteWave

    NiteWave Administrator

    may need re-compile php 5.2 and 5.3 with slightly different parameter.

    please refer:
    http://php.net/manual/en/mysql.installation.php

    for example, if compiling lsphp 5.4 with --with-mysql,
    you need compile lsphp 5.3 with --with-mysql=mysqlnd
  3. msesxi

    msesxi New Member

    Hi,
    should i use also for pdo and mysqli:
    '--with-pdo-mysql' should be '--with-pdo-mysql=mysqlnd' ?
    '--with-mysqli=mysqlnd' should be '--with-mysqli=mysqlnd' ?

    Regards,
    Last edited: Jul 23, 2013
  4. webizen

    webizen New Member

    Yes, that's for php 5.3 with mysqlnd. mysqlnd is default for all the MySQL extensions in php 5.4 so no need to specify.

    http://www.php.net/manual/en/mysqlnd.install.php
  5. msesxi

    msesxi New Member

    which one is correct:
    '--with-mysqli=mysqlnd' or '--with-mysqli=mysqlind'
  6. webizen

    webizen New Member

    There is no 'mysqlind'. you need to use '--with-mysqli=mysqlnd'

Share This Page