fixed version in rockspec
[luagraph.git] / README
blob7d9d6c0afdb9b88c9e3de2bb0f92c02a6900d6a8
1 LuaGRAPH
2 ========
5 * LuaGRAPH
6   --------
7   
8   LuaGRAPH is a binding to the graphviz library.
10   LuaGRAPH requires the graphviz library version 2.26 or later, which
11   can be downloaded from 
12         
13         http://www.graphviz.org/
16   You must have Lua version 5.1, 5.2 or 5.3. Lua can be downloaded 
17   from its home page:
18           http://www.tecgraf.puc-rio.br/lua/
21 * Documentation
22   -------------
24   Documentation of LuaGRAPH comes with the LuaGRAPH distribution. I recommend also to
25   read the graphviz documentation, which can be found here:
27         http://www.graphviz.org/Documentation.php
28         
30 * Legal matters
31   -------------
33   See the license agreement in the file LICENSE.
35 * Download
36   --------
37   LuaGRAPH can be downloaded from github at
38         
39         https://github.com/hleuwer/luagraph
41   or install with luarocks. See below under "Installation".
43 * Configuration
44   -------------
46   Before building LuaGRAPH you have to adopt the config file by
47   adjusting various constants to the installed Lua and Graphviz version.
49 * Status
50   ------
51   Newest version is LuaGRAPH 2.2.0 now supports the `cgraph´ library and all
52   Lua versions from Lua 5.1 to Lua 5.3. Lua 5.0 is no longer supported.
53   It has been tested on MacOS Sierra version 10.12.13, Linux Debian and
54   Windows 10 running as guest in a Virtual Box virtual machine under MacOS.
56   Under Windows luarocks has only been tested with Lua 5.1 using the
57   LuaForWindows installation.
58   
59 * Installation
60   ------------
61   
62   Install via Luarocks (MacOS and Linux only)
63   - - - - - - - - - - - - - - - - - - - - - - 
64   Simply type the following:
66      $ sudo luarocks GRAPHVIZ_DIR=/opt/local install luagraph
68   You may have to change the value for the GRAPHVIZ_DIR variable to ensure
69   that luarocks finds your GRAPHVIZ installation. On MacOS it is typically
70   installed in /opt/local or /usr/local or something similar depending on
71   the package manager used.
73   Manual Installation under MacOS or Linux
74   - - - - - - - - - - - - - - - - - - - - -
75   In order to build LuaGRAPH on a Linux, MacOS or Cygwin/Mingw based
76   POSIX like system:
78   1. Make sure you have Lua 5.1 to 5.3. 
79      The file test.lua in the test subdirectory uses lualogging which 
80      can be installed via Luarocks at http://www.luarocks.org.
82   2. With graphviz version 2.12 you might have to use the `ltdl' library 
83      that comes with graphviz in order to have the rendering plugins to 
84      work properly. Version 2.40 is currently the last graphviz version
85      that is supported.
87   3. LuaGRAPH comes with a makefile and a simple config file to adopt
88      the make process to your target system.
90   4. Adopt build configuration to your platform by editing the file
91      config according to you needs.
93   5. Compile the package
95      Type 
96         make
98      If make succeeds you get:
100      * a Lua extension library "graph.so.x.0" in the src sub-directory.
101      * a copy "core.so" of the same Lua extension library in ./graph
103   6. Type "make install" as user root in order to install all relevant
104      files in standard places. The directory /usr/local is the default
105      install prefix.
107   Manual Build and Installation under Windows
108   - - - - - - - - - - - - - - - - - - - - - - 
109   In order to build LuaGRAPH on Windows, use the Visual Studio 2008
110   project file that comes with source code. Load the project and build
111   a Release version inside the Visual Sudio IDE. To make the luagraph
112   module available copy the file Release/luagraph-2.0.0-2.dll into
113   graph/core.dll. Sorry for this inconvenience, which I may remove
114   once I have a really large amount of time.
116 * Environment Variables
117   ---------------------
119   None.
122 * Comments and bug reports
123   ------------------------
125   Please send your comments and bug reports to the Lua mailing list.
127 December 2006 (April 2024)
129 Have fun.