mysqlclient header files?

This is a discussion on mysqlclient header files? within the MySQL Database forums, part of the Database Forums category; I've installed mysql with the configure line: ./configure --prefix=/ opt/itools/ when I try to compile php-5.2....


Go Back   Usenet Forums > Database Forums > MySQL Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-12-2007
inetquestion
 
Posts: n/a
Default mysqlclient header files?

I've installed mysql with the configure line: ./configure --prefix=/
opt/itools/

when I try to compile php-5.2.1 it gives an error about not being able
to find mysqlclient and that it isn't included with mysql anymore.
I've checked on the system and indeed they do not exist. Ok, I
understand that it isn't included any longer, but what do I need to
install in order to get the header files?

solaris 9
mysql 5.0.33
php 5.2.1

Regards,

-Inet

Reply With Quote
  #2 (permalink)  
Old 03-13-2007
inetquestion
 
Posts: n/a
Default Re: mysqlclient header files?

On Mar 12, 6:40 pm, "inetquestion" <inetquest...@hotmail.com> wrote:
> I've installed mysql with the configure line: ./configure --prefix=/
> opt/itools/
>
> when I try to compile php-5.2.1 it gives an error about not being able
> to find mysqlclient and that it isn't included with mysql anymore.
> I've checked on the system and indeed they do not exist. Ok, I
> understand that it isn't included any longer, but what do I need to
> install in order to get the header files?
>
> solaris 9
> mysql 5.0.33
> php 5.2.1
>
> Regards,
>
> -Inet


in <mysql source dir>/include I see some header files. Are these the
ones which php is looking for? If so why wouldn't they be copied over
to the mysql/include or /usr/local/include directory upon installation
of mysql?

Reply With Quote
  #3 (permalink)  
Old 03-13-2007
Axel Schwenke
 
Posts: n/a
Default Re: mysqlclient header files?

In article <1173739207.462694.213390@8g2000cwh.googlegroups.c om>,
"inetquestion" <inetquestion@hotmail.com> writes:
> I've installed mysql with the configure line: ./configure --prefix=/
> opt/itools/
>
> when I try to compile php-5.2.1 it gives an error about not being able
> to find mysqlclient and that it isn't included with mysql anymore.
> I've checked on the system and indeed they do not exist. Ok, I
> understand that it isn't included any longer, but what do I need to
> install in order to get the header files?


If you compile MySQL by yourself, then "make install" will install the
MySQL header files into $PREFIX/include/mysql/.

When you configure PHP, you have to tell it where to find MySQL:
../configure ... --with-mysql=/opt/itools

This is how it worked with past versions of PHP. In the meantime MySQL
provides mysql_config, that can tell you what compiler/linker settings
to use (mysql_config --cflags/--libs). Maybe PHP adopted to use
mysql_config now. In that case I would expect you should use
../configure ... --with-mysql=/opt/itools/bin/mysql_config

Consult the PHP README.


XL
Reply With Quote
  #4 (permalink)  
Old 03-13-2007
inetquestion
 
Posts: n/a
Default Re: mysqlclient header files?

installing mysql with flag: --enable-thread-safe-client
seems to fix the issue.

-Inet

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:24 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0