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

Raymond Toy toy.raymond at gmail.com
Tue Jan 12 16:55:43 UTC 2016


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

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

The source distribution should include the file generic-site.lisp.
It's meant as a generic site-init.lisp file, but you can hack it up to
be your personal init.  At the end is an example of how you can set up
the target search list to find your sources, if you place them near
the same directory as bin/lisp.  I use this.

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

You can look at the :env argument to run-program or modify the "path:"
search list with something like:

(push (default-directory) (search-list "path:"))

The "path:" search list basically becomes the PATH envvar. I think.

I didn't try the :env arg to run-program, so I'm not sure what to do
there, but maybe something like

:env (list :path "<typical-shell-PATH-string>"

will work.  (The docstring for that needs to be improved.)

--
Ray



More information about the cmucl-help mailing list