[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FW: [Gcl-devel] Problem installing Gcl under Windows

From: Mike Thomas
Subject: FW: [Gcl-devel] Problem installing Gcl under Windows
Date: Wed, 5 Jan 2005 13:37:57 +1000

Bounced from gcl-devel because of attachments - sent again with the scripts
included at the end of the email for the record.

-----Original Message-----
From: Mike Thomas [mailto:address@hidden
Sent: Wednesday, 5 January 2005 1:13 PM
To: address@hidden
Cc: address@hidden
Subject: RE: [Gcl-devel] Problem installing Gcl under Windows


| > Yes - echo sends two lisp commands through a pipe to be executed by
| > "saved_ansi_gcl.exe".  The first lisp command sets the
| *system-directory*
| > variable.  The second lisp command saves the Lisp system out as
| > "modified.exe".
| >
| I never coded in Lisp and I know only the basics (ie. I don't know library
| functions but only the language constructs) and I don't understand
| what that command really does.
| >
| > | or try to
| > | execute the command from the shell? >
| > No.
| >
| > | If the first event occurs probably the
| > | program try to execute a lisp command but doesn't work for some
| > | reason.
| >  > Yes.  Perhaps because
| >
| >   1) the executable didn't exist (Probably not or del would
| have given an
| > error when it ran),
| >
| >   2) the lisp commands are buggy on your system, or
| >
| The second one it's probably the right one. Infact if I try to
| execute from the
| dos shell:
| (print 4) | saved_ansi_gcl
| or
| saved_ansi_gcl (print 4)
| it doesn't print anything and the "modified.exe" file is not
| present on my HD.
| (I have the "saved_ansi_gcl because I have stopped the
| installation process and
| copied it to another location. Then I uninstalled and reinstalled
| the propram  until the end).

Here is what you should try, to check which step fails:

  1. Open a command prompt and cd to the directory as shown in your captured

  2. Start saved_ansi_gcl.  Just type:

         saved_ansi_gcl <enter>

  3. At the GCL prompt cut and paste the following:

         (setq si::*system-directory* ( namestring (truename (make-pathname
:name nil :defaults (si::argv 0)))))

         (si::save-system "modified.exe")

     (These two commands set a system variable and then save the running
lisp system, preserving that new value.  The variable just tells GCL where
to find various files it needs from time to time.)

  4. Check that "modified.exe" actually got saved.

  5. Rename "modified.exe" to "saved_ansi_gcl.exe" (keep a copy).

Now two steps to complete the installation if you've got this far.

  6. Edit the attached files to so that the paths are the same as your
installation and put them in the bin directory.

  7. Make a desktop shortcut to gcl.bat

| The versions in the "current" section of Mingw32 site.
| I am downloading MSYS now, that's the only program I don't have
| and I'll try to
| compile gcl.

OK.  If you're using the gcl 2.6.5 source you may need to patch
unixport/makefile as follows:

--- lsp/gcl-2.6.5/unixport/makefile.orig        Tue Dec  7 13:59:51 2004
+++ lsp/gcl-2.6.5/unixport/makefile     Tue Dec  7 14:00:15 2004
@@ -29,7 +29,7 @@
        rm -rf gmp
        mkdir gmp
        a="$^" ; \
-       for i in $^ ; do \
+       for i in $$a ; do \
                cp $$i gmp/$$(echo $$i | sed -e 's,\.\./,,1' -e 's,/,_,g') ; \
        touch $@


Mike Thomas.


# export C_INCLUDE_PATH=/C/PROGRA~1/GCL-2.6.5-ANSI//lib/gcl-2.6.5/h
/C/PROGRA~1/GCL-2.6.5-ANSI/lib/gcl-2.6.5/unixport/saved_ansi_gcl.exe -dir
C:/PROGRA~1/GCL-2.6.5-ANSI/lib/gcl-2.6.5/unixport/ -libdir
C:/PROGRA~1/GCL-2.6.5-ANSI/lib/gcl-2.6.5/ -eval "(setq
si::*allow-gzipped-file* t)" "$@"


@echo off
REM set C_INCLUDE_PATH=C:\PROGRA~1\GCL-2.6.5-ANSI\lib\gcl-2.6.5\h
C:\PROGRA~1\GCL-2.6.5-ANSI\lib\gcl-2.6.5\unixport\saved_ansi_gcl.exe -dir
C:/PROGRA~1/GCL-2.6.5-ANSI/lib/gcl-2.6.5/unixport/ -libdir
C:/PROGRA~1/GCL-2.6.5-ANSI/lib/gcl-2.6.5/ -eval "(setq
si::*allow-gzipped-file* t)" %1 %2 %3 %4 %5 %6 %7 %8 %9

reply via email to

[Prev in Thread] Current Thread [Next in Thread]