Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Warning: preg_match(): Allocation of JIT memory failed, PCRE JIT will be disabled. This is likely caused by security restrictions. Either grant PHP permission to allocate executable memory, or set pcre.jit=0 in phar:///Users/wangzhiyong/Library/Application Support/Herd/bin/expose/.box/vendor/composer/semver/src/VersionParser.php on line 48 Box Requirements Checker ======================== > Using PHP 7.4.33 > PHP is using the following php.ini file: WARNING: No configuration file (php.ini) used by PHP! > Checking Box requirements: E.. [ERROR] Your system is not ready to run the application. Fix the following mandatory requirements: ========================================= * The application requires the version "^8.1" or greater. #1203

Closed
rockmandash opened this issue Dec 18, 2024 · 5 comments
Labels

Comments

@rockmandash
Copy link

Platform

macOS

Operating system version

macOS 15.2(24C101)

System architecture

ARM64 (M1, M2, etc)

Herd Version

1.13.0

PHP Version

No response

Bug description

CleanShot 2024-12-18 at 14 12 51@2x

Warning: preg_match(): Allocation of JIT memory failed, PCRE JIT will be disabled. This is likely caused by security restrictions. Either grant PHP permission to allocate executable memory, or set pcre.jit=0 in phar:///Users/wangzhiyong/Library/Application Support/Herd/bin/expose/.box/vendor/composer/semver/src/VersionParser.php on line 48

Box Requirements Checker
========================

> Using PHP 7.4.33
> PHP is using the following php.ini file:
  WARNING: No configuration file (php.ini) used by PHP!

> Checking Box requirements:
  E..

                                                                                
 [ERROR] Your system is not ready to run the application.                       
                                                                                

Fix the following mandatory requirements:
=========================================

 * The application requires the version "^8.1" or greater.

Steps to reproduce

I'm not sure, but when I opened Herd, the bug appeared directly in my eye.

Relevant log output

No response

@issuelabeler issuelabeler bot added the macOS label Dec 18, 2024
@mpociot
Copy link
Member

mpociot commented Dec 18, 2024

Which PHP versions do you have installed?
Expose requires at least PHP 8.1 and it seems like you only have 7.4 installed.

@rockmandash
Copy link
Author

I have installed a lot of php using HERD long time ago (8.4, 8.3, 8.2, 8.1, 8.0, 7.4), but I just typed php --version it shows PHP 7.4.33 (cli)

@mpociot
Copy link
Member

mpociot commented Dec 18, 2024

Please choose a different default PHP version in Herd to fix this error.

@mpociot mpociot closed this as completed Dec 18, 2024
@rockmandash
Copy link
Author

could just detect the version first in order to show the correct error message.

@mpociot
Copy link
Member

mpociot commented Dec 18, 2024

@rockmandash yup, that's what we'll do in the next version 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants