php-mysql compile error

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

  1. msesxi

    msesxi Member

    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:

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

    msesxi Member

    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' ?

    Last edited: Jul 23, 2013
  4. webizen

    webizen Well-Known 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.
  5. msesxi

    msesxi Member

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

    webizen Well-Known Member

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

Share This Page