I am trying to install Phalcon Dev Tools on OSX. I have Phalcon installed and it works great.
I followed these instructions: http://docs.phalconphp.com/en/latest/reference/mactools.html
When I run the phalcon command in the terminal, I get the following output:
Phalcon Developer Tools Installer Make sure phalcon.sh is in the same dir as phalcon.php and that you are running this with sudo or as root. Installing Devtools... Working dir is: /Users/me/phalcon-tools Done. Devtools installed!
Now how to use devtools? When I enter phalcon commands , the output is exactly the same as above, and continues to tell me that it is installed.
Did I miss something?
I noticed in the phalcon.sh script, at the end it had:
if check_install; then php "$PTOOLSPATH/phalcon.php" $* fi
So, if check_install passes, run phalcon.php . I tried to run this script manually and nothing happens on the terminal.
$PTOOLSPATH . I confirmed this with echo $PTOOLSPATH .
My /usr/bin/env php correct and points to MAMP PHP. I currently have Phalcon installed using MAMP. My PHP is correct:
which php /Applications/MAMP/bin/php/php5.5.23/bin/php
Checking the phalcon.php script and using xdebug, I found that the problem lies here:
if (!extension_loaded('phalcon')) { throw new Exception( sprintf( "Phalcon extension isn't installed, follow these instructions to install it: %s", Script::DOC_INSTALL_URL ) ); }
Therefore, the Phalcon extension does not load. Not sure why it is not printing the exception output in the terminal. But the PHP error log shows:
[21-May-2015 22:37:48 Europe/Berlin] PHP Fatal error: Class 'Phalcon\Script' not found in /Users/me/phalcon-tools/phalcon.php on line 41
Now I'm at a standstill.
Edit:
Running php -m showed me that Phalcon is not installed. Which is strange because I use Phalcon in my web application and it works great. As you can see, I downloaded the extension in php.ini .

Used version of PHP:
PHP 5.5.23 (cli) (built: Apr 9 2015 19:29:27)
As you can see, Phalcon is in the correct directory:
ls /Applications/MAMP/bin/php/php5.5.23/lib/php/extensions/no-debug-non-zts-20121212 apcu.so imagick.so phalcon.so ...
And as you can see from phpinfo() , it is installed ...

The following commands also give different results:
Shows Phalcon as installed:
echo "<?php phpinfo(); ?>" | php > phpinfo.txt && cat phpinfo.txt | grep phalcon
Indicates that Phalcon is not installed:
php -m
Any ideas?