我已经安装了ZendFramewrok,其中包含:http://framework.zend.com/manual/en/learning.quickstart.create-project.html的指令,当我尝试运行类似
的命令时php -i
我收到此错误:
/usr/bin/php: line 1: ?php: No such file or directory
/usr/bin/php: line 2: /bin: Is a directory
/usr/bin/php: line 3: Desktop: command not found
/usr/bin/php: line 4: Desktop: command not found
/usr/bin/php: line 5: Desktop: command not found
/usr/bin/php: line 6: Desktop: command not found
/usr/bin/php: line 7: Desktop: command not found
/usr/bin/php: line 8: Desktop: command not found
/usr/bin/php: line 9: Desktop: command not found
/usr/bin/php: line 10: Desktop: command not found
/usr/bin/php: line 11: Desktop: command not found
/usr/bin/php: line 12: Desktop: command not found
/usr/bin/php: line 13: Desktop: command not found
/usr/bin/php: line 14: Desktop: command not found
/usr/bin/php: line 15: Desktop: command not found
/usr/bin/php: line 16: Desktop: command not found
/usr/bin/php: line 17: Desktop: command not found
/usr/bin/php: line 18: syntax error near unexpected token `('
/usr/bin/php: line 18: ` * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)'
我使用的是Ubuntu 11.04。有谁知道会出现什么问题?
答案 0 :(得分:0)
Shandu,我认为您当前的PHP安装已经破解。 ZF不是源,因为简单的php -i
是基本密钥。
尝试以某种方式重新安装PHP以获得php -i
答案 1 :(得分:0)
php-cli丢失了。在ubuntu上通过
安装它