Metakit Install hints?

Jean-Claude Wippler jcw at equi4.com
Fri Feb 4 15:49:47 CET 2000


Steven,

> I want to play with the database capabilities of metakit.

Neat!

> I downloaded mk-i586-pc-linux-gnu.tar.gz, untarred it into
> ~/pyth/mk-i586-pc-linux-gnu
> 
> The README under UNIX does not seem to have any relation to what I am
> seeing in the mk-i586-pc-linux-gnu directory. No .configure
> executable, no INSTALL.

I'm sorry.  I hate installs (long story... check the TclKit pages on
www.equi4.com as an example of where I'm headed).  Unfortunately, I
forgot to make it clear that Mk4py does not need any install.  Do this:

- get the proper binary: Mk4py.so in your case
- put it next to a demo script such as this one:
    import Mk4py
    db = Mk4py.Storage('data.mk',1)
    vw = db.getas('people[name:S,age:I]')
    vw.append(name='Tarzan',age=67)
    vw.append(name='Jane',age=23)
    db.commit()
    for r in vw.sort(vw.age): print r.name, r.age
- that's it for the current 2.0 release

I intend to include a small example such as the above and better
"getting started" notes in the next release.  Also more Python code
written on top of this raw core, to be added as a "mk.py" wrapper.

> What I really need is a short rundown on how to get metakit working
> with Python 1.5.2 No big dissertation needed.

I hope the above suits you.

> Environment is SuSE Linux 6.3 2.2.14 Intel

If doesn't work out of the box due to glibc nastiness or other, then
you'll need to rebuild it from the source distribution, which uses a
standard autoconf/libtool-based setup.

If you have questions, you might want to post them on the MK-Scripting
mailing list, see: http://sourceforge.net/mail/?group_id=736

-- Jean-Claude



More information about the Python-list mailing list