"Tarjei Huse" <[EMAIL PROTECTED]> wrote:
> one nifty utility for making sure this does not happen, is checkinstall. It
> has saved my but a few times :)
> But, beware when using php4. Checkinstall sees that php changes httpd.conf,
> and if you do rpm -e php  you'll end up deleting your httpd.conf file. Keep
> a backup.

I didn't know chkinstall, but also note that the lib Makefile has an 'uninstall' 
target, so if you do:
# make uninstall
it will uninstall the libs, repligard and its config files, based on the current 
installation paths, of course (this means it cannot be used if you already replaced 
the sources).
You still have to delete the other files (mod_midgard.so, midgard-root.php[3] and 
midgard.so) by hand though.

Regards,
David

> This would help people out of situations like this one.
> 
> Tarjei.
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Eric
> > Thompson
> > Sent: 29. april 2001 07:43
> > To: [EMAIL PROTECTED]
> > Subject: Re: [midgard-user] Undefined symbol errors
> >
> >
> > David,
> >
> > your instructions below were very helpful. I had previously
> > wondered what would be necessary to clean up after installing a
> > new version on top of an existing one.
> >
> > Could a refined version of the below be put in the Midgard FAQ?
> > Perhaps under the topic of "Uninstalling Midgard" or some such.
> > I believe a lot of people could benefit from it, and a lot of
> > problems avoided.
> >
> > However, I did the below and am now getting the following error:
> >
> > /****************************************************/
> > bash-2.04# /www/bin/apachectl start
> >  Syntax error on line 249 of /www/conf/httpd.conf:
> >  Cannot load /www/libexec/mod_midgard.so into server:
> > shared object not
> > open
> > /*****************************************************/
> >
> > I believe I read somewhere that php4 had to be compiled statically
> > and not as a module in order for session support to work. I compiled
> > php4 with:
> >  --enable-mgd-session
> > so perhaps that is my problem? So I would have to recompile
> > apache with
> > php4 staticly linked?
> >
> > At this point I am somewhat confused as to how Midgard works in
> > conjunction
> > with php4, especially in regard to session management.
> >
> > The on-line documentation states:
> >
> >  A.5.1. Is the Midgard distribution an entire
> >               replacement for my current PHP build?
> >
> >               Yes, Midgard is a replacement to your copy of PHP3. The
> > Midgard
> >               version should be able to run any PHP stuff...
> >
> > What are the relationships when php4 is in the picture, and
> > in regard to
> > v.1.4.1?
> >
> > Cheers,
> >  Eric
> >
> >
> > David Guerizec wrote:
> > >
> > > Hi,
> > >
> > > For all of you that are seeing an undefined symbol error at
> > apache's startup,
> > > please make sure you don't have any old midgard library
> > laying around.
> > >
> > > Here is how to proceed:
> > >
> > > if midgard-lib was compiled without --prefix, the default prefix is
> > > /usr/local, that means that the libmidgard.* files will be
> > in /usr/local/lib,
> > > and the include files will be in /usr/local/include/midgard
> > >
> > > so, in general, midgard installs these files:
> > >
> > > $prefix/lib/libmidgard.*
> > > $prefix/include/midgard*
> > > $prefix/etc/repligard.conf
> > > $prefix/bin/repligard
> > > $prefix/share/midgard*
> > >
> > > /path/to/apache/modules/mod_midgard.so
> > > /path/to/apache/modules/libphp3.so # for midgard PHP3
> > > /path/to/php/extensions/midgard.so # for midgard PHP4
> > >
> > > now, you have to remove these files.
> > > to find the prefix(es), you can either do:
> > > # locate midgard; locate repligard
> > >  and delete all but your midgard source directory
> > > or do:
> > > # ldconfig -p | midgard
> >
> > I believe you meant:
> >
> >  # ldconfig -p | grep midgard
> >
> > >  this will give you the prefix (before lib/libmidgard.so*),
> > then delete every
> > > midgard file under this prefix
> > >
> > > after you've deleted every midgard files, check your
> > /etc/ld.so.conf, it must
> > > contain the path to the midgard library directory, ie.
> > /usr/local/lib for the
> > > default installation, $prefix/lib in general.
> > >
> > > now run ldconfig and repeat the previous steps to check
> > that you didn't forget
> > > another instance of the midgard lib.
> > >
> > > once you're sure you've got a clean system, cd into your
> > midgard source
> > > directory, and do:
> > > # cd lib; make install
> > > # cd ../mod; make clean; ./config.status; make install
> > > # cd ../php; make clean; ./config.status; make install  <if
> > you install PHP3>
> > > # cd ../php4; make clean; ./config.status; make install <if
> > you install PHP4>
> > >
> > > Hope this helps (and please correct me if something is wrong).
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Best regards,                                 David Guerizec
http://www.guerizec.net/david/       http://www.imuable.org/
http://www.midgard-project.org/ http://www.aurora-linux.com/

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

Reply via email to