forked from githwxi/ATS-Postiats
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathINSTALL
88 lines (51 loc) · 1.59 KB
/
INSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#
#
# Build and Install
#
#
######
Author: Hongwei Xi
Authoremail: gmhwxi AT gmail DOT com
######
Start time: 2013-09-02
######
Last recorded update: 2013-09-02
######
Step 1: Get the package
Step 2: Build the package
Step 3: Install the built package (optional)
######
Step 1: Get the package
The current release of ATS2 can be cloned by executing
the following command:
git clone git://git.code.sf.net/p/ats2-lang/code ATS-Postiats
It can also be downloaded by following the link:
http://sourceforge.net/projects/ats2-lang/download
Say the tarball you download is named
ats2-lang-postiats-x.x.x.tgz
where x.x.x is the version of the package. You can untar it by
issuing the following command-line:
tar vxfz ats2-lang-postiats-x.x.x.tgz
which creates a directory named ATS-Postiats
######
Step 2: Build the package
First enter the directory containing the package:
cd ATS-Postiats
Then issue the next command-line:
make all
After 'make' is finsihed, the two commands 'patscc' and 'patsopt' for
compiling ATS source code can be found in ATS-Postiats/bin. In order to
use this build, please set the environment variable PATSHOME as follows
(assuming the current directory is still ATS-Postiats):
export PATSHOME=`pwd`
######
Step 3. Install the built package (optional)
Assume that you want to install the package in a directory
named /path/to/MYATS/.
First please configure:
./configure --prefix==/path/to/MYATS
After configuration is done, please execute
make install
Please set PATSHOME as follows:
export PATSHOME=/path/to/MYATS/lib/ats2-postiats-x.x.x
###### end of [INSTALL] ######