home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-387-Vol-3of3.iso
/
p
/
prolg386.zip
/
pl
/
386BSD.README
< prev
next >
Wrap
Text File
|
1992-08-29
|
5KB
|
140 lines
-------------------------------Documentation----------------------------------
----------------------------------of the--------------------------------------
----------------------------porting patch archive-----------------------------
--------------------------------with binaries---------------------------------
----------------------------SWI-Prolog for 386BSD-----------------------------
-----------------------------by Gunther Schadow-------------------------------
WHAT IT CONTAINS
- pl/LICENCE GNU'like LICENCE, please register
- pl/386BSD.README this file
- pl/386bsd.patch the context diff patches
- pl/src/md-386bsd.h the configuration file for 386bsd
- pl/bindist/bin/pl SWI-Prolog executable
- pl/bindist/lib/pl/include plus files you need
- pl/bindist/lib/pl/library for proper
- pl/bindist/lib/pl/runtime/i386 running of pl,
- pl/bindist/lib/pl/startup/startup.i386 including the
online manual
all files are based on version 1.6.3 of SWI-Prolog.
WHAT YOU NEED
In order to run SWI-Prolog to an limited extend you don't need any
other file. If, however, you want to debug or rebuild the system from
scratch, you will need the sources. If you like a TeX'ed printed
Manual, you need the sources (and TeX) too. Finally if you want to
make use of the foreign language interface, and dynamic linking
facility, you will need the original distribution too. You can get
SWI-Prolog's original distribution from Holland via FTP at
swi.psy.uva.nl
HOW TO INSTALL IT
1. Binary distribution
(a) Move lib/* and bin/pl in the bindist subtree too your /usr/local, by:
% cd bindist
% mv lib/pl /usr/local/lib/pl
% mv bin/pl /usr/local/bin
(b) Start SWI-Prolog with
% pl
and wait what's happening. If you whant to consult the online
manual give the following command:
1 ?- help(help).
(c) have fun.
2. Installing Sources and Patches
(a) Get swi-prolog version 1.3.6 (pl-1.36) from swi.psy.uva.nl and
unpack it, say into /src/local.
(b) unpack SWI-Prolog.386bsd.tar.Z in the same subdirectory
(/src/local), as the original distribution, both pl-1.36 and
SWI-Prolog.386bsd.tar.Z expand into the directory /src/local/pl,
no file (exept the LICENCE) will be overwritten.
(c) You are still in /src/local. Give the following command:
% patch -p <pl/386bsd.patch
this will make the necessary changes mainly to the Makefile. We
won't make use of pl/config.h anymore, because our cpp fills in
nasty spaces after each macro expansion. All setup is done in md.h
and Makefile, but for the time now, leave everything as it is.
(c) Cd to pl and give the command
% SETUP 386bsd
if the executable bit is not set, chmod to 755. This will create a
directory named 386bsd, to which you should cd now.
(d) Say
% make
and wait, what's happening. Some warnings, don't care, but if you
like, tell me why gcc complains about returning volatile
functions.
(e) If everything is compiled whithout error, let make install things
with
% make install
(f) Start SWI-Prolog with
% pl
and wait what's happening. If you whant to consult the online
manual give the following command:
1 ?- help(help).
(g) enjoy, and please help to debug.
KNOWN BUGS
Try to give the following command:
% pl -L 8
to resize the local stack. Pl will complain about exhausted stack
memory, maybe a bug in pl-alloc.c.
Cd to the dld-3.2 directory and say make. It will compile with no
problems, but ranlib fails to work on libdld.a because of the presence
of dld_find_executiable, ranlib bug?
I didn't test SWI-Prolog extensively, so there still might be even serious
bugs in it.
FINAL NOTES AND ACKNOWLEDGEMENTS
Thanks to Lynne and Bill Jolitz for giving us a highly compatible and
powerful Unix-environment. Once we will have killed the stack-warning
bug, it is a better SWI-Prolog port than that for Linux. Because
386bsd had no problems compiling gnu/unexec.c, which is crucial for
the save_program facility.
Thanks to Jan Wielemaker and the University of Amsterdam for making
their Prolog system freely available.
Feel free to make debuggings to SWI-Prolog, please inform me about
your working on it. Questions and complaints are also welcome.
-------------------------------------------------------------------------------
Gunther Schadow, e-mail: Gunther@mailserv.ZDV.Uni-Tuebingen.DE
Sudetenstrasse 25, Phone: (49) 7071/37527
7400 Tuebingen, Germany.__________Stop__________Horn Please!__________O.K. TATA