Hello everyone!
I just downloaded the latest version of mid-gard-1.4beta5a and was trying
to install it. I am currently running on RedHat Linux 6.2 / Apache-1.3.12
and PHP-4.0.1pl2
The expat-lib-1.0 installed smoothly without any problems. And when
installing midgard-lib-1.4beta5a , I did a ./configure --with-sitegroups
followed by a make and make install. It managed to install into the
/usr/local/lib directory just fine. But during the compliation process,
the follow warning message popped up :-
/bin/sh ./libtool --mode=link gcc -O6 -mpentiumpro -fno-strength-reduce
-I/usr/lib/glib/include -L/usr/lib/mysql -o libmidgard.la -rpath
/usr/local/lib -version-info 4:0:1 midgard.lo format.lo fmt_russian.lo
md5.lo tree.lo repligard.lo filetemplate.lo -lmysqlclient -lm -lexpat
-lz -lcrypt
rm -fr .libs/libmidgard.la .libs/libmidgard.* .libs/libmidgard.*
*** Warning: This library needs some functionality provided by
-lmysqlclient.
*** I have the capability to make that library automatically link in when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have.
*** The inter-library dependencies that have been dropped here will be
*** automatically added whenever a program is linked with this library
*** or is declared to -dlopen it.
When I tried to compile mod_midgard-1.4beta5a, I got the following error
message when doing a ./configure :-
loading cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking for apxs... 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 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 both the Midgard library and the MySQL ***
*** client library are on your dynamic library load path. ***
configure: error: Midgard library libmidgard not found
I looked at the FAQ and it said to use "LDFLAGS=-L/usr/lib/mysql
./configure" which I tried but to no avail. The same error occurs. I also
tried ./configure --with-midgard=/usr/local but the same problem pops up.
I tried a few other combinations but to no avail.
I have /usr/local/lib in my /etc/ld.so.conf file
server:# less /etc/ld.so.conf
/usr/kerberos/lib
/usr/i486-linux-libc5/lib
/usr/local/lib
server:# ldconfig
one thing to note would be that :-
server:# ldconfig -p | grep -i sql
server:# ldconfig -p | grep -i mid
libmidgard.so.3 (libc6) => /usr/local/lib/libmidgard.so.3
libmidgard.so (libc6) => /usr/local/lib/libmidgard.so
the MySQL libraries don't appear... no matter what I add inside the
/etc/ld.so.conf.
and my MySQl-3.22.32 libraries are under /usr/lib/mysql :-
server:/usr/lib/mysql# ls -l
total 500
-rwxr-xr-x 1 root root 10990 Jul 14 22:53 libdbug.a
-rwxr-xr-x 1 root root 34624 Jul 14 22:53 libheap.a
-rwxr-xr-x 1 root root 14944 Jul 14 22:53 libmerge.a
-rwxr-xr-x 1 root root 136816 Jul 14 22:53 libmysqlclient.a
-rwxr-xr-x 1 root root 645 Jul 14 22:53 libmysqlclient.la
-rwxr-xr-x 1 root root 31410 Jul 14 22:53 libmystrings.a
-rwxr-xr-x 1 root root 152170 Jul 14 22:53 libmysys.a
-rwxr-xr-x 1 root root 98976 Jul 14 22:53 libnisam.a
config.log says :-
server:/usr/src/midgard/mod_midgard-1.4beta5a# less config.log
configure:937: checking for mgd_connect in -lmidgard
configure:956: gcc -o conftest -g -O2 conftest.c -lmidgard 1>&5
/usr/local/lib/libmidgard.so: undefined reference to `g_string_free'
/usr/local/lib/libmidgard.so: undefined reference to `mysql_store_result'
/usr/local/lib/libmidgard.so: undefined reference to `mysql_fetch_row'
/usr/local/lib/libmidgard.so: undefined reference to `mysql_init'
/usr/local/lib/libmidgard.so: undefined reference to `g_string_new'
/usr/local/lib/libmidgard.so: undefined reference to `mysql_close'
/usr/local/lib/libmidgard.so: undefined reference to `mysql_free_result'
/usr/local/lib/libmidgard.so: undefined reference to `g_string_assign'
/usr/local/lib/libmidgard.so: undefined reference to `g_byte_array_new'
/usr/local/lib/libmidgard.so: undefined reference to `mysql_query'
/usr/local/lib/libmidgard.so: undefined reference to `mysql_real_connect'
/usr/local/lib/libmidgard.so: undefined reference to `g_byte_array_free'
/usr/local/lib/libmidgard.so: undefined reference to
`g_byte_array_set_size'
/usr/local/lib/libmidgard.so: undefined reference to
`g_byte_array_append'
collect2: ld returned 1 exit status
Does anyone have any idea what could have gone wrong? This is the first
time I am trying out Mid-gard and cannot quite figure out what is going
wrong here.
Many thanks in advance!
--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org
To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]