Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #15642 > unrolled thread

PHP 5.6.12 compilation difficulties

Started bydoctor@doctor.nl2k.ab.ca (The Doctor)
First post2015-08-09 00:11 +0000
Last post2015-08-09 18:25 +0200
Articles 7 — 4 participants

Back to article view | Back to comp.lang.php


Contents

  PHP 5.6.12 compilation difficulties doctor@doctor.nl2k.ab.ca (The Doctor) - 2015-08-09 00:11 +0000
    Re: PHP 5.6.12 compilation difficulties Matthew Carter <m@ahungry.com> - 2015-08-08 21:17 -0400
      Re: PHP 5.6.12 compilation difficulties doctor@doctor.nl2k.ab.ca (The Doctor) - 2015-08-09 04:01 +0000
      Re: PHP 5.6.12 compilation difficulties Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-08-09 11:01 +0200
    Re: PHP 5.6.12 compilation difficulties "J.O. Aho" <user@example.net> - 2015-08-09 08:58 +0200
      Re: PHP 5.6.12 compilation difficulties doctor@doctor.nl2k.ab.ca (The Doctor) - 2015-08-09 12:08 +0000
        Re: PHP 5.6.12 compilation difficulties "J.O. Aho" <user@example.net> - 2015-08-09 18:25 +0200

#15642 — PHP 5.6.12 compilation difficulties

Fromdoctor@doctor.nl2k.ab.ca (The Doctor)
Date2015-08-09 00:11 +0000
SubjectPHP 5.6.12 compilation difficulties
Message-ID<mq65rm$dsi$1@ns2.nl2k.ab.ca>
All right.

I have just compiles Mysql 5.5 current correctly

and when I try to get a PDO configured, I get

checking for MySQL support for PDO... yes
checking for mysql_config... /usr/contrib/bin/mysql_config
checking for mysql_commit in -lmysqlclient... no
checking for mysql_commit in -lmysqlclient... (cached) no
configure: error: PDO_MYSQL configure failed, MySQL 4.1 needed. Please check config.log for more information. 

Why is this happening when mysql_commit is present in 
libmysqlclient dot a and dot so
-- 
Member - Liberal International This is doctor@@nl2k.ab.ca Ici doctor@@nl2k.ab.ca
God,Queen and country!Never Satan President Republic!Beware AntiChrist rising! 
http://www.fullyfollow.me/rootnl2k  Look at Psalms 14 and 53 on Atheism
Time for Stephen to move on on Oct 19 2015!!

[toc] | [next] | [standalone]


#15643

FromMatthew Carter <m@ahungry.com>
Date2015-08-08 21:17 -0400
Message-ID<87si7t6z1i.fsf@ahungry.com>
In reply to#15642
doctor@doctor.nl2k.ab.ca (The Doctor) writes:

> All right.
>
> I have just compiles Mysql 5.5 current correctly
>
> and when I try to get a PDO configured, I get
>
> checking for MySQL support for PDO... yes
> checking for mysql_config... /usr/contrib/bin/mysql_config
> checking for mysql_commit in -lmysqlclient... no
> checking for mysql_commit in -lmysqlclient... (cached) no
> configure: error: PDO_MYSQL configure failed, MySQL 4.1 needed. \
> Please check config.log for more information. 
>
> Why is this happening when mysql_commit is present in 
> libmysqlclient dot a and dot so

Doctor who?

-- 
Matthew Carter (m@ahungry.com)
http://ahungry.com

[toc] | [prev] | [next] | [standalone]


#15644

Fromdoctor@doctor.nl2k.ab.ca (The Doctor)
Date2015-08-09 04:01 +0000
Message-ID<mq6jag$p08$1@ns2.nl2k.ab.ca>
In reply to#15643
In article <87si7t6z1i.fsf@ahungry.com>, Matthew Carter  <m@ahungry.com> wrote:
>doctor@doctor.nl2k.ab.ca (The Doctor) writes:
>
>> All right.
>>
>> I have just compiles Mysql 5.5 current correctly
>>
>> and when I try to get a PDO configured, I get
>>
>> checking for MySQL support for PDO... yes
>> checking for mysql_config... /usr/contrib/bin/mysql_config
>> checking for mysql_commit in -lmysqlclient... no
>> checking for mysql_commit in -lmysqlclient... (cached) no
>> configure: error: PDO_MYSQL configure failed, MySQL 4.1 needed. \
>> Please check config.log for more information. 
>>
>> Why is this happening when mysql_commit is present in 
>> libmysqlclient dot a and dot so
>
>Doctor who?

