Compiling Steroids requires clang++
v6.0, among other packages. Please also
notice that:
- Development for Steroids happens in the
master
branch. If you want a stable version of the library you should download and compile the sources of the latest available release. - Steroids has only been compiled and tested under Debian/Ubuntu, although it should probably work on other Linux distributions.
- Steroids will only work on x86-64 machines.
- coreutils
- git
- GNU make
- Python 2
- Clang 6.0
- LLVM 6.0
- libncurses
- zlib
Optional:
- Generating bitcode files for C programs consisting of multiple compilation units will require Whole Program LLVM.
The following steps assume that you have a Debian/Ubuntu distribution:
Install a suitable development environment:
sudo apt-get install coreutils git make python2.7
Install clang v6.0 and LLVM v6.0. DPU currently does not compile under g++, and you will need clang 6.0 to run the tool, anyway:
sudo apt-get install llvm-6.0-dev clang-6.0
If the above command fails, you might want to update your APT configuration (
/etc/apt/sources.list
) with the repositories listed in http://apt.llvm.org/ for your distribution.After a successful installation, the command
llvm-config-6.0
should be in yourPATH
, and typingllvm-config-6.0 --prefix
should print the installation path of LLVM 6.0.Install additional libraries:
sudo apt-get install libncurses5-dev zlib1g-dev
Download and compile the sources of the latest release available.
Compile:
make dist
Optional: run regression tests (note: currently we do not have any):
make regression
Steroids is now installed in the dist/
folder. See doc/example for an
example project that compiles and link against Steroids.