Skip to content

Commit f196e74

Browse files
Update compilation instructions
1 parent 1b7c84a commit f196e74

File tree

1 file changed

+19
-4
lines changed

1 file changed

+19
-4
lines changed

COMPILING.md

+19-4
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,17 @@ We assume that you have a Debian/Ubuntu or Red Hat-like distribution.
2828
yum install gcc gcc-c++ flex bison perl-libwww-perl patch devtoolset-6 java-1.7.0-openjdk-devel
2929
```
3030
Note that you need g++ version 4.9 or newer.
31+
32+
To compile JBMC, you additionally need the JDK:
33+
On Debian-like distributions, do
34+
```
35+
apt-get install openjdk-7-jdk
36+
```
37+
On Red Hat/Fedora or derivates, do
38+
```
39+
yum install java-1.7.0-openjdk-devel
40+
```
41+
3142
2. As a user, get the CBMC source via
3243
```
3344
git clone https://github.com/diffblue/cbmc cbmc-git
@@ -93,7 +104,11 @@ We assume that you have a Debian/Ubuntu or Red Hat-like distribution.
93104
```
94105
pkg install bash gmake git www/p5-libwww patch flex bison openjdk
95106
```
96-
2. As a user, get the CBMC source via
107+
To compile JBMC, additionally install
108+
```
109+
pkg install openjdk
110+
```
111+
2. As a user, get the CBMC source via
97112
```
98113
git clone https://github.com/diffblue/cbmc cbmc-git
99114
```
@@ -183,14 +198,14 @@ require manual modification of build files.
183198
1. Ensure you have all the build dependencies installed. Build dependencies are
184199
the same as for the makefile build, but with the addition of CMake version
185200
3.2 or higher. The installed CMake version can be queried with `cmake
186-
--version`. To install all build dependencies:
201+
--version`. To install cmake:
187202
- On Debian-like distributions, do
188203
```
189-
apt-get install cmake g++ gcc flex bison make git libwww-perl patch openjdk-7-jdk
204+
apt-get install cmake
190205
```
191206
- On Red Hat/Fedora or derivates, do
192207
```
193-
yum install cmake gcc gcc-c++ flex bison perl-libwww-perl patch devtoolset-6 java-1.7.0-openjdk-devel
208+
yum install cmake
194209
```
195210
- On macOS, do
196211
```

0 commit comments

Comments
 (0)