-
Notifications
You must be signed in to change notification settings - Fork 14
/
install.html
169 lines (148 loc) · 5.76 KB
/
install.html
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
<!Doctype html>
<html lang="en">
<head>
<title>Installation</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<header class="center clearfix" id="navtop"> <a href="index.html" class="logo fleft"><img src="img/logo.png" alt=""></a>
<nav class="fright">
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="about.html">About</a></li>
<!-- <li><a href="help.html">Help</a></li> -->
<li><a href="roadmap.html">Roadmap</a></li>
<li><a href="documentation.html" class="navactive">Documentation</a></li>
</ul>
</nav>
</header>
<div class="about center part clearfix">
<header class="title">
<h3 class="fleft">Contents</h3>
</header>
<aside class="column4 mright">
<menu>
<ul>
<li><a href="#navlex" class="sec">Install LEX</a></li>
<li><a href="#navyacc" class="sec">Install YACC</a></li>
<li><a href="#navxsm" class="sec">Install XSM Simulator</a></li>
<li><!--For blank space between lines and download button--> </li>
<li><!--Blank line for space between download button and main title--> </li>
</ul>
</menu>
</aside>
<section class="columnthird content">
<h2>INSTALLATION</h2>
If these instructions do not work, you can try the <a href="https://silcnitc.github.io/expl-docs/docker-setup/">Docker based setup </a>.
<article id="navlex" class="detail">
<h2>Install LEX</h2>
<br>
<p>
For Ubuntu Users :
<pre>
sudo apt-get update
sudo apt-get install flex
</pre>
</p>
<p>
For Fedora Users :
<pre>
yum install flex flex-devel
</pre>
</p>
</article>
<div class="up grid col-one-third" style="float:right">
<a href="#navtop" title="Go back up"> top ↑</a>
</div>
<article id="navyacc" class="detail">
<h2>Install YACC</h2>
<p> For Ubuntu Users :</p>
<pre>
sudo apt-get update
sudo apt-get install bison
</pre>
<br>
<p> For Fedora Users :</p>
<pre>
yum install bison bison-devel byacc
</pre>
</article>
<div class="up grid col-one-third" style="float:right">
<a href="#navtop" title="Go back up"> top ↑</a>
</div>
<article id="navxsm" class="detail">
<h2>Install XSM Machine Simulator</h2>
<p>
The compiler's target code needs to be run on a simulator and the installation steps are given below.
</p>
<p>
<h4>Let us install XSM</h4>
<h5> Step 1 : </h5>
<!-- <p> Download XSM Simulator : <a href="files/xsm_expl.tar.gz" class="button"> Version 1 </a> </p> -->
<p> Download XSM Simulator : <a href="files/xsm_expl.tar.gz" class="button"> Version 1 </a> </p>
</p>
<h5> Step 2 :</h5>
<p> Extract this file and navigate into the folder <b>xsm_expl</b> through the terminal.</p>
<p>
Do the following steps:<br>
<ul>
<li id="otis">1. Type "make".
<p>
You may get some warnings and they can be ignored. If you get any <b>fatal error</b>,
then install the following dependencies and try running "make" again : <br>
<b>sudo apt-get install libreadline-dev</b> <br>
<b>sudo apt-get install libc6-dev</b> <br>
<b>sudo dnf install readline-devel # for fedora</b> <br>
If any other dependencies are missing (this depends on your system configuration), you have to install the missing dependencies
and run "make" again.
(Optional) While running "./xsm" after Step 2 if you get this error:<br>
<i>/usr/bin/ld: cannot find -ll
collect2: error: ld returned 1 exit status</i>
Then you need to install:<br>
<b>sudo apt-get install libfl-dev</b> <br>
and edit the <b>Makefile</b> of <b>xsm_dev</b> folder, to proceed
find the line where "-ll" is used as option and update it to "-lfl" to use the "flex" library we installed above.
Now you can run "make" again after navigating into the folder <b>xsm_expl</b> through the terminal.
</p>
<p>If you run into errors pretaining to <b>/usr/include/readline/*</b>, Update <b>xfs-interface/interface.c</b> and include <b>stdio.h</b> before readline headers</p>
<br>
</li>
<li id="otis">2. Type "cd ../xfs-interface/" and type "./init".</li>
<br>
<li id="otis">3.(Optional) Add this line <b>#!/usr/bin/env bash</b> as first line to the <b>xsm</b> file in <b>xsm_expl</b> folder.</li>
This step is for those who don't have <b>bash</b> or <b>sh</b> as their "default shell" and therefore may be using other
customizable shells like <b>zsh</b>, etc as their default shell. You can check your default shell by using <b>echo $SHELL</b> in terminal.
</ul>
</p>
<p>The usage instructions for the XSM simulator can be found <a href="xsmusagespec.html" target="_blank"> here</a>.</p>
<p> Please report installation errors to <i>[email protected]</i> </p>
</article>
<div class="up grid col-one-third" style="float:right">
<a href="#navtop" title="Go back up"> top ↑</a>
</div>
<footer class="center part clearfix">
<ul class="social column3 mright">
<li><a href="https://github.com/silcnitc">Github</a></li>
<li> <a rel="license" href="http://creativecommons.org/licenses/by-nc/4.0/">
<img alt="Creative Commons License" style="border-width:0" src="img/creativecommons.png" /></a></li>
</ul>
<div class="up column3 mright"> <a href="#navtop" class="ir">Go up</a> </div>
<nav class="column3">
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="about.html">About</a></li>
<!-- <li><a href="uc.html">Contact</a></li> -->
</ul>
</nav>
</footer>
</body>
<!-- Javascript - jQuery
<script src="http://code.jquery.com/jquery.min.js"></script>-->
<script>window.jQuery || document.write('<script src="js/jquery-1.7.2.min.js"><\/script>')</script>
<!--[if (gte IE 6)&(lte IE 8)]>
<script src="js/selectivizr.js"></script>
<![endif]-->
<script src="js/scripts.js"></script>
<script src="js/inject.js"></script>
</html>