As an alternative to this How-To-Build-Guide a single script which installs everything automatically can be found here. Edit the destination directories at the top of this script and then execute it.
First define some handy environment variables for your preferred installation directory prefixes:
They may very well have the same prefix destinations such as ”
/usr/local” or ”
$PWD/build”. In the remainder of this page we will use these variables to install the PCL, LPEL and S-Net software to.
Install libPCL - the GNU Portable Coroutine Library, currently version 1.12
tar zxvf pcl-1.12.tar.gz
Use Git to clone the LPEL repository from Github, build and install it:
git clone https://github.com/snetdev/lpel.git
./configure --with-pcl=$PCL_PREFIX \
Clone the snet-runtime repository from Github, build and install it:
git clone https://github.com/snetdev/snet-rts.git
./configure --with-lpel-includes=$LPEL_PREFIX/include \
Define S-Net environment variables in your personal startup files which are required to compile S-Net source code:
Set your library search path for S-Net and LPEL. On Linux:
On OS X:
# on OS X, include $SNET_LIBS and LPEL in your DYLD_LIBRARY_PATH:
Download the S-Net compiler archive: Linux x86_64, Linux i686, OS X
The archive contains a compiled binary, which is compressed with bzip2. Turn this into a valid executable with:
mv snetc-* snetc
chmod +x snetc
For convenience, place the decompressed compiler binary into a directory in your $PATH.