@@ -3,52 +3,90 @@ layout: pages
33title : Setting up and compiling
44---
55
6- 1 . Install libpcl - GNU Portable Coroutine Library, currently v1.12
7- available at
6+ 1 . First define some handy environment variables for your
7+ preferred installation directory prefixes:
88
9- [ http://www.xmailserver.org/libpcl.html ] ( http://www.xmailserver.org/libpcl.html )
9+ ` export PCL_PREFIX=/your/PCL/prefix `
10+ ` export LPEL_PREFIX=/your/LPEL/prefix `
11+ ` export SNET_PREFIX=/your/SNET/prefix `
1012
13+ They may very well have the same prefix destinations
14+ such as "` /usr/local ` ". In the remainder of this page we will
15+ use these variables to install the PCL, LPEL and S-Net software to.
1116
12- 2 . Extract the LPEL archive, then run:
1317
18+ 2 . Install
19+ [ libPCL] ( http://www.xmailserver.org/libpcl.html )
20+ - the GNU Portable Coroutine Library, currently
21+ [ version 1.12] ( http://www.xmailserver.org/pcl-1.12.tar.gz )
1422
15- ` ./configure --with-pcl=<pcl_install_dir> `
16- ` --with-mctx=pcl `
17- ` --prefix=<lpel_install_dir> `
23+ ` tar zxvf pcl-1.12.tar.gz `
24+ ` cd pcl-1.12 `
25+ ` ./configure --prefix=$PCL_PREFIX `
26+ ` make `
27+ ` make check `
28+ ` make install `
29+ ` cd .. `
30+
31+
32+ 3 . In case the PCL libraries have been installed into
33+ ` $PCL_PREFIX/lib64 ` move them to ` $PCL_PREFIX/lib ` :
34+
35+ ` mkdir -p $PCL_PREFIX/lib `
36+ ` mv -f $PCL_PREFIX/lib64/libpcl* $PCL_PREFIX/lib/. `
37+
38+
39+ 4 . Use [ Git] ( http://git-scm.com ) to clone
40+ the LPEL repository from [ Github] ( https://github.com ) ,
41+ build and install it:
42+
43+ ` git clone https://github.com/snetdev/lpel.git `
44+ ` cd lpel `
45+ ` ./build-aux/bootstrap `
46+
47+ ` ./configure --with-pcl=$PCL_PREFIX \ `
48+ ` --with-mctx=pcl \ `
49+ ` --prefix=$LPEL_PREFIX `
1850
1951 ` make `
2052 ` make install `
53+ ` cd .. `
2154
2255
23- 3 . Extract the snet-runtime archive.
56+ 5 . Clone the snet-runtime repository from Github, build and install it:
2457
58+ ` git clone https://github.com/snetdev/snet-rts.git `
2559
60+ ` cd snet-rts `
61+ ` ./bootstrap `
2662
27- 4 . At the top-level of the runtime tree, run:
63+ ` ./configure --with-lpel-includes=$LPEL_PREFIX/include \ `
64+ ` --with-lpel-libs=$LPEL_PREFIX/lib \ `
65+ ` --prefix=$SNET_PREFIX `
2866
67+ ` make `
68+ ` make install `
2969
30- ` ./configure --with-lpel-includes=<lpel_install_dir>/include \ `
31- ` --with-lpel-libs=<lpel_install_dir>/lib \ `
32- ` --prefix=<my_snet_dir> `
3370
34- ` make # this builds the run-time system `
35- ` make install # moves files into place under <my_snet_dir> `
71+ 6 . Define S-Net environment variables in your personal startup files
72+ which are required to compile S-Net source code:
3673
37- ` export SNET_INCLUDES=<my_snet_dir> /include/snet `
38- ` export SNET_LIBS=<my_snet_dir> /lib/snet `
39- ` export SNET_MISC=<my_snet_dir> /share/snet `
74+ ` export SNET_INCLUDES=$SNET_PREFIX /include/snet `
75+ ` export SNET_LIBS=$SNET_PREFIX /lib/snet `
76+ ` export SNET_MISC=$SNET_PREFIX /share/snet `
4077
4178
4279
43- 5 . Set your library search path for S-Net and LPEL. On Linux:
80+ 7 . Set your library search path for S-Net and LPEL. On Linux:
4481
45- ` export LD_LIBRARY_PATH=$SNET_LIBS:<lpel_install_dir> :$LD_LIBRARY_PATH `
82+ ` export LD_LIBRARY_PATH=$SNET_LIBS:$LPEL_PREFIX/lib :$LD_LIBRARY_PATH `
4683
4784 On OS X:
4885
4986 ` # on OS X, include $SNET_LIBS and LPEL in your DYLD_LIBRARY_PATH: `
50- ` export DYLD_LIBRARY_PATH=$SNET_LIBS:<lpel_install_dir>:$DYLD_LIBRARY_PATH `
87+ ` export DYLD_LIBRARY_PATH=$SNET_LIBS:$LPEL_PREFIX/lib:$DYLD_LIBRARY_PATH `
88+
5189
90+ 8 . Download the S-Net compiler archive and unpack it. The archive contains a compiled binary. For convenience you may want to consider placing the compiler binary into a directory in your $PATH.
5291
53- 6 . Download the S-Net compiler archive and unpack it. The archive contains a compiled binary. For convenience you may want to consider placing the compiler binary into a directory in your $PATH.
5492
0 commit comments