Ha! Ha!

>
>-- 
>Matthew Carter (m@ahungry.com)
>http://ahungry.com


-- 
Member - Liberal International This is doctor@@nl2k.ab.ca Ici doctor@@nl2k.ab.ca
God,Queen and country!Never Satan President Republic!Beware AntiChrist rising! 
http://www.fullyfollow.me/rootnl2k  Look at Psalms 14 and 53 on Atheism
Time for Stephen to move on on Oct 19 2015!!

[toc] | [prev] | [next] | [standalone]


#15646

FromThomas 'PointedEars' Lahn <PointedEars@web.de>
Date2015-08-09 11:01 +0200
Message-ID<6760587.JjjtL6CD9f@PointedEars.de>
In reply to#15643
Matthew Carter wrote:

> Doctor who?

+1

-- 
PointedEars
Zend Certified PHP Engineer
Twitter: @PointedEars2
Please do not cc me. / Bitte keine Kopien per E-Mail.

[toc] | [prev] | [next] | [standalone]


#15645

From"J.O. Aho" <user@example.net>
Date2015-08-09 08:58 +0200
Message-ID<d2oc19Fd0m7U1@mid.individual.net>
In reply to#15642
On 08/09/2015 02:11 AM, The Doctor wrote:
> All right.
>
> I have just compiles Mysql 5.5 current correctly
>
> and when I try to get a PDO configured, I get
>
> checking for MySQL support for PDO... yes
> checking for mysql_config... /usr/contrib/bin/mysql_config
> checking for mysql_commit in -lmysqlclient... no
> checking for mysql_commit in -lmysqlclient... (cached) no
> configure: error: PDO_MYSQL configure failed, MySQL 4.1 needed. Please check config.log for more information.
>
> Why is this happening when mysql_commit is present in
> libmysqlclient dot a and dot so
>

When you run the ./configure script, you need to tell where the binaries 
are installed, this includes the full path to the mysql_config which you 
want to use, as it seems your php has found the mysql which is 
installed, not the one you compiled.

Run: ./configure --help
to see all the options that can be tweaked.


My recommendation is that you make a new installation of a 
rolling-distribution instead, this way you will be able to update all 
the time and don't have to compile anything, unless you want more 
control and then you should go for a meta distribution like Funtoo or 
SourgeMage.


-- 

  //Aho

[toc] | [prev] | [next] | [standalone]


#15647

Fromdoctor@doctor.nl2k.ab.ca (The Doctor)
Date2015-08-09 12:08 +0000
Message-ID<mq7fra$d6d$1@ns2.nl2k.ab.ca>
In reply to#15645
In article <d2oc19Fd0m7U1@mid.individual.net>,
J.O. Aho <user@example.net> wrote:
>On 08/09/2015 02:11 AM, The Doctor wrote:
>> All right.
>>
>> I have just compiles Mysql 5.5 current correctly
>>
>> and when I try to get a PDO configured, I get
>>
>> checking for MySQL support for PDO... yes
>> checking for mysql_config... /usr/contrib/bin/mysql_config
>> checking for mysql_commit in -lmysqlclient... no
>> checking for mysql_commit in -lmysqlclient... (cached) no
>> configure: error: PDO_MYSQL configure failed, MySQL 4.1 needed. Please check config.log for more information.
>>
>> Why is this happening when mysql_commit is present in
>> libmysqlclient dot a and dot so
>>
>
>When you run the ./configure script, you need to tell where the binaries 
>are installed, this includes the full path to the mysql_config which you 
>want to use, as it seems your php has found the mysql which is 
>installed, not the one you compiled.
>
>Run: ./configure --help
>to see all the options that can be tweaked.
>
>
>My recommendation is that you make a new installation of a 
>rolling-distribution instead, this way you will be able to update all 
>the time and don't have to compile anything, unless you want more 
>control and then you should go for a meta distribution like Funtoo or 
>SourgeMage.
>
>
>-- 
>
>  //Aho

