Does not work in OS X 10.9.5
Closed this issue · 1 comments
tholu commented
Tried to create a screenshot with the example. Does not work (no file is written). No debug output either (this makes me think something is seriously wrong), but phantomjs and casperjs are installed.
~$ casperjs --version
1.1.0-beta2
~$ phantomjs --version
1.9.7
$ php --version
PHP 5.4.33 (cli) (built: Sep 19 2014 21:58:25)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
with Xdebug v2.2.5, Copyright (c) 2002-2014, by Derick Rethans
Called from Laravel. Any pointers?
Edit: Narrowed down the error to the exec() call:
sh: casperjs: command not found
Edit: It's a path issue in Laravel.
print getenv("PATH");
outputs only
/usr/bin:/bin:/usr/sbin:/sbin