[BACK]Return to INSTALL CVS log [TXT][DIR] Up to [local] / OpenXM_contrib / gmp / demos / perl

Annotation of OpenXM_contrib/gmp/demos/perl/INSTALL, Revision 1.1.1.1

1.1       ohara       1: Copyright 2001 Free Software Foundation, Inc.
                      2:
                      3: This file is part of the GNU MP Library.
                      4:
                      5: The GNU MP Library is free software; you can redistribute it and/or modify
                      6: it under the terms of the GNU Lesser General Public License as published by
                      7: the Free Software Foundation; either version 2.1 of the License, or (at your
                      8: option) any later version.
                      9:
                     10: The GNU MP Library is distributed in the hope that it will be useful, but
                     11: WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
                     12: or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
                     13: License for more details.
                     14:
                     15: You should have received a copy of the GNU Lesser General Public License
                     16: along with the GNU MP Library; see the file COPYING.LIB.  If not, write to
                     17: the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
                     18: 02111-1307, USA.
                     19:
                     20:
                     21:
                     22:
                     23:
                     24:                   GMP PERL MODULE INSTALLATION
                     25:
                     26:
                     27: This module can be compiled within the GMP source directory or moved
                     28: elsewhere and compiled.  An installed GMP can be used, or a specified
                     29: GMP build tree.  Both static and shared GMP builds will work.
                     30:
                     31: The simplest case is when GMP has been installed to a standard system
                     32: location
                     33:
                     34:        perl Makefile.PL
                     35:        make
                     36:
                     37: If not yet installed then the top-level GMP build directory must be
                     38: specified
                     39:
                     40:        perl Makefile.PL GMP_BUILDDIR=/my/gmp/build
                     41:        make
                     42:
                     43: In any case, with the module built, the sample program provided can be
                     44: run
                     45:
                     46:        perl -Iblib/arch sample.pl
                     47:
                     48: If you built a shared version of libgmp but haven't yet installed it,
                     49: then it might be necessary to add a run-time path to it.  For example
                     50:
                     51:        LD_LIBRARY_PATH=/my/gmp/build/.libs perl -Iblib/arch sample.pl
                     52:
                     53: Documentation is provided in pod format in GMP.pm, and will have been
                     54: "man"-ified in the module build
                     55:
                     56:        man -l blib/man3/GMP.3pm
                     57: or
                     58:        man -M`pwd`/blib GMP
                     59:
                     60: A test script is provided, running a large number of more or less
                     61: trivial checks
                     62:
                     63:        make test
                     64:
                     65: The module and its documentation can be installed in the usual way
                     66:
                     67:        make install
                     68:
                     69: This will be into /usr/local or wherever the perl Config module
                     70: directs, but that can be controlled back at the Makefile.PL stage with
                     71: the usual ExtUtils::MakeMaker options.
                     72:
                     73: Once installed, programs using the GMP module become simply
                     74:
                     75:        perl sample.pl
                     76:
                     77: And the documentation read directly too
                     78:
                     79:        man GMP

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>