Table Of Contents

Previous topic

< Phalcon Developer Tools on Windows

Next topic

Phalcon Developer Tools on Linux >

Phalcon Developer Tools on Mac OS X

These steps will guide you through the process of installing Phalcon Developer Tools for OS/X.

Prerequisites

The Phalcon PHP extension is required to run Phalcon Tools. If you haven’t installed it yet, please see the Installation section for instructions.

Download

You can download a cross platform package containing the developer tools from the Download section. You can also clone it from Github.

Open the terminal application:

https://d33wubrfki0l68.cloudfront.net/c85b92ceeefd0151a254c51434c73862fccf8c3a/bf55b/assets/img/mac-1.png

Copy & Paste the commands below in your terminal:

wget -q --no-check-certificate -O phalcon-tools.zip http://github.com/phalcon/phalcon-devtools/zipball/master
unzip -q phalcon-tools.zip
mv phalcon-phalcon-devtools-* phalcon-tools

Check where the phalcon-tools directory was installed using a pwd command in your terminal:

https://d33wubrfki0l68.cloudfront.net/ec31655dc74434d59dbe19c0f5e2ce4f6d41b73c/1f31e/assets/img/mac-2.png

On the Mac platform, you need to configure your user PATH to include Phalcon tools. Edit your .profile and append the Phalcon tools path to the environment variable PATH:

https://d33wubrfki0l68.cloudfront.net/e08d2c40342eafce8bb5600068a5bd6c7edc62a8/3386e/assets/img/mac-3.png

Insert these two lines at the end of the file:

export PATH=$PATH:/Users/scott/phalcon-tools
export PTOOLSPATH=/Users/scott/phalcon-tools

The .profile should look like this:

https://d33wubrfki0l68.cloudfront.net/f1f7643aa350a4dfec3f523846f82befd2179d11/7c4c9/assets/img/mac-4.png

Save your changes and close the editor. In the terminal window, type the following commands to create a symbolic link to the phalcon.sh script:

ln -s ~/phalcon-tools/phalcon.sh ~/phalcon-tools/phalcon
chmod +x ~/phalcon-tools/phalcon

Type the command “phalcon” and you will see something like this:

https://d33wubrfki0l68.cloudfront.net/1d4c2cd04ca2773ce046440f23d4f26d797cea80/8173b/assets/img/mac-5.png

Congratulations you now have Phalcon tools installed!