Skip to content
cth edited this page Nov 22, 2012 · 5 revisions

To install banpipe you first need to download Logtalk, available from logtalk.org.

Next, you need to download the source code for banpipe. You can download the latest version as a tgz or a zip file here.

Alternative you can clone the git repository, i.e.,

git clone https://github.com/cth/banpipe.lgt.git

Place the source code in any directory that you see fit, e.g. /home/myaccount/banpipe.

After downloading banpipe, you will need to setup banpipe as a logtalk library,

edit $LOGTALKUSER/libpaths/libpaths.pl

Add a fact,

logtalk_library_path(banpipe, '/home/myaccount/banpipe').

at the end of the file.

You also need to add any directory which contains banpipe modules to the $BANPIPE_MODULE_PATH variable. For instance, to add the example modules,

export BANPIPE_MODULE_PATH=/home/myacccount/banpipe/examples

The $BANPIPE_MODULE_PATH environment variable works like the normal PATH variable and you can add multiple directories separated by ':'

Now, you should be able to start logtalk (e.g., using swilgt) and call,

{banpipe(init)}.

which will load the banpipe library.

You can now load banpipe scripts, e.g. the helloworld.pl examples, by calling the goal,

banpipe::load('/home/myaccount/examples/helloworld.pl').

and subsequently run the script using

banpipe::run(helloworld(english))

See more about running banpipe scripts.

Clone this wiki locally