Multiple errors in OS X
Closed this issue · 3 comments
ethicalhack3r commented
Hi,
I'm trying to get magescan to run on OS X. I've tried both from source (latest git master) and using the magescan.phar
file.
My PHP version (installed with homebrew):
$ php -v
PHP 5.3.29 (cli) (built: May 3 2016 13:51:54)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2014 Zend Technologies
Error when running from source:
$ php bin/magescan
PHP Warning: require_once(/Users/ryan/Tools/magescan/src/../vendor/autoload.php): failed to open stream: No such file or directory in /Users/ryan/Tools/magescan/src/bootstrap.php on line 15
Warning: require_once(/Users/ryan/Tools/magescan/src/../vendor/autoload.php): failed to open stream: No such file or directory in /Users/ryan/Tools/magescan/src/bootstrap.php on line 15
PHP Fatal error: require_once(): Failed opening required '/Users/ryan/Tools/magescan/src/../vendor/autoload.php' (include_path='.:') in /Users/ryan/Tools/magescan/src/bootstrap.php on line 15
Fatal error: require_once(): Failed opening required '/Users/ryan/Tools/magescan/src/../vendor/autoload.php' (include_path='.:') in /Users/ryan/Tools/magescan/src/bootstrap.php on line 15
Ryans-MacBook-Pro:bin ryan$ php magescan scan:all www.example.com
PHP Warning: require_once(/Users/ryan/Tools/magescan/src/../vendor/autoload.php): failed to open stream: No such file or directory in /Users/ryan/Tools/magescan/src/bootstrap.php on line 15
Warning: require_once(/Users/ryan/Tools/magescan/src/../vendor/autoload.php): failed to open stream: No such file or directory in /Users/ryan/Tools/magescan/src/bootstrap.php on line 15
PHP Fatal error: require_once(): Failed opening required '/Users/ryan/Tools/magescan/src/../vendor/autoload.php' (include_path='.:') in /Users/ryan/Tools/magescan/src/bootstrap.php on line 15
Fatal error: require_once(): Failed opening required '/Users/ryan/Tools/magescan/src/../vendor/autoload.php' (include_path='.:') in /Users/ryan/Tools/magescan/src/bootstrap.php on line 15
^ for the above errors, I searched the magescan directory for the vendor
subdirectory but didn't find one. This file also doesn't exist magescan/src/bootstrap.php
.
Error when trying to run from magescan.phar
:
$ php magescan.phar scan:all www.example.com
PHP Parse error: syntax error, unexpected '[', expecting ')' in phar:///Users/ryan/Tools/magescan/magescan.phar/vendor/guzzlehttp/promises/src/functions.php on line 41
Parse error: syntax error, unexpected '[', expecting ')' in phar:///Users/ryan/Tools/magescan/magescan.phar/vendor/guzzlehttp/promises/src/functions.php on line 41
I was following the instructions from the README file on Github. Any help appreciated.
gwillem commented
You need at least PHP 5.5
ethicalhack3r commented
Oh wow, best update that! Released: 14 Aug 2014
Will close if all goes smoothly after update :)
EDIT ---
Thanks!
ethicalhack3r commented
Updated PHP, now works, thank you for your help!
$ php -v
PHP 5.5.35 (cli) (built: May 3 2016 14:39:27)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2015 Zend Technologies