Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Cake Bake On Mac OS X

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
5,162
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Oct 28, 2009

Learn how to set up paths on a mac for the cake bake tool

the contents for the .profile

export PATH=/Applications/MAMP/bin/php5/bin/:/Applications/MAMP/Library/bin/:/Users/you­rhomedir/Sites/cake/cake/console/:$PATH

Category:

Education

Tags:

License:

Standard YouTube License

  • likes, 1 dislikes

Link to this comment:

Share to:

Uploader Comments (wobito)

  • Hay dude thanks for the video. I'm new to both Mac and cakephp. So your help is needed!

    Well, export PATH=/Applications/MAMP/Librar­y/bin:/Applications/MAMP/bin/p­hp5/bin:/Appl

    ications/MAMP/htdocs/blog/cake­/console:$PATH

    into my terminal and push the 'esc' key as you say but it doesn't do nothing excepting moving the cursor a step forward and all i hear this funny noise from clicking any key. What I'm doing wrong?

  • @AfgF16 try pressing Shift ; then type wq to write the file and then quit vi

  • I only get this error, never mind where I try "cake bake" cmd "mysql":

    -bash: cake: command not found

    I've careful with the paths. Do you think this is a permissions problem?

  • it shouldn't be a permissions problem, it can't find the cake command, meaning the path to the cake folder is incorrect or doesn't exist.

    send me what is in your .profile so I can check the paths

see all

All Comments (14)

Sign In or Sign Up now to post a comment!
  • How to do this without MAMP? There are no instructions anywhere! I have this in .profile

    export PATH=/usr/local/mysql/bin:/usr­/bin:/Users/ralphonz/Sites/Tes­ting/Cake_Blog/app/cake/consol­e:$PATH

    I just get -bash command not found, any help would be great

    Thanks

  • Hey man, I'm having the same problem as The Chinsu. Everything set up fine but when I go to cake bake a project is comes up with -bash: cake: command not found. When I re-opened terminal it said that all of the directories I had set up were directories so that shouldn't be a problem. It's worth noting as well that it didn't even recognise ls as a command after I'd changed directory to the htdocs folder in MAMP. Any ideas?

  • All seemed OK. 'cake bake' worked fine but running the site gives this error.

    Warning: include(cake/bootstrap.php) [function.include]: failed to open stream: No such file or directory in /Users/elijha/Sites/dvdtest/we­broot/index.php

    echo include path from webroot/ show this 'if' fails & stops the right folder loading.

    if (function_exists('ini_set') && ini_set('include_path', CAKE_CORE_INCLUDE_PATH . PATH_SEPARATOR . ROOT . DS . APP_DIR . DS . PATH_SEPARATOR . ini_get('include_path')))

  • I have to take this back. This does not work for cake bake all. do you have any idea why the database connection does not connect properly?

  • Excellent! Thank You!

  • when I tried this it didn't work so did some googling. Not entirely sure why but the file I needed to edit was .bash_profile all other instructions exactly the same and it worked a treat! many thanks

  • I have it working now even when I don't know what was wrong :P

    Two days later I just started all over again and got the mac baking in two minutes

    Anyway, thank you very much for the answer

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more