Failing when including --with-mysql
[@more@]
[30 Dec 2005 6:38am UTC] shawn dot richards at ink dot ltd dot uk
[30 Dec 2005 4:41pm UTC] shawn dot richards at ink dot ltd dot uk
Found the problem. The PHP compile fails when using this version of MySQL: Mac OS X 10.4, (PowerPC, 64-bit) I have a 64-bit machine and the PHP compile process freaks out at some point because the ranlib returns strange results since data somewhere exceeds the expected 32-bits. This is a legitimate bug, which might not exist in the PHP compiler...but the compile process fails.
[31 Dec 2005 12:42am UTC] sniper@php.net
Assigned to Mysql support.
[7 Mar 9:05pm UTC] thijs dot wijnmaalen at gmail dot com
You could fix this issue by changing the config line to: --with-mysql=shared (thanks to YorHel)
[19 Apr 5:01pm UTC] pamelastone at gmail dot com
The problem is fixed when using --with-mysql-dir=/usr/local/mysql instead of --with-mysql=/usr/local/mysql
[20 Apr 10:09am UTC] pfroling at hotmail dot com
Thank you pamelastone. That fixed my configure problem. ./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql-dir=/usr/local/mysql --with-zlib-dir=/usr
[2 May 10:23pm UTC] ivanick at vet dot upenn dot edu
Same bug on RH4.2 AMD64 as well, fix works (with-mysql-dir), my many thanks!
[15 May 1:57pm UTC] vktechnology at uk2 dot net
The problem is fixed when using --with-mysql-dir=/usr/local/mysql instead of --with-mysql=/usr/local/mysql ******************************** cannot fix, after install will cannot connect to my sql by using PHP you will see this error "Fatal error: Call to undefined function mysql_connect() " and looking in info.php cannot see mysql too...
[15 May 2:17pm UTC] tony2001@php.net
Sure. Because there is no such ./configure option like "--with-mysql-dir".
[17 May 1:36am UTC] rsmiderle at gmail dot com
"exactly the problem is fixep by --with-mysql-dir=/path_to_mysql" I used this workaround and was able to compile everything, but I don't have mysql built into PHP. When I run: function_exists( 'mysql_connect' ) it returns false. Did anyone else get this problem? (I may have messed up the install in some other way, it's my first time installing)
[17 May 2:53am UTC] tbednarek at gmail dot com
I also cannot use any of the MySQL functions as it tells me that the extension could not be loaded. I tried both with --with-mysql=shared and --with-mysql-dir=/usr/local/mysql.
[17 May 6:25am UTC] tony2001@php.net
There is NO SUCH ./configure OPTION like --with-mysql-dir. Please stop adding useless comments to the report.
[18 May 4:03pm UTC] vktechnology at uk2 dot net
still don't know how to fix this now I moved to use php 64 bit PHP RPM fedora I install webmin and download php-5.1.2-5.x86_64.rpm it work for me.. but i prefer ito compile form source..
[18 May 4:10pm UTC] pajoye@php.net
For linux 64 bits system you need to add: --with-libdir=/lib64 to your configure line Please ask further support questions to the php installation mailing list. This is not a support medium.
[3 Jun 8:19pm UTC] svetlovid at mail dot ru
2 linuxrulez at bk dot ru Tnx man! All working fine! I have the same problem. Arch: i686 OS: Linux Slackware Current (04.06.2006) MySQL: 5.1.9 beta Apache 2.2.2 PHP ver. 5.1.4 have a installed glibc 2.3 after installing OS (minimum installation, but i've check for glibc - its already there) I have just download next one: mysql-5.1.9-beta-linux-i686-glibc23.tar.gz - making a standart installation procedure - making auto up/down script for system rebooting case. then install PHP 5.1.4 with this string: ./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php --with-mysql=/usr/local/mysql --with-gd --with-apxs2=/usr/local/apache2/bin/apxs --enable-ftp --enable-mbstring --with-zlib and all working DONE!! Realy tnx! Best regards, Oleg
[20 Jun 3:47pm UTC] tony2001@php.net
Please try using this CVS snapshot: For Windows:
[22 Jun 2:34pm UTC] valentijn at depagter dot com
I'm currently experiencing the same problem, with any combination of the following: Apache v2.2.2 MySQL v5.0.22 & v5.1.11-beta-i686 PHP 5.1.4 & 5.2 Snapshot (200606221230) Configuration output: --------------------- checking for MSSQL support via FreeTDS... no checking for MySQL support... yes checking for specified location of the MySQL UNIX socket... no checking for MySQL UNIX socket location... no checking for mysql_close in -lmysqlclient... no checking for mysql_error in -lmysqlclient... no configure: error: mysql configure failed. Please check config.log for more information. --------------------- Tried it with both 5.1.4 and the latest snapshot, which unfortunately does not resolve the issue. I can confirm that using MySQL v5.0.18 instead of 5.0.22 or 5.1.x does work. I think it is the same as, or at least related to the following bug: Every MySQL version below 5.0.20 seems to be unaffected.
[28 Jun 1:00am UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".
[29 Jun 4:49pm UTC] javier at nediam dot com dot mx
I faced the same problem with the binary distribution of MySQL 5.0.22. Instead I try with the source distribution (of the same version 5.0.22) and It worked :)
[11 Jul 5:06pm UTC] down at townsquirrel dot de
I've the same problem: Both verions (binary and self-compiled sourcecode) of MYSQL 5.0.22 didn't worked pretty ! Using 5.0.18 solved the problem
[27 Jul 4:04pm UTC] c00lways at gmail dot com
anyone going to help on this? i've faced the same problem with mysql 5.0.22 with php 5.1.4... the problem has been reported on mysql support website, but yet, no one have got the solutions to it. i think it's due to libmysql... when i tried to compile using --with-mysqli=/usr/local/mysql/bin/mysql_config it states something to do with invalid version of libmysql.. my box was just freshly installed mysql 5.0.22... and now attempting to compile the php 5.1.4 example: --with-mysql=/usr/local/mysql --with-gd --enable-embedded-mysqli --with-gd2 --with-openssl --with-sockets --enable-mbstring --enable-ftp --enable-sockets --with-jpeg-dir=/usr/lib --with-png-dir=/usr/lib --with-zlib-dir=/usr/lib
[27 Jul 4:06pm UTC] c00lways at gmail dot com
i've checked on the changelog of mysql... from mysql 5.0.18 to 5.0.22 almost all of them are security fixes... this could be a security treat for all existing mysql 5.0.22 and below
[28 Jul 12:58am UTC] c00lways at gmail dot com
i've tried to build mysql 5.0.22 with sources.. and use my configure line for php as: ./configure --with-mysql=/usr/local/include/mysql --with-gd --enable-embedded-mysqli --with-gd2 --with-openssl --with-sockets --enable-mbstring --enable-ftp --enable-sockets --with-jpeg-dir=/usr/lib --with-png-dir=/usr/lib --with-zlib-dir=/usr/lib ** and it works!
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/19423/viewspace-856174/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- TABLE size (including table,index,lob,lobindex)Index
- SQLNET trace including oci and thin driverSQL
- ORACLE CASE WHEN 及 SELECT CASE WHEN的用法Oracle
- Oracle Case WhenOracle
- SQL Case WhenSQL
- When to Partition a Table
- [Oracle] 檢視tablespace的使用率(Including temp tablespace)Oracle
- Metlink:How to Modify Public Network Information including VIP in CrsORM
- mysql case when then 使用MySql
- When you're goneGo
- HOWTO--Generating SQL trace files(Including 10g)SQL
- drop tablespace xx INCLUDING CONTENTS AND DATAFILES; 檔案不立刻消失
- Oracle的order by case whenOracle
- sql when null 判斷SQLNull
- Case when 支援變數變數
- case when遇上null值Null
- EVENT: 10046 "enable SQL statement tracing (including binds/waits)"SQLAI
- IOT中溢位區屬性pctthreshold和including驗證
- 遭遇 bug InnoDB: Failing assertion: page_get_n_recs(page) > 1AI
- PLSQL Language Referenc-FOR迴圈-FOR迴圈中的EXIT WHEN和CONTINUE WHENSQL
- Oracle case when改寫SQLOracleSQL
- SpokenEnglish01_ When's it due?
- Laravel query when 的查詢Laravel
- TLS Poison - When TLS Hack youTLS
- mysql中case when的使用MySql
- mysql中的case when 與if()MySql
- How to Determine When an Index Should be Rebuilt?IndexUI
- SQL中的CASE WHEN使用SQL
- [MONGODB]: WHEN ARBITER REQUIRED FOR REPLICA SETMongoDBUI
- ORACLE多欄位CASE WHENOracle
- PL/SQL Case when應用SQL
- [Reactive] Run functions when data changesReactFunction
- sql case when, Exist ,group by ,聚合SQL
- SQL Server CASE WHEN ... THEN ... ELSE ... ENDSQLServer
- Duplicate Active Database Failing with: RMAN-03009, ORA-17628DatabaseAI
- 在CSS中如何使用 when/elseCSS
- SQLServer使用case when中的order bySQLServer
- For example, when you want to get the ball to the ground