source: CIVL/mods/dev.civl.abc/INSTALL@ 1aaefd4

main test-branch
Last change on this file since 1aaefd4 was aad342c, checked in by Stephen Siegel <siegel@…>, 3 years ago

Performing huge refactor to incorporate ABC, GMC, and SARL into CIVL repo and use Java modules.

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

  • Property mode set to 100644
File size: 5.0 KB
Line 
1 ABC Installation Instructions
2
3======================= Installation from source =======================
4
51. Install a Java 8 SDK if you have not already. Go to
6http://www.oracle.com/technetwork/java/javase/downloads/ for the
7latest from Oracle. On linux, you can optionally sudo apt-get install
8openjdk-8-jdk.
9
102. Install Apache ant, if you don't already have it
11(http://ant.apache.org).
12
133. Download the tgz archive of VSL dependencies from
14 http://vsl.cis.udel.edu/lib/tools/vsl_depend,
15 choosing the right .tgz according to your platform:
16
17 vsl_linux32-1.0.tgz - 32-bit linux
18 vsl_linux64-1.0.tgz - 64-bit linux
19 vsl_osx64-1.0.tgz - 64-bit osx
20
21 Unzip the .tgz file and you will have the folder vsl.
22 Move vsl to /opt (you might need to use sudo for this.
23 Also, if you don't already have a directory called /opt,
24 you will have to create it with mkdir /opt).
25
26 Suppose that you put the .tgz file (or .tar file if your browser
27 unzipped it automatically to a .tar file) in the directory $Download.
28 You can use the following commands:
29
30 $ cd $Download
31 $ tar xzf YourTgzOrTarFile vsl
32 $ sudo mv vsl /opt
33
34 Now you can type "ls /opt/vsl", and the output should be
35
36 README.txt lib licenses src
37
384. svn checkout svn://vsl.cis.udel.edu/abc/trunk abc
39
405. cd abc
41
426. Look at build_default.properties and see if the paths
43are correct for your system. If they are not, you will have
44to create a file called build.properties (in the same directory),
45copying the content of build_default.properties, but correcting
46values as necessary. For example, if your VSL dependencies path
47is not in /opt/vsl, then you need to do this,
48modifying the value of entry "root" to be the path to your
49VSL dependencies folder. Similarly, if the location of sarl.jar
50is not as specified in build_default.properties (the assumption
51is it will be found in directory
52Users/${user.name}/Documents/workspace) then you will
53have to do this, correcting the value of workspace or sarl.jar.
54
557. Type "ant" and everything should build without warnings or errors
56and produce abc.jar. Type "ant test" to run a JUnit test suite. All
57tests should pass.
58
59If there are any problems, email siegel at udel dot edu.
60
61
62============== Installation from source using Eclipse ==================
63
641. Start with Eclipse IDE for Java/EE developers, available at
65http://www.eclipse.org/downloads/
66
672. Do steps 1-3 from above if you have not already.
68
693. Install an SVN plugin in Eclipse (such as Subversive) if you have
70not already.
71
724. Install the symbolic algebra and reasoning library SARL.
73In Eclipse, select New Project...from SVN, use the archive
74svn://vsl.cis.udel.edu/sarl. After entering that, open it
75up and select the "trunk". After checking out trunk, name
76the project "SARL". Then follow the instructions in the INSTALL
77file for Eclipse installation. Build the sarl.jar from within
78Eclipse by right-clicking (or ctrl-clicking) on the build.xml
79file and selecting Run As->Ant Build.
80
815. From within Eclipse, select New Project...from SVN. The archive is
82svn://vsl.cis.udel.edu/abc. After entering that, open it up and
83select the "trunk". (It is simplest to just check out the trunk for
84the Eclipse project.)
85
866. Check out the trunk, and create the project using the New Java
87Project Wizard as usual, naming it "ABC". The .project, .classpath,
88and other Eclipse meta-data are already in the SVN archive, saving you
89a bunch of work.
90
917. Navigate to Preferences -> Java -> Build Path -> ClassPath
92Variables, and then select New to create a classpath variable VSL,
93and specify its value to be /opt/vsl. Navigate to Preferences ->
94Run/Debug -> String Substitution -> New, and then define an entry
95vsl_lib and set its value to be /opt/vsl/lib.
96
978. Perform Step 6 from the "Installation from Source"
98instructions above.
99
1009. Right click (or ctrl-click on Mac) on build.xml and select
101Run As->Ant Build. This runs the ant script, which invokes ANTLR
102to build the Java source files from the grammar files. It also
103compiles all the Java source files and builds the jar. (The jar
104is not used from within Eclipse, but is used when packaging
105and releasing ABC.) You may have to "Refresh" the entire project
106after this completes, and/or "Clean" the project.
107
108This step only has to be done once, unless the grammar files change,
109or you want to create an up-to-date jar. Otherwise, Eclipse
110automatically compiles the Java source whenever it changes.
111
11210. To run the JUnit tests through Eclipse: Select Run->Run Configurations...
113Create a new JUnit configuration called "ABC Tests". Select
114"Run all tests in the selected project..." and navigate to the "test"
115folder in the ABC project. Under the Arguments tab, type "-ea"
116(without the quotes) into the VM arguments field, to enable assertion
117checking. Under the Environment tab, create an entry DYLD_LIBRARY_PATH (OS X)
118or LD_LIBRARY_PATH (linux), specify its value by clicking Variables and choose
119vsl_lib from the list, or you may type ${vsl_lib} in the value entry.
120Click "Run" to run the tests.
Note: See TracBrowser for help on using the repository browser.