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....
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
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? |
|
|||
|
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 |
![]() |
| Thread Tools | |
| Display Modes | |
|
|