Re: [users@httpd] httpd-2.2.3 / MySQL 5.0.24a - buildsteps and improved error reporting

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, September 21, 2006 07:44, Philip M. Gollucci wrote:

>> I installed MySQL-5.0.24a from source into /usr/local, set it up (have
>> it running), modified /etc/ld.so.conf and ran ldconfig. I downloaded
>> httpd-2.2.3 and apr_dbd_myqsl.c again and applied your proposed changes to
>> all those files. I'm using the apr/apr-util that is included with
>> httpd-2.2.3.
>
> You need apr 1.2.8-dev+ which uses mysql_confg find the libs and headers

That would probably help.

> (if they these are not in your standard paths)

MySQL is installed with --prefix=/usr/local. Includes are in
/usr/local/include/mysql and libs are in /usr/local/lib/mysql, See above. IMO
/usr/local is quite common when building from source.

>> As far as I can tell, HAVE_MYSQL_H or HAVE_MYSQL_MYSQL_H are never
>> defined but maybe I'm not looking in the right place (httpd source, mysql.h,
>> don't know what else)..
>
> pgollucci@xxxxxxxxxxxxxxx /home/pgollucci/dev/repos/asf/apr/apr-util/trunk 23
> 0>sgrep HAVE_MYSQL *
> dbd/apr_dbd.c:#if APU_HAVE_MYSQL
> include/apu.h.in:#define APU_HAVE_MYSQL         @apu_have_mysql@

This is not the same. I was talking about HAVE_MYSQL_H and HAVE_MYSQL_MYSQL_H.

httpd-2.2.3 source:

httpd-2.2.3$ grep -R HAVE_MYSQL_H *
srclib/apr-util/dbd/apr_dbd_mysql.c:#ifdef HAVE_MYSQL_H

httpd-2.2.3$ grep -R HAVE_MYSQL_MYSQL_H *
srclib/apr-util/dbd/apr_dbd_mysql.c:#elif defined(HAVE_MYSQL_MYSQL_H)

I don't see any defines, however, I do see ifdef's.. The complete section is
this:

#ifdef HAVE_MYSQL_H
#include <mysql.h>
#include <errmsg.h>
#elif defined(HAVE_MYSQL_MYSQL_H)
#include <mysql/mysql.h>
#include <mysql/errmsg.h>
#endif

Which leads me to believe that mysql.h and errmsg.h will never be included, at
least not in my case.

>> checking for Berkeley DB... found db4 checking for default DBM... sdbm
>> (default)
>> setting APRUTIL_EXPORT_LIBS to "-ldb-4.2" setting APRUTIL_LIBS to "-ldb-4.2"
>> /path/to/httpd-2.2.3/srclib/apr-util/configure: line 31266:
>> APU_CHECK_DBD: command not found
>> /path/to/httpd-2.2.3/srclib/apr-util/configure: line 31267:
>> APU_CHECK_DBD_MYSQL: command not found
>> /path/to/httpd-2.2.3/srclib/apr-util/configure: line 31268:
>> APU_CHECK_DBD_SQLITE3: command not found
>> /path/to/httpd-2.2.3/srclib/apr-util/configure: line 31269:
>> APU_CHECK_DBD_SQLITE2: command not found
>>
> Never seen that.

I've made several on another machine: neither have I. But then, on this other
machine I used the separate apr and apr-util (1.2.7) packages, so perhaps that
makes a difference.

>> =============================
>> When running make, I get these errors (sorry for the wrapping..):
>>
> [your apu did not compile with mysql linked in.]
> --with-mysql=DIR
> also see above for the 1.2.8-dev requirement.  I was not able to get this to
> work in 1.2.7 which comes with 2.2.3.
>
> repos/asf/apr/apr/branches/1.2.x repos/asf/apr/apr-util/branches/1.2.x

So.. Maybe I'm going to give 1.2.8-dev a try.


Grts,
Rob



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux