Discussion:
jpl not installed on Ubuntu
db
2009-03-29 16:00:34 UTC
Permalink
Hello,

I have installed (by using Synaptic) Swi-Prolog 5.6.55 64 bits
on a PC quad core running under Ubuntu 8.1.
I have discovered that jpl is not in the provided package.

I see no clear solution in the web
(all proposed solutions failed).
Could you tell what are the files I need to install,
how I can get them, and how to install them ?

Thanks you very much in advance.

Dominique
Paul Singleton
2009-03-30 10:47:51 UTC
Permalink
Post by db
Hello,
I have installed (by using Synaptic) Swi-Prolog 5.6.55 64 bits
on a PC quad core running under Ubuntu 8.1.
I have discovered that jpl is not in the provided package.
I see no clear solution in the web
(all proposed solutions failed).
Could you tell what are the files I need to install,
how I can get them, and how to install them ?
On Windows you could (hypothetically, since all Windows builds include
JPL) supply the essential native, Java and Prolog libraries

pl/bin/jpl.dll
pl/lib/jpl.jar
pl/library/jpl.pl

and extra material in

pl/doc/packages/examples/jpl
pl/doc/packages/jpl

then remake the library index (so that jpl.pl can be autoloaded) but
for Linux I think the official advice is: either use the RPM package
from http://www.swi-prolog.org/download/stable or build and install
from sources (at same URL).

(If you can get hold of a jpl.dll-equivalent shared object library for
your version of Linux, you could copy the (platform-independent)
jpl.jar and jpl.pl from another installation.)

Paul Singleton
Post by db
Thanks you very much in advance.
Dominique
_______________________________________________
SWI-Prolog mailing list
https://mailbox.iai.uni-bonn.de/mailman/listinfo.cgi/swi-prolog
Dominique Bouthinon
2009-03-30 11:03:51 UTC
Permalink
Hello,

First thanks for your message.
Post by Paul Singleton
On Windows you could (hypothetically, since all Windows builds include
JPL) supply the essential native, Java and Prolog libraries
pl/bin/jpl.dll
pl/lib/jpl.jar
pl/library/jpl.pl
I have found the files,
for Linux jpl.dll is replaced by libjpl.so .
Under Linux (Ubuntu in my case) I don't know
where I must place these files.
Post by Paul Singleton
then remake the library index (so that jpl.pl can be autoloaded)
I mus confess that I don't know how 'remake the library index'.
Could anyone explain me ?
Post by Paul Singleton
but for
Linux I think the official advice is: either use the RPM package from
http://www.swi-prolog.org/download/stable or build and install from
sources (at same URL).
I have tried but I failed to install it.
There are bugs or errors when we install to Ubuntu.

Thanks again.

Dominique
Paul Singleton
2009-03-30 11:36:43 UTC
Permalink
Post by db
Hello,
First thanks for your message.
Post by Paul Singleton
On Windows you could (hypothetically, since all Windows builds include
JPL) supply the essential native, Java and Prolog libraries
pl/bin/jpl.dll
pl/lib/jpl.jar
pl/library/jpl.pl
I have found the files,
for Linux jpl.dll is replaced by libjpl.so .
Under Linux (Ubuntu in my case) I don't know
where I must place these files.
As above, where pl is the new directory into which SWI-Prolog was
installed. If you don't know where it is, check your environment
variables for SWI_HOME_DIR or similar, or search for a SWIPL file e.g.
find -name syspred.pl (I don't use Linux so these are just hints).
Post by db
Post by Paul Singleton
then remake the library index (so that jpl.pl can be autoloaded)
I mus confess that I don't know how 'remake the library index'.
Could anyone explain me ?
See the Reference Manual or just run

1 ?- make.

at your SWI-Prolog prompt.

Paul Singleton
Post by db
Post by Paul Singleton
but for Linux I think the official advice is: either use the RPM
package from http://www.swi-prolog.org/download/stable or build and
install from sources (at same URL).
I have tried but I failed to install it.
There are bugs or errors when we install to Ubuntu.
Thanks again.
Dominique
Continue reading on narkive:
Loading...