source: CIVL/INSTALL@ 4f22a92

1.23 2.0 main test-branch
Last change on this file since 4f22a92 was 9f99bc5, checked in by Manchun Zheng <zmanchun@…>, 12 years ago

fix a typo

git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@367 fb995dde-84ed-4084-dfe6-e5aef3e2452c

  • Property mode set to 100644
File size: 6.7 KB
Line 
1 CIVL Installation Instructions
2
3------------------------- Binary Distribution -------------------------
4
5For most users, this will be the easiest way to install and use CIVL.
6
71. Install a Java 7 SDK if you have not already. Go to
8http://www.oracle.com/technetwork/java/javase/downloads/ for the
9latest from Oracle. On linux, you can optionally sudo apt-get install
10openjdk-7-jdk.
11
122. If you already have the VSL dependencies library, you may
13skip this step. Otherwise, download the archive of VSL
14dependencies from http://vsl.cis.udel.edu/tools/vsl_depend,
15choosing the version for your OS type (32-bit linux,
1664-bit linux, or 64-bit OS X). Unzip and untar the
17downloaded .tgz file and you will have a folder named "vsl".
18If you do not already have a directory /opt, create one with
19"mkdir /opt". Move vsl into /opt. Use sudo as needed.
20
213. Download the approrpriate CIVL distribution from
22http://vsl.cis.udel.edu/civl.
23
244. Unzip and untar the downloaded file if this does not happen
25automatically. This should result in a folder named
26CIVL-TAG, where TAG is some version id string. This folder
27contains the following:
28
29 - README : this file
30 - bin : containing one executable sh script called "civl"
31 - lib : containing civl-TAG.jar
32 - doc : containing some documentation about CIVL
33 - licenses : licenses for CIVL and included libraries
34 - examples : some example CIVL programs
35
365. Move CIVL-TAG into /opt.
37
386. Put the civl script in your path however you like to put things
39in your path. Either move it to a directory in your path,
40or create a symlink to it, or edit your .profile or equivalent
41to put it in your path.
42
43Now you should be able to run CIVL from the command line by
44typing "civl <filename>". Type just "civl" for usage information.
45
46
47
48------------------------- Source Installation -------------------------
49
50We recommend using the Eclipse IDE for Java/EE developers.
51
521. Install prerequisite projects ABC, SARL and GMC.
53 Make sure that the three projects are put in the workspace
54 directory where CIVL will be put.
55
56 a. Install the C front-end ABC. In Eclipse,
57 select New Project...from SVN, use the archive
58 svn://vsl.cis.udel.edu/abc. After entering that, open it
59 up and select the "trunk". After checking out trunk, name
60 the project "ABC". Then follow the instructions in the INSTALL
61 file for Eclipse installation. Build the abc.jar from within
62 Eclipse by right-clicking (or ctrl-clicking on OS X) on the
63 build.xml file and selecting Run As->Ant Build.
64
65 b. Install the symbolic algebra and reasoning library SARL.
66 In Eclipse, select New Project...from SVN, use the archive
67 svn://vsl.cis.udel.edu/sarl. After entering that, open it
68 up and select the "trunk". After checking out trunk, name
69 the project "SARL". Then follow the instructions in the INSTALL
70 file for Eclipse installation. Build the sarl.jar from within
71 Eclipse by right-clicking (or ctrl-clicking) on the build.xml
72 file and selecting Run As->Ant Build.
73
74 c. Install the generic model checking utilities package GMC.
75 In Eclipse, select New Project...from SVN, use the archive
76 svn://vsl.cis.udel.edu/gmc. After entering that, open it
77 up and select the "trunk". After checking out trunk, name
78 the project "GMC". Build the gmc.jar from within Eclipse
79 by right-clicking (or ctrl-clicking) on the build.xml file and
80 selecting Run As->Ant Build.
81
822. From within Eclipse, select New Project...from SVN. The archive is
83svn://vsl.cis.udel.edu/civl. After entering that, open it up and
84select the "trunk". (It is simplest to just check out the trunk for
85the Eclipse project.)
86
873. Check out the trunk, and create the project using the New Java
88Project Wizard as usual, naming it "CIVL". The .project, .classpath,
89and other Eclipse meta-data are already in the SVN archive, saving you
90a bunch of work.
91
924. Download the tgz archive of VSL dependencies from
93 http://vsl.cis.udel.edu/tools/vsl_depend,
94 choosing the right .tgz according to your platform:
95
96 vsl_linux32-1.0.tgz - 32-bit linux
97 vsl_linux64-1.0.tgz - 64-bit linux
98 vsl_osx64-1.0.tgz - 64-bit osx
99
100 Unzip the .tgz file and you will have the folder vsl.
101 Move vsl to /opt (you might need to use sudo for this.
102 Also, if you don't already have a directory called /opt,
103 you will have to create it with mkdir /opt).
104
105 Suppose that you put the .tgz file (or .tar file if your browser
106 unzipped it automatically to a .tar file) in the directory $Download.
107 You can use the following commands:
108
109 $ cd $Download
110 $ tar xzf YourTgzOrTarFile vsl
111 $ sudo mv vsl /opt
112
113 Now you can type "ls /opt/vsl", and the output should be
114
115 README.txt lib licenses src
116
1175. Create a file build.properties in the directory where build.xml is in.
118 Copy and paste the content from properties/build.properties.osx or
119 properties/build.properties.linux depending on your platform.
120 If your workspace directory is the default setting of Eclipse,
121 i.e., HOME/Documents/workspace for osx or HOME/workspace for linux,
122 then you dont have to anything.
123 Otherwise, you need to edit the entry "workspace" to point to the
124 corresponding directory where you put the projects ABC, SARL and GMC.
125
1266. Navigate to Preferences -> Java -> Build Path -> ClassPath
127 Variables, and then select New to create a classpath variable VSL,
128 and specify its value to be /opt/vsl. Navigate to Preferences -> Run/Debug
129 -> String Substitution -> New, and then define an entry vsl_lib and
130 set its value to be /opt/vsl/lib.
131
1327. Do a clean build. Everything should compile. Generate the civl.jar
133 by right-clicking (or ctrl-click on OS X) the build.xml file and
134 Run As->Ant Build.
135
1368. Go to Run->Run Configurations... Create a new JUnit configuration.
137 Name it CIVL Tests. Select "Run all tests in the selected project..."
138 and navigate to the folder "test" in the CIVL project.
139 The Test runner should be JUnit 4. Under the Arguments tab, type
140 "-ea" (without the quotes) in the VM arguments area (to enable assertion
141 checking). Under the Environment tab, create an entry
142 DYLD_LIBRARY_PATH (OS X) or LD_LIBRARY_PATH (linux),
143 specify its value by clicking Variables and choose vsl_lib from the list,
144 or you may type ${vsl_lib} in the value entry.
145
1469. An example of how to set up a single test from within Eclipse:
147 create a new Run Configuration via the Run->Run
148 Configurations... menu. Create a new "Java Application"
149 configuration. Call it "CIVL barrier2". The Project is CIVL. The
150 main class is edu.udel.cis.vsl.civl.CIVL. Under the Arguments tab,
151 set the Program arguments to "examples/barrier2.cvl" (without the
152 quotes). Modify the VM arguments and the Environment as in the step
153 above. You should now be able to run the test by clicking "Run".
Note: See TracBrowser for help on using the repository browser.