简体   繁体   English

CakePHP:-bash:cake:命令未找到

[英]CakePHP: -bash: cake: command not found

I've used CakePHP a few times before but this is the first time I'm trying out Bake. 我以前曾经使用过几次CakePHP,但这是我第一次尝试Bake。 On my Mac I'm running CakePHP 1.3, PHP5.3.3, and MySQL. 在我的Mac上,我正在运行CakePHP 1.3,PHP5.3.3和MySQL。 I've created my database tables and the app connects to the database. 我已经创建了数据库表,应用程序连接到数据库。

I navigate to the console folder. 我导航到控制台文件夹。 and type ./cake 并输入./cake

I get welcome to the CakePHP v.1.3.5 Console. 欢迎来到CakePHP v.1.3.5控制台。 Then I gives me a list of shells to run. 然后我给了我一个要运行的shell列表。 It says 它说

To run a command, type 'cake shell_name [args]' 要运行命令,请键入'cake shell_name [args]'

I type: 我键入:

cake bake all

and get 得到

-bash: cake: command not found

Can someone help me out here? 有人可以帮帮我吗? I'm not sure if I've missed something. 我不确定我是否错过了什么。

Jonesy Jonesy

我没有使用CakePHP的经验,但尝试预先添加./

./cake bake all

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM