no way to compare when less than two revisions

Differences

This shows you the differences between two versions of the page.


Last revision
installation:workspace [2014/11/24 16:11] – created admin
Line 1: Line 1:
 +====== Workspace setup ======
 +It is recommended to add the following to your ~/.plrc file to get a global command history for the Prolog shell:
 +
 +<code prolog>
 +  rl_write_history :-
 +      expand_file_name("~/.pl-history", [File|_]),
 +      rl_write_history(File).
 +  
 +  :- (
 +      current_prolog_flag(readline, true)
 +     ->
 +      expand_file_name("~/.pl-history", [File|_]),
 +      (exists_file(File) -> rl_read_history(File); true),
 +      at_halt(rl_write_history)
 +     ;
 +      true
 +     ).
 +</code>
 +
 +If you use Java code (which several KnowRob packages do), you may need to set the JAVA_HOME and SWI_HOME_DIR environment variables, e.g. by adding these lines to your ~/.bashrc file:
 +  export JAVA_HOME=/usr/lib/jvm/default-java
 +  export SWI_HOME_DIR=/usr/lib/swi-prolog
 +
 +You further need to add the Java directories to your LD_LIBRARY_PATH environment variable. Choose either of the following dependent on your system architecture:
 +<code bash>
 +# for amd_64 systems (64 bits):
 +export LD_LIBRARY_PATH=/usr/lib/jvm/default-java/jre/lib/amd64:/usr/lib/jvm/default-java/jre/lib/amd64/server:$LD_LIBRARY_PATH
 +
 +# for i386 systems (32bits):
 +export LD_LIBRARY_PATH=/usr/lib/jvm/default-java/jre/lib/i386:/usr/lib/jvm/default-java/jre/lib/i386/server:$LD_LIBRARY_PATH
 +
 +
 +</code>