Re: no such program error invoking run-program?

"Jared C. Davis" <[email protected]> Mon, 11 Jan 2016 20:15:51 -0600
Newsgroups gmane.lisp.cmucl.general
Message-ID <CAEaX8vT+wV9qumomb8sDwunYCHUQJkGbCMGXaSPGtHH9HRLHqQ@mail.gmail.com>
Hi,

Thanks much for the replies.  I'll try to arrange a cmucl-init file
that sets up the search-list correctly for my source distribution
tomorrow.

Is there a way to arrange so that cmucl inherits the current working
directory from the shell? (It seems like that would be quite
convenient.)

Cheers,
Jared

On Mon, Jan 11, 2016 at 6:33 PM, Jared C. Davis <[email protected]> wrote:
> Hi,
>
> Thanks much for the replies.  I'll try to arrange a cmucl-init file
> that sets up the search-list correctly for my source distribution
> tomorrow.
>
> Is there a way to arrange so that cmucl inherits the current working
> directory from the shell? (It seems like that would be quite
> convenient.)
>
> Cheers,
> Jared
>
> On Mon, Jan 11, 2016 at 6:24 PM, Raymond Toy <[email protected]> wrote:
>>>>>>> "Jared" == Jared C Davis <[email protected]> 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
>>
>> _______________________________________________
>> cmucl-help mailing list
>> [email protected]
>> http://lists.zs64.net/mailman/listinfo/cmucl-help
>
>
>
> --
> Jared C. Davis <[email protected]>
> 11410 Windermere Meadows
> Austin, TX 78759
> http://www.cs.utexas.edu/users/jared/



-- 
Jared C. Davis <[email protected]>
11410 Windermere Meadows
Austin, TX 78759
http://www.cs.utexas.edu/users/jared/
_______________________________________________
cmucl-help mailing list
[email protected]
http://lists.zs64.net/mailman/listinfo/cmucl-help