cphalcon icon indicating copy to clipboard operation
cphalcon copied to clipboard

Build error Phalcon 2.1.x in Windows

Open Studentsov opened this issue 10 years ago • 4 comments

I tried to build Phalcon 2.1.x from source codes, but received this error:

Zephir\ParseException: Syntax error in D:\PHP\cphalcon-2.1.x\phalcon\paginator\adapter\querybuilder.zep on line 168

      var groups = totalBuilder->getGroupBy();
    ----------------------------^

Windows 10, VS 2012, PHP 5.6.19 (NTS), Zephir 0.7.1 and 0.8 (I checked in both versions) I used this manual: https://github.com/phalcon/zephir/blob/master/WINDOWS.md

Studentsov avatar Mar 15 '16 19:03 Studentsov

As i remember you have to compile phalcon 2.1.x from zephir 0.9, as i know you have to compile zephir yourself - its in current repo.

Jurigag avatar Mar 15 '16 19:03 Jurigag

Well, I tried to use the master branch of Zephir. Now I got the output library. php_phalcon.dll 81,6 МB (85 656 064 bytes) It is sad

Studentsov avatar Mar 15 '16 20:03 Studentsov

For dev purposes on Windows PC you can try to use Vagrant Phalcon or Phalcon ready to go Docker Compose project

sergeyklay avatar Mar 15 '16 20:03 sergeyklay

@Studentsov this size is fine, it is norma on PHP TS. 250 MB on linux PHP 5.6.19 NTS

Jurigag avatar Mar 18 '16 23:03 Jurigag