My configuration script is

LIBS="-lc" ./configure \
  --prefix=/usr/contrib \
  --localstatedir=/var \
  --htmldir=/var/www/docs/php \
  --enable-re2c-cgoto  \
  --with-apxs2=/usr/contrib/bin/apxs \
  --with-libxml-dir=/usr/contrib \
  --with-openssl=/usr/contrib \
  --with-zlib=/usr \
  --with-bz2=shared,/usr/contrib  \
   --enable-bcmath \
  --enable-calendar     \
  --with-curl=/usr/contrib \
  --with-db4=/usr/contrib \
  --with-pcre-dir=/usr/contrib \
  --with-openssl-dir=/usr/contrib \
  --with-gd --enable-fpm  \
  --with-gettext=/usr \
  --with-gmp=shared,/usr \
  --with-mhash=/usr \
  --with-imap-ssl=/usr/source/imap-2007f \
  --enable-mbstring \
  --with-onig=/usr/contrib \
  --with-mcrypt=shared,/usr/contrib \
  --with-mysql=/usr/contrib \
  --with-pdo-mysql=/usr/contrib \
  --with-mysql-sock=/tmp/mysql.sock \
  --with-zlib-dir=/usr \
  --with-iodbc=shared,/usr/contrib \
  --with-unixODBC=shared,/usr/contrib \
  --enable-opcache=no --enable-pcntl=no      \
  --with-pdo-mysql=/usr/contrib \
  --with-pgsql=/usr/contrib/pgsql/ \
  --without-mm \
  --disable-sockets    \
  --enable-soap \
  --enable-sysvmsg \
  --enable-sysvsem \
  --enable-sysvshm \
  --with-xsl=shared,/usr/contrib \
  --enable-zip  \
  --with-pcre-dir=/usr/contrib \
  --with-pear=/usr/contrib \
  --with-tsrm-pthreads \
  --enable-shared=yes \
  --enable-static=no \
  --with-gnu-ld \
  --with-pic  
-- 
Member - Liberal International This is doctor@@nl2k.ab.ca Ici doctor@@nl2k.ab.ca
God,Queen and country!Never Satan President Republic!Beware AntiChrist rising! 
http://www.fullyfollow.me/rootnl2k  Look at Psalms 14 and 53 on Atheism
Time for Stephen to move on on Oct 19 2015!!

[toc] | [prev] | [next] | [standalone]


#15648

From"J.O. Aho" <user@example.net>
Date2015-08-09 18:25 +0200
Message-ID<d2pd81FlbtbU1@mid.individual.net>
In reply to#15647
On 08/09/2015 02:08 PM, The Doctor wrote:
> In article <d2oc19Fd0m7U1@mid.individual.net>,
> J.O. Aho <user@example.net> wrote:
>> On 08/09/2015 02:11 AM, The Doctor wrote:
>>> All right.
>>>
>>> I have just compiles Mysql 5.5 current correctly
>>>
>>> and when I try to get a PDO configured, I get
>>>
>>> checking for MySQL support for PDO... yes
>>> checking for mysql_config... /usr/contrib/bin/mysql_config
>>> checking for mysql_commit in -lmysqlclient... no
>>> checking for mysql_commit in -lmysqlclient... (cached) no
>>> configure: error: PDO_MYSQL configure failed, MySQL 4.1 needed. Please check config.log for more information.

What do you get when running "/usr/contrib/bin/mysql_config --version", 
could be that your mysql ain't properly built.

Still instead of having these issues, go for a rolling distribution or 
use a meta-distribution if you need some unusual options.


-- 

  //Aho

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.php


csiph-web