Sophie

Sophie

distrib > Mandriva > current > x86_64 > by-pkgid > 94d0391a8cf05d548ec160c837423f06 > files > 5

mmorph-2.3.4.2-9mdv2010.1.x86_64.rpm

#
#    mmorph, MULTEXT morphology tool
#    Version 2.3, October 1995
#    Copyright (c) 1994,1995 ISSCO/SUISSETRA, Geneva, Switzerland
#    Dominique Petitpierre, <petitp@divsun.unige.ch>

How to install mmorph
=====================

Prerequisite: GNU flex-2.4.7 and Berkeley db.1.79 or later
----------------------------------------------------------

The mmorph program needs GNU flex and the Berkeley db librairies.

Flex is distributed in the framework of the GNU project and can be found on
any archive server carrying the GNU programs.  For example:
	issco-ftp.unige.ch:/pub/flex.tar.gz
	prep.ai.mit.edu:pub/gnu/flex-2.5.2.tar.gz
When configuring flex, make sure you generate an 8 bits scanner (specify
DEFS=-DDEFAULT_CSIZE=256).
You can tell the version and compilation options of an already installed
flex with:  "flex -V" or "flex -v".

Flex has to be accessible (in one of the directories of the environment
variable PATH), when performing "make".


The original sources of the Berkeley db librairies package are available
from (last version is 1.85):
	issco-ftp.unige.ch:/pub/db.tar.Z
	ftp.cs.berkeley.edu:ucb/4bsd/db.tar.Z

Here are the steps I had to perform in order to install properly DB:  (your
mileage may vary)

    cd PORT/<MACH>
    make
    cp libdb.a <USRLOCALDIR>/lib
    cp include/db.h <USRLOCALDIR>/include
    mkdir <USRLOCALDIR>/include/sys
    cp include/sys/cdefs.h <USRLOCALDIR>/include/sys/cdefs.h

Where <MACH> is the directory of PORT corresponding to your machine, and
<USRLOCALDIR> is a path of the local hierachy (usually "/usr/local").

Making the binary
-----------------

Before trying to compile, you may want to edit the file Makefile.in to
adapt the values of USRLOCALDIR, MTHOME, USERSECT and FILESECT (see below).
If you have afterthoughts you may specify them later on the make command
line (see below).

Compiling is done in two steps: configuration and compilation:

	./configure
	make
or
	./configure
	make USRLOCALDIR=<USRLOCALDIR>

Where <USRLOCALDIR> is the hierarchy were Berkeley DB is installed.  To
change permanently the value of USRLOCALDIR, edit Makefile.in before using
configure.

"configure" will test for the presence of alternative C compilers and
prefer "gcc" over "cc".  If you want to force a particular compiler, you
may specify the environment variable CC before running "configure".  You
must clear the configuration cache "config.cache" for the change to take
effect.  For example to force the use of "cc" you do

in csh:
    rm -f config.cache
    setenv CC cc
    ./configure
in sh:
    rm -f config.cache
    CC=cc ./configure


Testing the binary
------------------
Type
    make test

If it passes the test, the result should be "test passed OK!  ;-)".  If not
you may consult the file example.out to see if there are any error messages
or compare it with data/example.test.

Installing the binary and man pages
-----------------------------------

To install the package. type
    make install
or
    make MTHOME=<MTHOME> USERSECT=<I> FILESECT=<J> install

Where <MTHOME> is the path of the hierarchy were mmorph has to be installed
(in <MTHOME>/bin and <MTHOME>/man/man1 and <MTHOME>/man/man5 ), and
USERSECT (default 1) and FILSECT (default 5) are the number of the manual
sections where applications and file format manual pages go.  You can also
edit the file Makefile.in, before running configure To adapt the values of
these parameters.


Bug reports and support
-----------------------

I would be happy to know about your experience installing or using this
program. Here is my contact information:

Mr. Dominique Petitpierre    | Internet: petitp@divsun.unige.ch
ISSCO, University of Geneva  | X400: C=ch; ADMD=400net; PRMD=switch;
54 route des Acacias         |       O=unige; OU=divsun; S=petitp
CH-1227 GENEVA (Switzerland) | Tel: +41/22/705 7117 | Fax: +41/22/300 1086