home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!europa.asd.contel.com!darwin.sura.net!dtix!mimsy!nmrdc1!dsc3pzp
- From: dsc3pzp@nmrdc1.nmrdc.nnmc.navy.mil (Philip Perucci)
- Newsgroups: comp.os.linux
- Subject: PROLOG on Linux!
- Message-ID: <C0G2HD.GB6@nmrdc1.nmrdc.nnmc.navy.mil>
- Date: 6 Jan 93 18:10:22 GMT
- Organization: Naval Medical Research & Development Command
- Lines: 68
-
- Hi,
-
- Anybody looking for a good PROLOG? I got SWI-Prolog to work from
- swi.psy.uva.nl fairly easily. The changes required to get the
- latest version (1.6.8) are given below. The author will include
- them in the next release so Linux should be supported "off-the-shelf".
- I did this with Linux 0.99pl2, gcc 2.3.3, and libc 4.2. Please
- E-mail me with any improvements to changes below, and I will forward to
- author!
-
- FTP site: swi.psy.uva.nl
- Directory: /pub/SWI-Prolog
- File: pl-1.6.8.tar.Z
-
- BTW: This is NOT a diff file!
-
- -------------------------- cut here -----------------------------------------
-
-
- Do the following to compile SWI-Prolog 1.6.8 on gcc 2.3.3, libc 4.2,
- using Linux 0.99pl2:
-
- pl/linux/md.h
- -------------
-
- * M_CC = gcc
- * M_LIBS = -lm -ltermcap
- * #define O_UCHAR_PREDEFINED 0
- * #define O_PROFILE 1
-
- pl/linux/pl-os.c
- ----------------
-
- * Comment out lines 1674-1675 (as shown below)
- /* stdin->_ptr = stdin->_base; */
- /* stdin->_cnt = 0; */
-
- pl/linux/pl-setup.c
- -------------------
-
- * Comment out line 147 (as shown below)
- /* pl_signal(SIGBUS, fatal_signal_handler); */
-
- Makefile
- --------
-
- * Compilation of pl-main.c fails due to extra spaces:
-
- gcc -c -DSYSTEMHOME=\""/tmp/pl"\ " -DDEFSTARTUP=\"".plrc"\ " pl-main.c
- | |
- Here and here
-
- Shown above is how line is printed when make crashes.
- Change the line to:
-
- gcc -c -DSYSTEMHOME=\""/tmp/pl"\" -DDEFSTARTUP=\"".plrc"\" pl-main.c
-
- and all is well.
-
-
-
-
-
- --
- ===========================================================================
- phil perucci | "Any opinions expressed are solely my own views and
- ssb1pzp@digex.com | do not reflect the position of any organization"
- ===========================================================================
-