Skip to main content

Posts

Showing posts from April, 2014

Installing Phalcon Developer Tools 1.3.1 in Ubuntu 13.10 / 14.04

Installing developer tools requires slightly more effort.
Download phalcon-developer-tools package here:           https://github.com/phalcon/phalcon-devtools Extract it to some convenient path. Via git :          git clone git://github.com/phalcon/phalcon-devtools.git  Install and create a phalcon symlink:        cd phalcon-devtools        sudo ./phalcon.sh Create a symbolink link to the phalcon.php script, replace this with the right path:

alias phalcon="/home/sherwinrobles/phalcon-devtools/phalcon.php" Remember to restart the console to reload the environment variables. Let’s try it out by listing available commands. 
       phalcon commands Gives me this error: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20121212/phalcon.so' - /usr/lib/php5/20121212/phalcon.so: undefined symbol: php_pdo_get_dbh_ce in Unknown on line 0 ERROR: Phalcon extension isn't installed, follow these instructions to install it: http://docs.phalconphp.com/en/latest/reference…

Installing PhalconPHP in Ubuntu 13.10 / 14.04

Here's how I install PhalconPHP

On Linux you can easily compile and install the extension from source code.

Requirements We need some packages previously installed:

LAMP
PHP 5.x development resources
GCC compiler

                     sudo apt-get install php5-dev php5-mysql gcc

Compilation 1. To create the extension from C source follow these steps:
If you dont have git installed you can install it with this command

sudo apt-get install git
                   git clone --depth=1 git://github.com/phalcon/cphalcon.git
                   cd cphalcon/build
                   sudo ./install


It gives me error:

          In file included from /usr/include/php5/ext/spl/spl_iterators.h:27:0,
                                   from /home/sherwinrobles/Applications/cphalcon/build/32bits/phalcon.c:204:
          /usr/include/php5/ext/pcre/php_pcre.h:29:18: fatal error: pcre.h: No such file or directory
          #include "pcre.h"

The solution :

        The latest version of Phalcon …