1 Updated instructions are found at
3 http://l3lang.sourceforge.net/
5 in the "Installation" section. Below is the text version.
11 The raw files are available from the sourceforge [project] page, but
12 read the following before installing.
14 l3lang and l3gui are separate packages, with different prerequisites.
16 l3lang only requires Python (2.4 or newer) and is therefore trivial
19 l3gui requires l3lang, Python, pygtk (2.4 or newer), libgnomecanvas,
20 and the canvas part of the gnome-python binding.
21 In recent linux distributions, these are available via the package
22 handling system; follow the [system] installation steps.
24 For older or customized systems, use the self-contained [alternate installation] method.
28 5.1 Using system libraries
29 --------------------------
32 Newer releases of linux and FreeBSD make the prequisites available via
33 simple commands. First install these prerequisites, then install L3.
37 yum install gnome-python2-canvas
41 apt-get install python-gnomecanvas
46 To install l3 proper, download [l3lang-0.3.1.tar.gz] and [l3gui-0.3.1.tar.gz], extract
47 them, and run setup.py. The download steps using the shell are:
49 wget http://cci.lbl.gov/~hohn/l3lang-0.3.1.tar.gz
50 wget http://cci.lbl.gov/~hohn/l3gui-0.3.1.tar.gz
51 tar zxf l3lang-0.3.1.tar.gz
52 tar zxf l3gui-0.3.1.tar.gz
56 Installation can be to system directories, a local directory, or l3
57 can be run from the distribution directory without installation.
58 Choose *one* of the following.
61 System installation is done via
63 python setup.py install --record INSTALLED-FILES
65 python setup.py install --record INSTALLED-FILES
66 but requires root access.
68 + Installation to prefix
69 Installation to a local directory is supported; the minimal
70 shell setup for bash/ksh for using a local directory
71 =$HOME/linux-local= with Python 2.4 is:
73 export MYPREFIX=$HOME/linux-local
74 export PATH=$MYPREFIX/bin:$PATH
75 export PYTHONPATH=$MYPREFIX/lib/python${PYVERSION}/site-packages:$PYTHONPATH
76 export MANPATH=$MYPREFIX/man:$MYPREFIX/share/man:$MANPATH
78 followed by installation via
80 python setup.py install --prefix=$MYPREFIX --record INSTALLED-FILES
82 python setup.py install --prefix=$MYPREFIX --record INSTALLED-FILES
85 + Use without installation
86 The minimalistic adjustments are to ignore the installation step and only set
87 the PATH, PYTHONPATH, and MANPATH:
88 export PYTHONPATH=`pwd`/l3gui:`pwd`/l3lang:$PYTHONPATH
89 export PATH=`pwd`/l3gui/bin:`pwd`/l3lang/bin:$PATH
90 export MANPATH=`pwd`/l3gui/doc/man:`pwd`/l3lang/doc/man:$MANPATH
91 This requires removing the version number:
92 mv l3lang-0.3.1 l3lang
94 chmod a+x l3lang/bin/* l3gui/bin/*
97 Once installed, a quick installation check can be done by reading the
98 documentation and running the toplevel:
107 5.2 Self-contained installation
108 -------------------------------
109 An installer based on [GARNOME] (itself based on the [linux-bbc] gar build
110 setup) is available. This provides a local environment for using /
111 incorporating other packages outside the system's package handler
112 (rpm/dpkg/pkg_add), which is particularly useful for
113 - older linux/UNIX versions lacking the gtk/gnome canvas;
114 - a self-contained installation to a local directory, including
115 environment-setting scripts and other niceties;
116 - multiple independent development trees.
118 This installer is used for the [sparx] project that l3 is part of and
119 contains rules for many more packages, but
120 installation of the L3 subset is simple.
122 Installation from source can be done as follows.
126 mkdir /your/installer/path
127 cd /your/installer/path
131 svn co svn://cci.lbl.gov/sparx-installer/trunk \
134 If you do not have subversion, and don't mind reinstalling everything
135 occasionally, you can instead use this:
137 wget http://cci.lbl.gov/~hohn/sparx-installer.tar.gz
138 tar zxvf sparx-installer.tar.gz
140 If you don't have wget, try curl instead:
142 curl http://cci.lbl.gov/~hohn/sparx-installer.tar.gz -o sparx-installer.tar.gz
146 ./configure /your/sparxroot
148 The last step (./configure) will print a summary. If there are any
149 errors, your system is missing the listed prerequisite(s).
151 The install is done via
155 When run successfully, this takes between 1.5 and 2.5 hours,
156 depending on the machine used.