升級到10.9 Mavericks後,在嘗試運行php腳本時出現以下錯誤。升級到mac os後執行php文件時出錯x Mavericks 10.9
我使用的是Zend Server,並且禁用了默認的httpd和php。升級前一切正常。
例子:
的PHPUnit:
/usr/local/bin/phpunit: line 2: ?php: No such file or directory
/usr/local/bin/phpunit: line 3: /Applications: is a directory
/usr/local/bin/phpunit: line 4: LICENSE.html: command not found
/usr/local/bin/phpunit: line 5: syntax error near unexpected token `('
/usr/local/bin/phpunit: line 5: ` * Copyright (c) 2001-2013, Sebastian Bergmann <[email protected]>.'
phpcs
/usr/local/zend/bin/phpcs: line 2: ?php: No such file or directory
/usr/local/zend/bin/phpcs: line 3: /Applications: is a directory
/usr/local/zend/bin/phpcs: line 4: LICENSE.html: command not found
/usr/local/zend/bin/phpcs: line 5: LICENSE.html: command not found
/usr/local/zend/bin/phpcs: line 6: LICENSE.html: command not found
/usr/local/zend/bin/phpcs: line 7: LICENSE.html: command not found
/usr/local/zend/bin/phpcs: line 8: LICENSE.html: command not found
/usr/local/zend/bin/phpcs: line 9: LICENSE.html: command not found
/usr/local/zend/bin/phpcs: line 10: LICENSE.html: command not found
/usr/local/zend/bin/phpcs: line 11: syntax error near unexpected token newline
/usr/local/zend/bin/phpcs: line 11: ` * @author Greg Sherwood <[email protected]>'
如果我運行/ usr /本地/的Zend /斌/ PHP在/ usr/local/bin目錄/ PHPUnit的或/ usr /本地/的Zend /斌/ PHP的/ usr/local/bin目錄/ phpcs它的工作原理
其他詳情:
$ PATH -bash:/選擇/ local/bin目錄中:/ opt/local/sbin中:在/ usr /本地/的Zend /斌:在/ usr/bin中:/ bin中:/ usr/sbin目錄:/ sbin目錄:在/ usr/local/bin目錄中:/ opt/X11/bin:/ usr/local/zend/bin:沒有這樣的文件或目錄
請告訴我錯誤訊息? – Sliq
我在描述中寫了什麼。而不是使用PHP執行php文件,它使用bash執行它。 –