473,404 Members | 2,195 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

Fun with compiling PHP 5.1 (help)

Alright, I'm trying to compile PHP 5.1 with the following options:
../configure --with-openssl --with-zlib --with-bz2 --enable-bcmath
--enable-calendar --enable-mbstring --with-mcrypt --with-mhash
--with-mysqli --with-mysql --enable-embedded-mysqli --disable-pdo
--with-pgsql --with-pspell

So far I've been able to get all dependencies and whatnot up to the
MySQL area. The last error I get with it is:
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... yes
checking for MySQLi support... yes
checking whether to enable embedded MySQLi support... yes
checking for mysql_set_server_option in -lmysqlclient... no
configure: error: wrong mysql library version or lib not found. Check
config.log for more information.

Any ideas? I have the MySQL 4.1 libraries and server and whatnot, and
I can't install (or use) the 4.0 libraries due to whatever reason they
don't allow that to work.

Sep 17 '05 #1
3 4984
Junx,
Alright, I'm trying to compile PHP 5.1 with the following options:
./configure --with-openssl --with-zlib --with-bz2 --enable-bcmath
--enable-calendar --enable-mbstring --with-mcrypt --with-mhash
--with-mysqli --with-mysql --enable-embedded-mysqli --disable-pdo
--with-pgsql --with-pspell

So far I've been able to get all dependencies and whatnot up to the
MySQL area. The last error I get with it is:
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... yes
checking for MySQLi support... yes
checking whether to enable embedded MySQLi support... yes
checking for mysql_set_server_option in -lmysqlclient... no
configure: error: wrong mysql library version or lib not found. Check
config.log for more information.

Any ideas? I have the MySQL 4.1 libraries and server and whatnot, and
I can't install (or use) the 4.0 libraries due to whatever reason they
don't allow that to work.


For MySQL 4.1+ you can not use --with-mysql. You have to use
--with-mysqli. If you were to look at the documentation for that
specific extension you would find it there.

Furthermore the best way to make sure php finds the correct libs for
mysql is to do: --with-mysql=/path/to/mysql_config

Hope that helps.

--
Mike Willbanks
Zend Certified Engineer
http://www.digitalstruct.com
Sep 17 '05 #2
Alright, thanks, that basically did it. I think the problem was that I
had --with-mysqli and --enable-embedded-mysqli both at once.

Sep 17 '05 #3
Junx wrote:
Alright, thanks, that basically did it. I think the problem was that I
had --with-mysqli and --enable-embedded-mysqli both at once.


Actually you had --with-mysql instead of mysqli. You actually can have
both in the configure statement but it just needs to be uniform mysqli :)

--
Mike Willbanks
Zend Certified Engineer
http://www.digitalstruct.com
Sep 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

29
by: Maurice LING | last post by:
Hi, I remembered reading a MSc thesis about compiling Perl to Java bytecodes (as in java class files). At least, it seems that someone had compiled scheme to java class files quite successfully....
0
by: Martin Bless | last post by:
I need to access a MSSQL database (MS-Sql, not MySQL!)and would very much like to use mssql-0.09.tar.gz which is available from http://www.object-craft.com.au/projects/mssql/download.html ...
2
by: Søren Grønbech | last post by:
I'm using Codewarrior for Windows and for example I can check the peephole option to see if we are currently compiling with peephole optimization on... #if __option(peephole) Is there a way to...
0
by: pruebauno | last post by:
Hello all, I am having issues compiling Python with large file support. I tried forcing the configure script to add it but then it bombs in the make process. Any help will be appreciated. ...
11
by: Arturo DiDonna | last post by:
Hello everyone. I am trying to compile someone else code and I am stuck with compilation problems using the g++ 3.3 compiler. Basically, when compiling the following code, I get this error...
3
by: modemer | last post by:
Hello, I got weird compiling message similar like following when I compiled my simple code on Sun 5.8 with CC WorkShop 6 update 2 C++ 5.3. CC -g -o myclass.o -c myclass.cpp CC -g -o main.o...
3
by: Dmitri Shvetsov | last post by:
Hi All, Did somebody have a problem compiling some solution in VS2003? I get the error every time that some files are locked and are using by another process. I repeat compiling again and again...
4
by: Aaron Queenan | last post by:
When I build a C++ library to .NET using the managed C++ compiler, I get the following error message: Linking... LINK : error LNK2020: unresolved token (0A000005) _CrtDbgReport LINK : error...
1
by: Mike Hutton | last post by:
I need some help. I am trying to set up our development environment so as to make life easy for my fellow developers (none of whom have used ASP.NET or VS.NET before). We are developing our...
0
by: =?Utf-8?B?amVmZmVyeQ==?= | last post by:
i need help compiling code dynamically it may involve some reflection so if any one is any good in that field or compiling code this would be a great time to show me what you know. by the way my...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.