[CSC 330] Problems with Lisp scripting
Andrew J. Pounds
pounds_aj at mercer.edu
Tue Oct 4 20:50:15 EDT 2022
Some of you have reported that when you try to run your lisp code as an
executable it dumps into the SBCL environment. I figured out what was
going on.
On cobra for some reason some of the Lisp probrams think that they were
created in a Windows or DOS environment and have DOS end of line
terminators (Carraige return followed by a line feed). For that reason
when you run your code as a script it runs until it gets to the carraige
return and then the next character is a line feed which dumps it into
the SBCL development environment.
If you run the linux "file" command on your file you will get something
like this...
|cobra:/scratch/pounds/Prog01/Lisp % file HappyNums.lisp HappyNums.lisp:
Lisp/Scheme program, ASCII text, with CRLF line terminators|
to fix this, run the command dos2unix
|cobra:/scratch/pounds/Prog01/Lisp % dos2unix HappyNums.lisp dos2unix:
converting file HappyNums.lisp to Unix format
cobra:/scratch/pounds/Prog01/Lisp % file HappyNums.lisp HappyNums.lisp:
Lisp/Scheme program, ASCII text|
Notice that the "with CRLF line terminators" message is gone. You should
now be able to run your code in SBCL as an executable without it
dropping into the development environment.
--
*/Andrew J. Pounds, Ph.D./*
/Professor of Chemistry and Computer Science/
/Director of the Computational Science Program/
/Mercer University, Macon, GA 31207 (478) 301-5627/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://theochem.mercer.edu/pipermail/csc330/attachments/20221004/eb621980/attachment.html>
More information about the csc330
mailing list