PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Thursday, February 17, 2022

[FIXED] How can I set up 'bake' with MAMP on OS X with projects in 'Sites'?

 February 17, 2022     .profile, cakephp, cakephp-bake, mamp     No comments   

Issue

I'm trying to set up 'cake bake' on OS X. I'm using MAMP and every time I try to 'bake', I get this:

-bash: cake: command not found

I have the Apress Beginning CakePHP book, but the suggestions in that book aren't working for me. In the Apress, book, he suggests the following solution in .profile

alias cake="php ~/Sites/blog/cake/console/cake.php"

I've also found some other suggestions: (put an alias in .profile)

alias cake="/Applications/MAMP/bin/php5/bin/php /Users/fabian/Sites/miapp/cake/console/cake.php"

alias cake="/Applications/MAMP/bin/php5/bin/php /Applications/MAMP/htdocs/cake/console/cake.php"

I've also tried this in terminal: /Applications/MAMP/bin/php5/bin/php ~/Sites/miapp/cake/console/cake.php bake

...but this didn't work either.

I also tried the solution in this YouTube video http://www.youtube.com/watch?v=KOBO-kEakQ0 , but that didn't work either.

So...how could I get 'bake' working with MAMP on OS X with my projects in 'Sites'?

Cheers!

Sam


Solution

not sure what cake bake is, but it looks like it can't find cake on your path. After you set the alias in your .profile did you issue:

source ~/.profile

to update the settings in it?



Answered By - D.C.
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing