安装 Zend Framework 和使用 zf 脚本时出现问题

发布于 2024-11-25 01:04:33 字数 1357 浏览 2 评论 0原文

我已经按照以下说明安装了 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

泪之魂 2024-12-02 01:04:33

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

苦妄 2024-12-02 01:04:33

php-cli 丢失。 安装它

  • 在 ubuntu 上通过sudo apt-get install php5-cli

php-cli is missing. on ubuntu install it via

  • sudo apt-get install php5-cli
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文