Here is a little howto for installing MotOrBac - a tool for managing security policies based on orbac - on a gentoo linux (2007.0). Please, note that I'm not part of the MotOrBac project, any comment should be addressed to the contacts specified on the web site.
The version MotOrBac I worked with is labelled "first stable release" (2007/03/23) on Sourceforge.
emerge -a dev-java/blackdown-jdk
USE="java" emerge -a dev-lang/swi-prolog
LD_LIBRARY_PATH=/usr/lib/pl-5.6.37/lib/x86 java -classpath .:/usr/lib/pl-5.6.37/lib/jpl.jar:JLexCup.jar motorbac.MotOrBAC(replace pl-5.6.37 if the version of swi-prolog is different)
export LD_LIBRARY_PATH=/usr/lib/pl-5.6.37/lib/x86 export CLASSPATH=.:/usr/lib/pl-5.6.37/lib/jpl.jar:JLexCup.jar
setenv LD_LIBRARY_PATH=/usr/lib/pl-5.6.37/lib/x86 setenv CLASSPATH=.:/usr/lib/pl-5.6.37/lib/jpl.jar:JLexCup.jar
java motorbac.MotOrBAC
unset LD_LIBRARY_PATH unset CLASSPATH
unsetenv LD_LIBRARY_PATH unsetenv CLASSPATH