安装Zend Framework和使用zf脚本的问题

时间:2022-10-10 12:15:10

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

我已经安装了ZendFramewrok,其中包含:http://framework.zend.com/manual/en/learning.quickstart.create-project.html,当我尝试运行命令时

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?

我正在使用Ubuntu 11.04。有谁知道可能是什么问题?

2 个解决方案

#1


0  

Shandu, I think your current PHP install is broken. ZF isn't a source, as just simple php -i is a base key.

Shandu,我认为你当前的PHP安装已经破了。 ZF不是源,因为简单的php -i是基本密钥。

Try to reinstall PHP somehow to get normal default result of php -i

尝试以某种方式重新安装PHP以获得php -i的正常默认结果

#2


0  

php-cli is missing. on ubuntu install it via

php-cli不见了。在ubuntu上安装它

  • sudo apt-get install php5-cli
  • sudo apt-get install php5-cli

#1


0  

Shandu, I think your current PHP install is broken. ZF isn't a source, as just simple php -i is a base key.

Shandu,我认为你当前的PHP安装已经破了。 ZF不是源,因为简单的php -i是基本密钥。

Try to reinstall PHP somehow to get normal default result of php -i

尝试以某种方式重新安装PHP以获得php -i的正常默认结果

#2


0  

php-cli is missing. on ubuntu install it via

php-cli不见了。在ubuntu上安装它

  • sudo apt-get install php5-cli
  • sudo apt-get install php5-cli