[cmucl-help] no such program error invoking run-program?
Jared C. Davis
jared at cs.utexas.edu
Mon Jan 11 17:05:05 UTC 2016
Hi,
I just downloaded CMUCL 21(a) from the Linux tarball. In a fresh
directory if I create a little file, temp.sh, like this:
$ pwd
/home/users/jared/cmucl-run-bug
$ cat temp.sh
#!/bin/sh
echo "Hello world"
$ chmod +x temp.sh
Then I am successfully able to run-program this script when I
give it the full path:
* (run-program "/home/users/jared/cmucl-run-bug/temp.sh" nil :output t)
Hello world
#<process 24944 :EXITED>
But weirdly run-program fails when I tell it to run ./temp.sh:
* (run-program "./temp.sh" nil :output t)
Error in function RUN-PROGRAM: No such program: "./temp.sh"
[Condition of type SIMPLE-ERROR]
Restarts:
0: [ABORT] Return to Top-Level.
Debug (type H for help)
(RUN-PROGRAM "./temp.sh" ("./temp.sh") :ENV NIL ...)
Source: Error finding source:
Error in function DEBUG::GET-FILE-TOP-LEVEL-FORM: Source file no
longer exists:
target:code/run-program.lisp.
0] backtrace 10
0: (RUN-PROGRAM "./temp.sh" ("./temp.sh") :ENV NIL ...)
1: (INTERACTIVE-EVAL (RUN-PROGRAM "./temp.sh" NIL :OUTPUT T))
2: (LISP::%TOP-LEVEL)
3: ((LABELS LISP::RESTART-LISP SAVE-LISP))
I tried to reproduce this on another computer, but it works fine
there. I don't know if there might be something wrong with how
I'm invoking CMUCL, but I simply:
- Downloaded the cmucl-21a-x86-linux.tar.bz from:
https://common-lisp.net/project/cmucl/downloads/release/21a/
- Extracted it to somewhere
(/share/apps/fv/jenkins/support/cmucl/cmucl-21a)
- Wrote the following script to invoke it:
$ cat ~/bin/cmucl
#!/bin/sh
exec /share/apps/fv/jenkins/support/cmucl/cmucl-21a/bin/lisp "$@"
I'm a little curious about the "Error finding source" message
above and I don't know if that's to be expected.
Various debugging information in case it's useful:
uname -a:
Linux compute-1-3.local 2.6.32-431.el6.x86_64 #1 SMP Thu Nov 21
13:35:52 CST 2013 x86_64 x86_64 x86_64 GNU/Linux
cmucl banner:
CMU Common Lisp 21a (21A Unicode), running on compute-1-3.local
With core: /share/apps/fv/jenkins/support/cmucl/cmucl-21a/lib/cmucl/lib/lisp-sse2.core
Dumped on: Thu, 2015-10-01 21:50:40-05:00 on lorien3
See <http://www.cmucl.org/> for support information.
Loaded subsystems:
Unicode 1.29 with Unicode version 6.2.0
Python 1.1, target Intel x86/sse2
CLOS based on Gerd's PCL 2010/03/19 15:19:03
I tried building CMUCL from source and seem to run into the same
issue. But then, I'm invoking it in a similar way, so hopefully
I'm just doing something obviously stupid.
Cheers,
Jared
--
Jared C. Davis <jared at cs.utexas.edu>
11410 Windermere Meadows
Austin, TX 78759
http://www.cs.utexas.edu/users/jared/
More information about the cmucl-help
mailing list