Compile Error

Good eveings,

I am new to Zephir and very excited.

I installed Zephir in my 3 linux boxes and all failed to compile and run Zephir properly.

Below is the linux box - CentOS6.6 Minimal - that I just installed in VirtualBox.

And I was not able to complie.

Please, help.

$ php -v PHP 5.3.3 (cli) (built: Oct 30 2014 20:12:53) Copyright (c) 1997-2010 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies

$ phpize -v Configuring for: PHP Api Version: 20090626 Zend Module Api No: 20090626 Zend Extension Api No: 220090626

$ uname -a Linux jae.work.org 2.6.32-504.el6.x8664 #1 SMP Wed Oct 15 04:27:16 UTC 2014 x8664 x8664 x8664 GNU/Linux

$ zephir _ _ /_ / _ / / ()_ / / / _ \/ _ \/ _ \/ / / / // _/ // / / / / / / //_/ .// //// /_/

Zephir version 0.5.9a

$ vi utils/greeting.zep namespace Utils;

class Greeting {

public static function say()
{
    echo "hello world!";
}

}

$ zephir build Compiling... Installing... Zephir\CompilerException: Internal extension compilation failed. Check compile-errors.log for more information

$ vi compile-errors.log In file included from /usr/include/php/ext/spl/spliterators.h:27, from /root/zephir/utils/ext/kernel/main.h:25, from /root/zephir/utils/ext/utils.c:23: /usr/include/php/ext/pcre/phppcre.h:29:18: error: pcre.h: No such file or directory In file included from /usr/include/php/ext/spl/spliterators.h:27, from /root/zephir/utils/ext/kernel/main.h:25, from /root/zephir/utils/ext/utils.c:23: /usr/include/php/ext/pcre/phppcre.h:37: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token /usr/include/php/ext/pcre/php_pcre.h:38: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token /usr/include/php/ext/pcre/phppcre.h:44: error: expected specifier-qualifier-list before ‘pcre’ In file included from /usr/include/php/ext/spl/spliterators.h:27, from ./kernel/main.h:25, from /root/zephir/utils/ext/kernel/main.c:29: /usr/include/php/ext/pcre/phppcre.h:29:18: error: pcre.h: No such file or directory In file included from /usr/include/php/ext/spl/spliterators.h:27, from ./kernel/main.h:25, from /root/zephir/utils/ext/kernel/main.c:29: /usr/include/php/ext/pcre/phppcre.h:37: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘*’ token /usr/include/php/ext/pcre/phppcre.h:38: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token /usr/include/php/ext/pcre/php_pcre.h:44: error: expected specifier-qualifier-list before ‘pcre’ make: [utils.lo] Error 1 make: Waiting for unfinished jobs.... make: [kernel/main.lo] Error 1 In file included from /usr/include/php/ext/spl/spliterators.h:27, from /root/zephir/utils/ext/kernel/main.h:25, from /root/zephir/utils/ext/utils.c:23: /usr/include/php/ext/pcre/phppcre.h:29:18: error: pcre.h: No such file or directory In file included from /usr/include/php/ext/spl/spliterators.h:27, from /root/zephir/utils/ext/kernel/main.h:25, from /root/zephir/utils/ext/utils.c:23: /usr/include/php/ext/pcre/phppcre.h:37: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘_attribute’ before ‘*’ token /usr/include/php/ext/pcre/phppcre.h:38: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘_attribute’ before ‘*’ token /usr/include/php/ext/pcre/phppcre.h:44: error: expected specifier-qualifier-list before ‘pcre’ make: * [utils.lo] Error 1

edited Dec '14

error: pcre.h: No such file or directory In file included from

Please install libpcre3-dev