Hello,
 
I am trying to install mod_midgard-1.4.2 and I am having a bit of a hangup.  I have seen the similar problem posted many times but I didn't have any luck finding the solution.  Here is the error message I get.
 
checking for midgard-config... /usr/local/midgard/bin
./configure: /usr/local/midgard/bin: is a directory
./configure: /usr/local/midgard/bin: is a directory
checking for a BSD compatible install... /usr/bin/install -c
checking for static Apache module build... no
checking for apxs... /usr/local/apache/bin/apxs
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for /etc/mandrake-release... no
checking for library containing g_string_new... -lglib
checking for library containing crypt... -lcrypt
checking for mgd_connect in -lmidgard... no
+++ You need the Midgard library for using mod_midgard.      +++
+++ Use the --with-midgard option to tell                    +++
+++ the configure script where to look for the library.      +++
+++ Check also that the Midgard library , the expat library  +++
+++ and the MySQL client library are on your dynamic library +++
+++ load path.                                               +++
 
*** Please look at the generated config.log. The problem is  ***
*** very often that libmysqlclient cannot be found by the    ***
*** dynamic linker, and because of that libmidgard fails to  ***
*** load.                                                    ***
configure: error: Midgard library libmidgard not found or failed to load due to missing symbols from other libraries
 
Here is a copy of the config.log file.  This seems to be a popular request.
 
configure:537: checking for midgard-config
configure:632: checking for a BSD compatible install
configure:687: checking for static Apache module build
configure:735: checking for apxs
configure:786: checking for gcc
configure:899: checking whether the C compiler (gcc  ) works
configure:915: gcc -o conftest     conftest.c   1>&5
configure:941: checking whether the C compiler (gcc  ) is a cross-compiler
configure:946: checking whether we are using GNU C
configure:955: gcc -E conftest.c
configure:974: checking whether gcc accepts -g
configure:1008: checking for /etc/mandrake-release
configure:1040: checking for library containing g_string_new
configure:1058: gcc -o conftest -g -O2    conftest.c   1>&5
/tmp/ccmlrMOZ.o: In function `main':
/usr/local/mod_midgard-1.4.2/configure:1054: undefined reference to `g_string_new'
collect2: ld returned 1 exit status
configure: failed program was:
#line 1047 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char g_string_new();
 
int main() {
g_string_new()
; return 0; }
configure:1080: gcc -o conftest -g -O2    conftest.c -lglib    1>&5
configure:1102: checking for library containing crypt
configure:1120: gcc -o conftest -g -O2    conftest.c -lglib   1>&5
/tmp/ccId7Sav.o: In function `main':
/usr/local/mod_midgard-1.4.2/configure:1116: undefined reference to `crypt'
collect2: ld returned 1 exit status
configure: failed program was:
#line 1109 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char crypt();
int main() {
crypt()
; return 0; }
configure:1142: gcc -o conftest -g -O2    conftest.c -lcrypt  -lglib   1>&5
configure:1163: checking for mgd_connect in -lmidgard
configure:1182: gcc -o conftest -g -O2    conftest.c -lmidgard  -lcrypt -lglib   1>&5
/usr/bin/ld: cannot find -lmidgard
collect2: ld returned 1 exit status
configure: failed program was:
#line 1171 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char mgd_connect();
 
int main() {
mgd_connect()
; return 0; }
 
Here is a copy of my /etc/ld.so.conf file .  And yes... I ran /sbin/ldconfig
 
/usr/lib
/usr/kerberos/lib
/usr/X11R6/lib
/usr/lib/mysql
/usr/local/lib
/usr/local/midgard/lib
 
I have libmysqlclient.so in the following locations...
/usr/local/lib/mysql/libmysqlclient.so
/usr/local/mysql/lib/mysql/libmysqlclient.so
 
I have the following paths established...
apache = /usr/local/apache
mysql = /usr/local/apache
midgard = /usr/local/midgard
apxs = /usr/local/apache/bin/apxs
expat = /usr/local
 
What am I doing wrong?  If anyone can help me out on this I'd greatly appreciate it.
 
Thanks,
Dan Hammer
 
 

Reply via email to