jags is distributed as jags.bat, but jags.bat is defined as not executable in windows. This is because Windows doesn't let you spawn arbitrary files. The command prompt implements various workarounds for this, but libuv has chosen not to try to duplicate them. It seems your options are either to spawn a command interpreter `cmd jags` or call `jags-terminal` directly
(neither of these is what the command prompt does, since the command prompt actually sources the files directly, thus modifying the callee's environment) On Sat, Aug 2, 2014 at 11:39 PM, KK Sasa <[email protected]> wrote: > > When the JAGS had been installed and added a path "C:\Program > Files\JAGS\JAGS-3.4.0\x64\bin" to system variable on WIndows 7 x64, I > turn Julia's REPL to shell mode and then command run(`jags`). But, it > return error like "Error: could not spawn `jags`: no such file or > directory (ENOENT)". > > I have tried Windows' Command Prompt out and simply command: jags, it can > find jags. But how to make Julia find JAGS? > > Thanks :) > >
