安装 Zend Framework 和使用 zf 脚本时出现问题
我已经按照以下说明安装了 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。有谁知道可能是什么问题?
I have install ZendFramewrok with instruction on: http://framework.zend.com/manual/en/learning.quickstart.create-project.html and when I try to run command like
php -i
I get this error:
/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)'
I am using Ubuntu 11.04. Does anyone know what can be the problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Shandu,我认为您当前的 PHP 安装已损坏。 ZF 不是源,因为简单的
php -i
是一个基本密钥。尝试以某种方式重新安装 PHP 以获得
php -i
的正常默认结果Shandu, I think your current PHP install is broken. ZF isn't a source, as just simple
php -i
is a base key.Try to reinstall PHP somehow to get normal default result of
php -i
php-cli 丢失。 安装它
php-cli is missing. on ubuntu install it via