ApCoCoALib:Install

From ApCoCoAWiki
Revision as of 15:53, 13 December 2007 by Dheldt (talk | contribs) (pushing in current state.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This is a copy of ApCoCoALib's INSTALL file:


INSTALLATION guide for the CoCoALib
===================================

Currently these instructions are for Unix/Linux and MacOSX machines.
WE CANNOT HELP MICROSOFT USERS (except to advise them to switch to GNU/Linux).

This library is supplied as source code in C++, and must be compiled
before you can use it -- instructions on how to do this are below.


Prerequisites
-------------

Before compilation you must ensure that you have available:-

 * a "make" program (any version should suffice);

 * a C++ compiler together with the standard C++ libraries
   (we use extensively g++ (versions 3.4.n and 4.0.n))

 * an installation of GMP (version 4.1.4 or later) -- see http://www.swox.com/gmp/
   [GMP 4.1.3 contains a critical bug affecting CoCoA::RingFloat]

If you need to install g++ or GMP, please refer to their distributions
for the appropriate instructions.



Compilation of CoCoALib
-----------------------

Short instructions:  just run these commands from the CoCoALib root directory
  ./configure
  make
  make examples   # if you want to compile the examples


To be able to use the CoCoA5 library you must first compile it.  Currently
the library has been built and tested only on Linux/Unix platforms and on
MacOSX.  The instructions below refer to these platforms only.

(1) The (interactive) configure script attempts to find a C++ compiler, and
    the GMP library and header files.  If it has trouble, it will print out
    a message telling you.

(2) If you are confident about choosing the compiler and its compilation flags
    then run   "./configure --help"   for information about specifying these.

(3) Execute "make" -- this will compile the library and run the tests.
    Ideally you should check through the output produced to ensure that
    no errors were found.  The presence of a few compiler warnings may
    safely be ignored.  The compiled library is placed in lib/libcocoa.a.
    The command "make install" does not yet work.

    The command "make library" will compile the library but not run the tests.
    The command "make check" will run the tests -- the tests are in src/tests/.

(4) Have a look at the examples in the subdirectory examples/ and enjoy
    CoCoALib.  We look forward to hearing from you.



Trouble?
--------

If you encounter problems while trying to compile CoCoALib, try writing on
the CoCoA Forum:
    http://cocoa.mathematik.uni-dortmund.de/forum/
In your message you should state the platform and compiler you are
using; also the version of GMP should be mentioned.  Alternatively you
can send us email at cocoa@dima.unige.it.

=============================================================================
RCS header/log

$Header: /Volumes/Home/cocoa/cvs-repository/CoCoALib-0.99/INSTALL,v 1.1.1.1 2007/03/09 15:16:10 abbott Exp $
$Log: INSTALL,v $
Revision 1.1.1.1  2007/03/09 15:16:10  abbott
Imported files

Revision 1.2  2006/06/21 17:04:12  cocoa
Improved README, INSTALL and configure script.
(perhaps I should have done this prior to release?)