Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:99746 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 71474 invoked from network); 4 Jul 2017 19:07:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Jul 2017 19:07:24 -0000 Authentication-Results: pb1.pair.com header.from=gcespedes@grupolfmedia.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=gcespedes@grupolfmedia.com; spf=permerror; 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:21374] helo=sender-of-o52.zoho.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6A/33-15131-967EB595 for ; Tue, 04 Jul 2017 15:07:22 -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 1499195234078403.5348139026089; Tue, 4 Jul 2017 12:07:14 -0700 (PDT) Message-ID: Content-Type: multipart/alternative; boundary="Apple-Mail=_C50BEB97-438F-48FA-B3E7-CD0DC23549A8" Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Date: Tue, 4 Jul 2017 16:07:10 -0300 In-Reply-To: <1499188165.19635.78.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> <935648B2-7CDD-444A-BC50-D1174F4A3B9A@grupolfmedia.com> <1499188165.19635.78.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=_C50BEB97-438F-48FA-B3E7-CD0DC23549A8 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi, Johannes - I have cleaned the build directory. - "source /etc/profile" globally - set the values with "shared, mysqlnd=E2=80=9D With the last 3 changes, I have managed to compile PHP. See diff: = https://gist.github.com/dertin/8de14e458dd4f0d3acb5f0deff120951/revisions?= diff=3Dsplit = I'll try without the shared library. I do not understand much that it is better, to use or not to use shared = libraries mysqlnd VS shared,mysqlnd I will continue to fix and improve the script. # /usr/local/php7/bin/php -v PHP 7.1.6 (cli) (built: Jul 4 2017 18:43:51) ( NTS ) Copyright (c) 1997-2017 The PHP Group Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies # /usr/local/php7/bin/php -i | grep Configure Configure Command =3D> './configure' '--prefix=3D/usr/local/php7' = '--enable-huge-code-pages' = '--with-config-file-scan-dir=3D/usr/local/php7/etc/conf.d' = '--without-pear' '--enable-bcmath' '--with-bz2' '--enable-calendar' = '--enable-intl' '--enable-exif' '--enable-dba' '--enable-ftp' = '--with-gettext' '--with-gd' '--with-jpeg-dir' '--enable-mbstring' = '--with-mcrypt' '--with-mhash' '--enable-mysqlnd=3Dshared' = '--with-mysqli=3Dshared,mysqlnd' '--with-pdo-mysql=3Dshared,mysqlnd' = '--with-mysql-sock=3D/var/run/mysqld/mysqld.sock' '--with-openssl' = '--enable-pcntl' '--with-pspell' '--enable-shmop' '--enable-soap' = '--enable-sockets' '--enable-sysvmsg' '--enable-sysvsem' = '--enable-sysvshm' '--enable-wddx' '--with-zlib' '--enable-zip' = '--with-readline' '--with-curl' '--enable-simplexml' = '--enable-xmlreader' '--enable-xmlwriter' '--enable-fpm' = '--with-fpm-user=3Dwww-data' '--with-fpm-group=3Dwww-data=E2=80=99 Thanks for the help. > El 4 jul. 2017, a las 14:09, Johannes Schl=C3=BCter = escribi=C3=B3: >=20 > On Di, 2017-07-04 at 13:39 -0300, Guillermo Cespedes wrote: >> See in: https://lists.launchpad.net/maria-discuss/msg04668.html >=20 > 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. >=20 >> I also tried the following: >>=20 >> --enable-mysqlnd \ >> --with-mysqli=3Dmysqlnd \ >> --with-pdo-mysql=3Dmysqlnd \ >> --with-mysql-sock=3D/var/run/mysqld/mysqld.sock >>=20 >> It returns an error that can not find mysql_config >=20 > Works nicely for my:system, which doesn't have mysql_config in PATH: >=20 > $ mysql_config > The program 'mysql_config' is currently not installed. You can install > it by typing: > sudo apt install libmysqlclient-dev >=20 >=20 >=20 > $ 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 >=20 > $ sapi/cli/php -i | grep Configure > Configure Command =3D> '../../php-7.1/configure' '--enable-mysqlnd' = ' > --with-mysqli=3Dmysqlnd' '--with-pdo-mysql=3Dmysqlnd' '--with-mysql- > sock=3D/var/run/mysqld/mysqld.sock' >=20 > 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. >=20 > johannes >=20 --Apple-Mail=_C50BEB97-438F-48FA-B3E7-CD0DC23549A8--