[cmucl-help] no such program error invoking run-program?

Raymond Toy toy.raymond at gmail.com
Tue Jan 12 00:24:28 UTC 2016


>>>>> "Jared" == Jared C Davis <jared at cs.utexas.edu> writes:

    Jared> Hi,
[snip]
    Jared> But weirdly run-program fails when I tell it to run ./temp.sh:

    Jared> * (run-program "./temp.sh" nil :output t)

    Jared> Error in function RUN-PROGRAM:  No such program: "./temp.sh"
    Jared> [Condition of type SIMPLE-ERROR]

    Jared> Restarts:
    Jared> 0: [ABORT] Return to Top-Level.

    Jared> Debug  (type H for help)

    Jared> (RUN-PROGRAM "./temp.sh" ("./temp.sh") :ENV NIL ...)
    Jared> Source: Error finding source:
    Jared> Error in function DEBUG::GET-FILE-TOP-LEVEL-FORM:  Source file no
    Jared> longer exists:
    Jared> target:code/run-program.lisp.

[snip]

    Jared> I'm a little curious about the "Error finding source" message
    Jared> above and I don't know if that's to be expected.

GP Lisper has given the answer, but to answer this question about not
being able to find the the source, this is expected unless you've set
up everything and actually have the source available.

Basically, you need to have the sources somewhere and do something
like

(setf (search-list "target:") '("/path/to/src/"))

Then cmucl will be able to find the sources and give you the actual
source line/sexp for errors.

--
Ray



More information about the cmucl-help mailing list