Cannot compile php and mysql together, looked around quite a while

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • gooderthanyou@gmail.com

    Cannot compile php and mysql together, looked around quite a while

    Alright i've looked a ton of topics and most of them are unresolved...

    configure: error: Cannot find MySQL header files under usr/local/mysql.
    Note that the MySQL client library is not bundled anymore!

    I gunzipped mysql, did tar -xvf to the resulting tar, moved the mysql
    folder to usr/local/... and I been able to log into mysql and all that
    good stuff so I guess its installed. just when I try to configure php
    with mysql it gives me that error when trying to fetch mysql!!

    inside my php-5.1.1 folder I typed this from tutorials

    ../configure --with-apxs2=/usr/local/apache2/bin/apxs
    --with-mysql=usr/local/mysql

    apache is fine just cannot do it "with" mysql...

    BTW i'm a noob, I might just go to a younger php since it includes
    mysql with it!

    Thanks in advance

  • Jerry Stuckle

    #2
    Re: Cannot compile php and mysql together, looked around quite awhile

    gooderthanyou@g mail.com wrote:[color=blue]
    > Alright i've looked a ton of topics and most of them are unresolved...
    >
    > configure: error: Cannot find MySQL header files under usr/local/mysql.
    > Note that the MySQL client library is not bundled anymore!
    >
    > I gunzipped mysql, did tar -xvf to the resulting tar, moved the mysql
    > folder to usr/local/... and I been able to log into mysql and all that
    > good stuff so I guess its installed. just when I try to configure php
    > with mysql it gives me that error when trying to fetch mysql!!
    >
    > inside my php-5.1.1 folder I typed this from tutorials
    >
    > ./configure --with-apxs2=/usr/local/apache2/bin/apxs
    > --with-mysql=usr/local/mysql
    >
    > apache is fine just cannot do it "with" mysql...
    >
    > BTW i'm a noob, I might just go to a younger php since it includes
    > mysql with it!
    >
    > Thanks in advance
    >[/color]

    Is mysql actually installed in /usr/local/mysql? And do you have the
    development version or the runtime version? Where's your mysql.h file?

    --
    =============== ===
    Remove the "x" from my email address
    Jerry Stuckle
    JDS Computer Training Corp.
    jstucklex@attgl obal.net
    =============== ===

    Comment

    • Andy Hassall

      #3
      Re: Cannot compile php and mysql together, looked around quite a while

      On 18 Dec 2005 07:30:08 -0800, gooderthanyou@g mail.com wrote:
      [color=blue]
      >configure: error: Cannot find MySQL header files under usr/local/mysql.
      >Note that the MySQL client library is not bundled anymore![/color]

      That's a relative path.
      [color=blue]
      >I gunzipped mysql, did tar -xvf to the resulting tar, moved the mysql
      >folder to usr/local/... and I been able to log into mysql and all that
      >good stuff so I guess its installed. just when I try to configure php
      >with mysql it gives me that error when trying to fetch mysql!![/color]

      That was using the binary distribution of MySQL presumably?
      Where did you move it to - "usr/local" is a relative path, but relative to
      where? Did you in fact move it to the expected "/usr/local" directory?
      [color=blue]
      >inside my php-5.1.1 folder I typed this from tutorials
      >
      >./configure --with-apxs2=/usr/local/apache2/bin/apxs
      >--with-mysql=usr/local/mysql[/color]

      Relative path again, you most likely want --with-mysql=/usr/local/mysql

      --
      Andy Hassall :: andy@andyh.co.u k :: http://www.andyh.co.uk
      http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

      Comment

      • Jan Pieter Kunst

        #4
        Re: Cannot compile php and mysql together, looked around quite a while

        In article <1134919808.642 128.266110@g49g 2000cwa.googleg roups.com>,
        gooderthanyou@g mail.com wrote:
        [color=blue]
        > configure: error: Cannot find MySQL header files under usr/local/mysql.
        > Note that the MySQL client library is not bundled anymore!
        >
        > I gunzipped mysql, did tar -xvf to the resulting tar, moved the mysql
        > folder to usr/local/... and I been able to log into mysql and all that
        > good stuff so I guess its installed. just when I try to configure php
        > with mysql it gives me that error when trying to fetch mysql!!
        >
        > inside my php-5.1.1 folder I typed this from tutorials
        >
        > ./configure --with-apxs2=/usr/local/apache2/bin/apxs
        > --with-mysql=usr/local/mysql[/color]

        Try "--with-mysql=/usr/local"

        JP

        Comment

        • gooderthanyou@gmail.com

          #5
          Re: Cannot compile php and mysql together, looked around quite a while

          Yes I "moved" it to "/usr/local" ... thats where it is..

          And as I said i've gotten into mysql... made a table, deleted tables,
          created accounts, its just not recognized when php code tries to call
          mysql which I attempted to compile.

          Thanks anyhow

          Comment

          • gooderthanyou@gmail.com

            #6
            Re: Cannot compile php and mysql together, looked around quite a while

            oops =/usr/local/mysql/

            forget that last last slash! Sorry guys but you were right,...

            I happened to put usr/local/ but that wasn't the right directory
            anyhow and didn't do the slash when mysql folder ... doh

            Comment

            Working...