Hi all,
I'm wondering if I am overlooking something obvious during my
expriments. I'm writing a utility that needs to run other programs and
it currently does work for all other executables that I have tried, for
example:
(sb-ext:run-program "java" '("-jar" "example_bots/DualBot.jar") :search t)
or
(sb-ext:run-program (merge-pathnames "notepad.exe") nil)
(I put Notepad in the same directory I started SBCL in.)
But when I try to run an executable that I made with SBCL it doesn't
work:
brainrot@...$ sbcl
This is SBCL 1.0.42, an implementation of ANSI Common Lisp.
More information about SBCL is available at <http://www.sbcl.org/>.
SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses. See the CREDITS and COPYING files in the
distribution for more information.
This is experimental prerelease support for the Windows platform: use
at your own risk. "Your Kitten of Death awaits!"
; loading system definition from
; c:\Share\Software\Lisp\asdf-binary-locations\asdf-binary-locations.asd into
; #<PACKAGE "ASDF0">
; registering #<SYSTEM ASDF-BINARY-LOCATIONS> as ASDF-BINARY-LOCATIONS
STYLE-WARNING: redefining LISP-VERSION-STRING in DEFUN
* (defun test () (format t "Hello.~%") (quit))
TEST
* (save-lisp-and-die "test-exec" :executable t :toplevel #'test)
[undoing binding stack and other enclosing state... done]
[saving current Lisp image into test-exec:
writing 3288 bytes from the read-only space at 0x22000000
writing 2384 bytes from the static space at 0x22100000
writing 28954624 bytes from the dynamic space at 0x22300000
done]
brainrot@...$ ./test-exec
This is experimental prerelease support for the Windows platform: use
at your own risk. "Your Kitten of Death awaits!"
Hello.
brainrot@...$ sbcl
This is SBCL 1.0.42, an implementation of ANSI Common Lisp.
More information about SBCL is available at <http://www.sbcl.org/>.
SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses. See the CREDITS and COPYING files in the
distribution for more information.
This is experimental prerelease support for the Windows platform: use
at your own risk. "Your Kitten of Death awaits!"
; loading system definition from
; c:\Share\Software\Lisp\asdf-binary-locations\asdf-binary-locations.asd into
; #<PACKAGE "ASDF0">
; registering #<SYSTEM ASDF-BINARY-LOCATIONS> as ASDF-BINARY-LOCATIONS
STYLE-WARNING: redefining LISP-VERSION-STRING in DEFUN
* (sb-ext:run-program (merge-pathnames "test-exec") nil)
debugger invoked on a SIMPLE-ERROR in thread #<THREAD "initial thread" RUNNING
{23DC4861}>:
couldn't fork child process: No such file or directory
Type HELP for debugger help, or (SB-EXT:QUIT) to exit from SBCL.
restarts (invokable by number or by possibly-abbreviated name):
0: [ABORT] Exit debugger, returning to top level.
(RUN-PROGRAM #P"c:\\Projects\\planet-wars\\aerique\\test-exec" NIL)[:EXTERNAL]
0] 0
While it says "No such file or directory" that doesn't seem to be the
problem, since it does work for Notepad.
Could the SBCLs be interfering?
note: This is all on Windows Vista using the experimental SBCL 1.0.42
with threads.
|