25 In this description we will suppose a linux environment and GNU C Compiler. |
25 In this description we will suppose a linux environment and GNU C Compiler. |
26 |
26 |
27 \section downloadLEMON How to download LEMON |
27 \section downloadLEMON How to download LEMON |
28 |
28 |
29 You can download LEMON from the LEMON web site: |
29 You can download LEMON from the LEMON web site: |
30 http://lemon.cs.elte.hu/dowload.html. |
30 http://lemon.cs.elte.hu/download.html. |
31 There you will find released versions in form of <tt>.tar.gz</tt> files. |
31 There you will find released versions in form of <tt>.tar.gz</tt> files. |
32 If you want a developer version (for example you want to contribute in |
32 If you want a developer version (for example you want to contribute in |
33 developing the library LEMON) then you might want to use our Subversion |
33 developing the library LEMON) then you might want to use our Subversion |
34 repository. This case is not detailed here, so from now on we suppose that |
34 repository. This case is not detailed here, so from now on we suppose that |
35 you downloaded a tar.gz file. |
35 you downloaded a tar.gz file. |
36 |
36 |
37 |
37 |
38 |
38 |
39 \section installLEMON How to install LEMON |
39 \section installLEMON How to install LEMON |
40 |
40 |
41 In order to install LEMON you have to do the following |
41 In order to install LEMON you have to do the following steps. |
42 |
42 |
43 Download the tarball (named <tt>lemon-x.y.z.tar.gz</tt> where \c x,\c y |
43 Download the tarball (named <tt>lemon-x.y.z.tar.gz</tt> where \c x,\c y |
44 and \c z are numbers indicating the version of the library: in our example |
44 and \c z are numbers indicating the version of the library: in our example |
45 we will have <tt>lemon-0.3.1.tar.gz</tt>) and issue the following |
45 we will have <tt>lemon-0.3.1.tar.gz</tt>) and issue the following |
46 commands: |
46 commands: |
48 \verbatim |
48 \verbatim |
49 tar xvzf lemon-0.3.1.tar.gz |
49 tar xvzf lemon-0.3.1.tar.gz |
50 cd lemon-0.3.1 |
50 cd lemon-0.3.1 |
51 ./configure |
51 ./configure |
52 make |
52 make |
53 make check #(This is optional, but recomended. It runs a bunch of tests.) |
53 make check #(This is optional, but recommended. It runs a bunch of tests.) |
54 make install |
54 make install |
55 \endverbatim |
55 \endverbatim |
56 |
56 |
57 These commands install LEMON under \c /usr/local (you will |
57 These commands install LEMON under \c /usr/local (you will |
58 need root privileges to be able to install to that |
58 need root privileges to be able to install to that |
59 directory). If you want to install it to some other place, then |
59 directory). If you want to install it to some other place, then |
60 pass the \c --prefix=DIR flag to \c ./configure. In what follows |
60 pass the \c --prefix=DIRECTORY flag to \c ./configure, for example: |
61 we will assume that you were able to install to directory |
61 |
|
62 \verbatim |
|
63 ./configure --prefix=/home/user1/lemon |
|
64 \endverbatim |
|
65 |
|
66 In what follows we will assume that you were able to install to directory |
62 \c /usr/local, otherwise some extra care is to be taken to use the |
67 \c /usr/local, otherwise some extra care is to be taken to use the |
63 library. |
68 library. |
64 |
69 |
65 We briefly explain these commands below. |
70 We briefly explain these commands below. |
66 |
71 |