You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Jon Drukman <js...@cluttered.com> on 2011/04/26 02:24:19 UTC
[users@httpd] Building apr_dbd_mysql
What is the trick to get apache to build and install apr_dbd_mysql when
compiling from source? I've manually cd'd into srclib/apr-util and manually
run
./configure --with-mysql; make; make install
but it's not actually putting the
DBD driver somewhere where apache can use it.
I manually copied the .so file
but I always get "DBD: Can't load driver file apr_dbd_mysql.so"
when running apache.
-jsd-
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
[users@httpd] Re: Building apr_dbd_mysql
Posted by Jon Drukman <js...@cluttered.com>.
Jon Drukman <jsd <at> cluttered.com> writes:
> libtool: link: warning: library `/usr/local/apr/lib/libaprutil-1.la' was moved.
> libtool: link: cannot find the library `/opt/apache/lib/libapr-1.la' or
> unhandled argument `/opt/apache/lib/libapr-1.la'
>
> Any ideas?
I finally got it to work. I built apr into /usr/local/apr and apr-util in to
/usr/local/apru. Wiped out the httpd build dir completely, started over with a
fresh configure and it worked, although it won't copy the apr_dbd_mysql.so into
the apache install, it leaves it in apru. This is OK for now, but I'd really
like to know how to build everything together.
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
[users@httpd] Re: Building apr_dbd_mysql
Posted by Jon Drukman <js...@cluttered.com>.
Nick Kew <nick <at> webthing.com> writes:
> Once you've built apr-util as you want it, use the --with options
> to httpd configure to select it. You need to point --with to
> ap[r|u]-1-config.
So I did:
./configure --prefix=/opt/apache --enable-layout=Darwin
--enable-mods-shared=all --sysconfdir=/opt/apache/etc
--datadir=/opt/apache --enable-ssl
--with-apr=/usr/local/apr/bin/apr-1-config
--with-apr-util=/usr/local/apr/bin/apu-1-config
and I get this:
/usr/local/apr/build-1/libtool --silent --mode=link gcc -g -O2 -o
htpasswd htpasswd.lo /Users/jsd/build/httpd-2.2.17/srclib/pcre/libpcre.la
/usr/local/apr/lib/libaprutil-1.la -lexpat -liconv
/usr/local/apr/lib/libapr-1.la -lpthread
libtool: link: warning: library `/usr/local/apr/lib/libaprutil-1.la' was moved.
libtool: link: cannot find the library `/opt/apache/lib/libapr-1.la' or
unhandled argument `/opt/apache/lib/libapr-1.la'
Any ideas?
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Re: Building apr_dbd_mysql
Posted by Nick Kew <ni...@webthing.com>.
On Tue, 26 Apr 2011 15:59:12 +0000 (UTC)
Jon Drukman <js...@cluttered.com> wrote:
> Nick Kew <nick <at> webthing.com> writes:
>
>
> > The build messages from configure and make will tell you
> > whether apr_dbd_mysql.so was built successfully,
> > and where it was installed.
>
> It is built successfully and it is installed into /usr/local/apr/lib. I don't
> think apache knows to look there however. I am trying to install apache into
> /opt/apache using layout=Darwin (I'm on Mac OS X).
>
> When I built apache I used with-bundled-apr. I need the mysql library to be
> installed into /opt/apache as part of the normal apache install process. Is
> this possible?
Once you've built apr-util as you want it, use the --with options
to httpd configure to select it. You need to point --with to
ap[r|u]-1-config.
--
Nick Kew
Available for work, contract or permanent.
http://www.webthing.com/~nick/cv.html
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
[users@httpd] Re: Building apr_dbd_mysql
Posted by Jon Drukman <js...@cluttered.com>.
Nick Kew <nick <at> webthing.com> writes:
> The build messages from configure and make will tell you
> whether apr_dbd_mysql.so was built successfully,
> and where it was installed.
It is built successfully and it is installed into /usr/local/apr/lib. I don't
think apache knows to look there however. I am trying to install apache into
/opt/apache using layout=Darwin (I'm on Mac OS X).
When I built apache I used with-bundled-apr. I need the mysql library to be
installed into /opt/apache as part of the normal apache install process. Is
this possible?
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Building apr_dbd_mysql
Posted by Nick Kew <ni...@webthing.com>.
On 26 Apr 2011, at 01:24, Jon Drukman wrote:
> What is the trick to get apache to build and install apr_dbd_mysql when
> compiling from source? I've manually cd'd into srclib/apr-util and manually
> run
> ./configure --with-mysql; make; make install
>
> but it's not actually putting the
> DBD driver somewhere where apache can use it.
>
> I manually copied the .so file
> but I always get "DBD: Can't load driver file apr_dbd_mysql.so"
> when running apache.
The build messages from configure and make will tell you
whether apr_dbd_mysql.so was built successfully,
and where it was installed.
If you're using a distro/package apache, then it'll be using
a distro/package apr-util which is probably not installed in
the same place as what you built. Check your distro docs
for how to get mysql support.
--
Nick Kew
Available for work, contract or permanent
http://www.webthing.com/~nick/cv.html
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org