[Attempto] AceWiki : FATAL ERROR: Could not open resource database "ape.exe"
Jean-Marc Vanel
jeanmarc.vanel at gmail.com
Fri Jan 22 19:01:40 CET 2010
2010/1/22 Tobias Kuhn <kuhntobias at gmail.com>
> Hi Jean-Marc,
>
>
> I saw some similar messages in the SWIPL list, about the LD_PRELOAD
>> environment variable ...
>>
>
> Yes, under Linux the variable LD_PRELOAD has to be set to the location of
> the JPL library, e.g. "/usr/lib/pl-5.8.3/lib/i386-linux/libjpl.so".
>
This is only part of the story, because setting LD_PRELOAD causes the JRE
libraries to become unavailable.
After looking at run_preloaded in the SWI Prolog distribution in :
pl-5.8.3/packages/jpl/examples/java/env.sh
I came with this shell fragment that works for me :
eval `swipl -dump-runtime-variables`
export LD_LIBRARY_PATH=$JAVA_HOME/jre/lib/$PLARCH:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=$JAVA_HOME/jre/lib/$PLARCH/server:$LD_LIBRARY_PATH
export LD_PRELOAD=$PLBASE/lib/$PLARCH/libjpl.so
java -Djava.library.path=$PLBASE/lib/$PLARCH \
-jar $HOME/apps/jetty-runner*.jar webapps.war &
>
> New todo item for myself: Write this to the README file of AceWiki.
>
>
> Cheers,
> Tobias
>
>
>
--
Jean-Marc Vanel
Consulting, services, training,
Rule-based programming, Semantic Web
http://jmvanel.free.fr/
+33 (0)6 89 16 29 52 -- +33 (0)1 39 55 58 16
( we rarely listen to voice messages, please send a mail instead )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ifi.uzh.ch/pipermail/attempto/attachments/20100122/7a55f9e6/attachment.htm>
More information about the attempto
mailing list