[ZeroBrane Studio] Re: Moai SDK / ZeroBraneStudio question on OS X

  • From: Paul K <paul@xxxxxxxxxxxxx>
  • To: zerobrane@xxxxxxxxxxxxx
  • Date: Wed, 24 Apr 2013 13:07:15 -0700

Hi Julien,

> Program starting as '"~/Downloads/code/moai/bin/osx/moai" "/var/folders 
> /wk/m8p54f6j7tl6z2m0mzp9qhq40000gn/T/.pRGm8o"'.
> Program 'moai' started in 
> '/Users/.../Downloads/code/moai/samples/anim/anim-basic' (pid: 843).
> execvp(~/Downloads/code/moai/bin/osx/moai, 
> /var/folders/wk/m8p54f6j7tl6z2m0mzp9qhq40000gn/T/.pRGm8o) failed with error 2!

"error 2" usually means "File not found". This is likely to be cause
by you using "~" in the file name. The part that checks the PATH
expands it to the HOME folder, so it's able to find the file, but the
executable path ("execvp") doesn't do the expansion (probably for
security reasons).

If you replace '~' with the actual folder in your PATH/MOAI_BIN, I'd
expect it to work. Keep in mind that PATH is checked before MOAI_BIN,
so make sure you update it in the right place.

Please let me know if this doesn't resolve the issue.

Paul.

On Wed, Apr 24, 2013 at 1:00 PM, Julien Castelain <jcastelain@xxxxxxxxx> wrote:
> Hi all,
>
> I just setup moai, I can run the projects from my command line on os x, and
> moai executable is in my PATH.
>
> However when I try to run samples from ZeroBraneStudio I get this :
>
> Debugger server started at Some-MacBook-Pro.local:8172.
> Program starting as '"~/Downloads/code/moai/bin/osx/moai"
> "/var/folders/wk/m8p54f6j7tl6z2m0mzp9qhq40000gn/T/.pRGm8o"'.
> Program 'moai' started in
> '/Users/.../Downloads/code/moai/samples/anim/anim-basic' (pid: 843).
> execvp(~/Downloads/code/moai/bin/osx/moai,
> /var/folders/wk/m8p54f6j7tl6z2m0mzp9qhq40000gn/T/.pRGm8o) failed with error
> 2!
> Program completed in 0.00 seconds (pid: 843).
>
> Any Ideas,
> MOAI_BIN is set too.
>
> Thanks for the help
>
>

Other related posts: