Professional Web Applications Themes

mysqlclient header files? - MySQL

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...

Sponsored Links
  1. #1

    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

    Sponsored Links
    inetquestion Guest

  2. #2

    Default Re: mysqlclient header files?

    On Mar 12, 6:40 pm, "inetquestion" <com> wrote: 

    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?

    inetquestion Guest

  3. #3

    Default Re: mysqlclient header files?

    In article <googlegroups.com>,
    "inetquestion" <com> writes: 

    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
    Axel Guest

  4. #4

    Default Re: mysqlclient header files?

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

    -Inet

    inetquestion Guest

Similar Threads

  1. Replies: 2
    Last Post: December 25th, 02:54 AM
  2. Replies: 2
    Last Post: May 17th, 06:53 AM
  3. PHP Newbie - Header.inc. files
    By Seth1969 in forum Macromedia Dynamic HTML
    Replies: 0
    Last Post: February 9th, 09:41 PM
  4. Missing header files???
    By Bradley in forum PERL Beginners
    Replies: 3
    Last Post: April 14th, 09:02 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139