Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:99741 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 58525 invoked from network); 4 Jul 2017 16:40:02 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Jul 2017 16:40:02 -0000 Authentication-Results: pb1.pair.com smtp.mail=gcespedes@grupolfmedia.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=gcespedes@grupolfmedia.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain grupolfmedia.com from 135.84.80.217 cause and error) X-PHP-List-Original-Sender: gcespedes@grupolfmedia.com X-Host-Fingerprint: 135.84.80.217 sender-of-o52.zoho.com Received: from [135.84.80.217] ([135.84.80.217:21433] helo=sender-of-o52.zoho.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C2/51-15131-ED4CB595 for ; Tue, 04 Jul 2017 12:39:59 -0400 Received: from [192.168.1.104] (r167-58-20-81.dialup.adsl.anteldata.net.uy [167.58.20.81]) by mx.zohomail.com with SMTPS id 1499186392225759.0117331076037; Tue, 4 Jul 2017 09:39:52 -0700 (PDT) Message-ID: <935648B2-7CDD-444A-BC50-D1174F4A3B9A@grupolfmedia.com> Content-Type: multipart/alternative; boundary="Apple-Mail=_32816A13-1512-4115-85FD-9F32D7D57683" Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Date: Tue, 4 Jul 2017 13:39:48 -0300 In-Reply-To: <1499184639.19635.70.camel@php.net> Cc: internals@lists.php.net To: =?utf-8?Q?Johannes_Schl=C3=BCter?= References: <6FD88AF7-5F5B-4684-B77B-21D17EA08B47@grupolfmedia.com> <1499184639.19635.70.camel@php.net> X-Mailer: Apple Mail (2.3273) X-ZohoMailClient: External Subject: Re: [PHP-DEV] /usr/bin/ld: cannot find -lmysqlclient | error: wrong mysql library version or lib not found From: gcespedes@grupolfmedia.com (Guillermo Cespedes) --Apple-Mail=_32816A13-1512-4115-85FD-9F32D7D57683 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi, Thanks for the reply # /usr/local/mysql/bin/mariadb_config # /usr/local/mysql/bin/mysql_config=20 # my_print_defaults --mysqld See in: https://lists.launchpad.net/maria-discuss/msg04668.html = I also tried the following: --enable-mysqlnd \ --with-mysqli=3Dmysqlnd \ --with-pdo-mysql=3Dmysqlnd \ --with-mysql-sock=3D/var/run/mysqld/mysqld.sock It returns an error that can not find mysql_config In an hour I'll try: --enable-mysqlnd=3Dshared \ --with-mysqli=3Dshared,mysqlnd \ --with-pdo-mysql=3Dshared,mysqlnd \ --with-mysql-sock=3D/var/run/mysqld/mysqld.sock As indicated here: = https://lists.launchpad.net/maria-discuss/msg04674.html = Regards, > El 4 jul. 2017, a las 13:10, Johannes Schl=C3=BCter = escribi=C3=B3: >=20 > Hi, >=20 > On Mo, 2017-07-03 at 19:17 -0300, Guillermo Cespedes wrote: >> Hi, >>=20 >> I am compiling MariaDB 10.2.6 and PHP 7.1.6 >>=20 >> I'm trying it on Debian 8.8 32x / x64 on DigitalOcean >>=20 >> See the script: >> https://gist.github.com/dertin/8de14e458dd4f0d3acb5f0deff120951 >>=20 >> But I have problems compiling PHP with MariaDB >>=20 >> # grep 'mysql=E2=80=99 config.log >=20 > [...] >=20 >> configure:52749: checking for mysql_set_server_option in >> -lmysqlclient >=20 > The cause for the behavior seems to be that the mysqli/config.m4 file > checks your the information provided by the "config" program you > passed, but for feature check uses the hard coded name of libmysql. > Maybe this could be refactored to a simpler version check and > discontinue support for versions before 5.0 ... if you send me the > output from=20 > mariadb_config --libs > and > mariadb_config --version > I can see if I can cook up a patch. >=20 >=20 > That said: Preferred way is to build using mysqlnd instead of = libmysql, > so just use --with-mysql and --with-pdo-mysql without path (or, in > case you like it explicit, =3Dmysqlnd for both) that's the client = library > optimized for PHP. > See http://php.net/manual/en/mysqlinfo.library.choosing.php >=20 >=20 > Also mind that MariaDB is a downstream fork of MySQL and both systems > are diverting and likely will divert more over time. Experience can > vary. >=20 > johannes >=20 > Note: I'm a member of Oracle's MySQL engineering team. Personal > opinions. No promises from Oracle. --Apple-Mail=_32816A13-1512-4115-85FD-9F32D7D57683--