We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

build issue Mac PHP7 + phalcon

php7 - installed

https://docs.zephir-lang.com/en/latest/install.html - successfully

git clone https://github.com/phalcon/cphalcon

cd cphalcon

git checkout 2.1.x

zephir build --backend=ZendEngine3

PHP Warning: copy(modules/zephir_parser.so): failed to open stream: No such file or directory in /Users/a-basov/work/my/cphalcon/zephir/Library/Compiler.php on line 277* PHP Stack trace: PHP 1. {main}() /Users/a-basov/work/my/cphalcon/zephir/compiler.php:0 PHP 2. Zephir\Bootstrap::boot() /Users/a-basov/work/my/cphalcon/zephir/compiler.php:21 PHP 3. Zephir\Commands\CommandAbstract->execute() /Users/a-basov/work/my/cphalcon/zephir/Library/Bootstrap.php:200 PHP 4. Zephir\Compiler->build() /Users/a-basov/work/my/cphalcon/zephir/Library/Commands/CommandAbstract.php:108 PHP 5. Zephir\Compiler->install() /Users/a-basov/work/my/cphalcon/zephir/Library/Compiler.php:1366 PHP 6. Zephir\Compiler->compile() /Users/a-basov/work/my/cphalcon/zephir/Library/Compiler.php:1285 PHP 7. Zephir\Compiler->generate() /Users/a-basov/work/my/cphalcon/zephir/Library/Compiler.php:1149 PHP 8. Zephir\Compiler->recursivePreCompile() /Users/a-basov/work/my/cphalcon/zephir/Library/Compiler.php:922 PHP 9. Zephir\Compiler->preCompile() /Users/a-basov/work/my/cphalcon/zephir/Library/Compiler.php:367 PHP 10. Zephir\Compiler->compileParser() /Users/a-basov/work/my/cphalcon/zephir/Library/Compiler.php:303 PHP 11. copy() /Users/a-basov/work/my/cphalcon/zephir/Library/Compiler.php:277

Warning: copy(modules/zephir_parser.so): failed to open stream: No such file or directory in /Users/a-basov/work/my/cphalcon/zephir/Library/Compiler.php on line 277

Call Stack: 0.0001 351728 1. {main}() /Users/a-basov/work/my/cphalcon/zephir/compiler.php:0 0.0006 389280 2. Zephir\Bootstrap::boot() /Users/a-basov/work/my/cphalcon/zephir/compiler.php:21 0.0023 505336 3. Zephir\Commands\CommandAbstract->execute() /Users/a-basov/work/my/cphalcon/zephir/Library/Bootstrap.php:200 0.0080 1549056 4. Zephir\Compiler->build() /Users/a-basov/work/my/cphalcon/zephir/Library/Commands/CommandAbstract.php:108 0.0080 1549056 5. Zephir\Compiler->install() /Users/a-basov/work/my/cphalcon/zephir/Library/Compiler.php:1366 0.0082 1549048 6. Zephir\Compiler->compile() /Users/a-basov/work/my/cphalcon/zephir/Library/Compiler.php:1285 0.0082 1549048 7. Zephir\Compiler->generate() /Users/a-basov/work/my/cphalcon/zephir/Library/Compiler.php:1149 0.0082 1549552 8. Zephir\Compiler->recursivePreCompile() /Users/a-basov/work/my/cphalcon/zephir/Library/Compiler.php:922 0.0154 1596344 9. Zephir\Compiler->preCompile() /Users/a-basov/work/my/cphalcon/zephir/Library/Compiler.php:367 0.0154 1596344 10. Zephir\Compiler->compileParser() /Users/a-basov/work/my/cphalcon/zephir/Library/Compiler.php:303 4.1016 1615920 11. copy() /Users/a-basov/work/my/cphalcon/zephir/Library/Compiler.php:277

Zephir\Exception: The zephir parser extension could not be found or compiled!*



145.0k
Accepted
answer

As you can see here it can't bo copied. Not sure what's oing on, what OS you are using ? Maybe some write/read permissions ?



684

Mac OS I try it with sudo and nothing changes