Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:99743 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 62420 invoked from network); 4 Jul 2017 17:09:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Jul 2017 17:09:29 -0000 Authentication-Results: pb1.pair.com smtp.mail=johannes@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=johannes@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 84.19.169.162 as permitted sender) X-PHP-List-Original-Sender: johannes@php.net X-Host-Fingerprint: 84.19.169.162 mail.experimentalworks.net Received: from [84.19.169.162] ([84.19.169.162:40970] helo=mail.experimentalworks.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 39/02-15131-8CBCB595 for ; Tue, 04 Jul 2017 13:09:29 -0400 Received: from kuechenschabe.fritz.box (ppp-46-244-177-42.dynamic.mnet-online.de [46.244.177.42]) by mail.experimentalworks.net (Postfix) with ESMTPSA id 10BE85DF50; Tue, 4 Jul 2017 19:09:26 +0200 (CEST) Message-ID: <1499188165.19635.78.camel@php.net> To: Guillermo Cespedes Cc: internals@lists.php.net Date: Tue, 04 Jul 2017 19:09:25 +0200 In-Reply-To: <935648B2-7CDD-444A-BC50-D1174F4A3B9A@grupolfmedia.com> References: <6FD88AF7-5F5B-4684-B77B-21D17EA08B47@grupolfmedia.com> <1499184639.19635.70.camel@php.net> <935648B2-7CDD-444A-BC50-D1174F4A3B9A@grupolfmedia.com> Organization: php.net Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.18.5.2-0ubuntu3.2 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] /usr/bin/ld: cannot find -lmysqlclient | error: wrong mysql library version or lib not found From: johannes@php.net (Johannes =?ISO-8859-1?Q?Schl=FCter?=) On Di, 2017-07-04 at 13:39 -0300, Guillermo Cespedes wrote: > See in: https://lists.launchpad.net/maria-discuss/msg04668.html Thanks, the --version output is of course unfortunate, as I can't distinguish in a good way between MariaDB and a future MySQL 10, except by guessing from program name ... anyways I'll see what I can do. > I also tried the following: > > --enable-mysqlnd \ > --with-mysqli=mysqlnd \ > --with-pdo-mysql=mysqlnd \ > --with-mysql-sock=/var/run/mysqld/mysqld.sock > > It returns an error that can not find mysql_config Works nicely for my:system, which doesn't have mysql_config in PATH: $ mysql_config The program 'mysql_config' is currently not installed. You can install it by typing: sudo apt install libmysqlclient-dev $ sapi/cli/php -v PHP 7.1.8-dev (cli) (built: Jul  4 2017 19:05:05) ( NTS ) Copyright (c) 1997-2017 The PHP Group Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies $ sapi/cli/php -i | grep Configure Configure Command =>  '../../php-7.1/configure'  '--enable-mysqlnd' ' --with-mysqli=mysqlnd' '--with-pdo-mysql=mysqlnd' '--with-mysql- sock=/var/run/mysqld/mysqld.sock' Maybe you have old autoconf cache files lying around or such? Can you try on a clean tree? If this doesn't help please provide the config.log file. johannes