Greetings!

Here are notes for installing Midgard 1.4.3 to Solaris 8.

----------------------

Adapted install notes (orinal prefixes and program paths changed)
for Midgard on Solaris 2.8

Verify that gnu compiler tools plus automake/autoconf and friends are
installed.

midgard-lib-1.4.3:
----
LDFLAGS="-L/usr/ucblib -lucb -Wl,-R/usr/ucblib \
 -L/opt/sfw/lib/gcc-lib/sparc-sun-s olaris2.8/2.95.2 -lgcc" \
 LEX=/path_to_flex/bin/flex ./configure --prefix= \
 /your_prefix \
 --with-glib-config=/path_to_glib/bin/glib-config \
 --with-mysql=/path_to_mysql \
 --with-expat=/path_to_expat

Edit src/midgard.c, add:
#include <stdarg.h> 
#include </usr/ucbinclude/sys/file.h>

MAKE=gmake gmake
gmake install
----

midgard-php4-1.4.3:
----

cd ../mgd-nadmin-patches
gpatch ../midgard-php4-1.4.3/event.c -i ./event.c.diff
gpatch ../midgard-php4-1.4.3/midgard.c -i midgard.c.diff
gpatch ../midgard-php4-1.4.3/mgd_event.h -i mgd_event.h.diff
cd ../midgard-php4-1.4.3

phpize 
libtoolize -f -c

aclocal
cat /usr/share/aclocal/libtool.m4 aclocal.m4 > x
mv x aclocal.m4
autoconf
autoheader


gmake
gmake install

edit php.ini and add "extension=midgard.so" line

----

mod_midgard-1.4.3:
----

LDFLAGS='-Wl,-R/path_to_expat/lib \
 -Wl,-R/path_to_glib/lib \
 -Wl,-R/midgard_lib_prefix/lib' CC=gcc ./configure \
 --prefix=/your_prefix \
 --with-midgard-config=/midgard_lib_prefix/bin/midgard-config \
 --with-apxs=/path_to_apxs/apxs

gmake
gmake install

----

Midgard data failed to install properly due to repligard bug on the
system (db was then created on linux and copied raw to the solaris),
 there is a patch available but it's not confirmed that it works (yet,
the admins of the computer which had this problem promised
to look into it ASAP) also there were some charset issues (charsets were
not named in the "ISO-8859-1"
fashion, check the typing of the charset name on your system)

----------------------

As you cans see there are some places where the sources
need to be changed. It would be nice if future Midgard
releases supported Solaris out of the box.

We also have installation notes for Solaris 9. I'll send
these to the list as soon as we have verified that the
installation works.

/Bergie

-- 
Henri Bergius                           [EMAIL PROTECTED]
Consultant Partner                      Tel: +358-20-198 6032
Nemein Oy                               http://www.nemein.com/

Nemein Oy has moved. Our new address is Nemein Oy, Innopoli 2,
Tekniikantie 14, FIN-02150 Espoo


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to