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

Could not install event extension #604

Closed
3 of 5 tasks
mbabker opened this issue Jun 10, 2022 · 3 comments
Closed
3 of 5 tasks

Could not install event extension #604

mbabker opened this issue Jun 10, 2022 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@mbabker
Copy link

mbabker commented Jun 10, 2022

Describe the bug
Trying to set up PHP with the event extension results in only that extension not being installed.

Version

  • I have checked releases, and the bug exists in the latest patch version of v1 or v2.
  • v2
  • v1

Runners

  • GitHub Hosted
  • Self Hosted

Operating systems
Ubuntu 20.04

PHP versions
8.1

To Reproduce

- name: Setup PHP
  uses: shivammathur/setup-php@v2
  with:
    php-version: '8.1'
    tools: composer:v2
    extensions: bcmath, curl, dom, event, gd, intl, libxml, mailparse, mbstring, pcntl, pdo, pdo_mysql, redis, uuid, xml, zip
    coverage: none

Expected behavior
The event extension to be installed from PECL

Screenshots/Logs
Screen Shot 2022-06-10 at 2 25 22 PM

Additional context
This is a build we're migrating from another CI for a Symfony application, the job starts up MySQL and Redis and installs wkhtmltopdf before setting up PHP and Node.

Are you willing to submit a PR?
If I knew how to fix it, sure!

@mbabker mbabker added the bug Something isn't working label Jun 10, 2022
@shivammathur shivammathur added enhancement New feature or request and removed bug Something isn't working labels Jun 10, 2022
@shivammathur
Copy link
Owner

shivammathur commented Jun 10, 2022

I will add support for event extension in the next release.

Currently on ubuntu you can use the API we have to specify libraries for extensions and it should install correctly.

- name: Setup PHP
  uses: shivammathur/setup-php@v2
  with:
    php-version: '8.1'
    tools: composer:v2
    extensions: bcmath, curl, dom, event, gd, intl, libxml, mailparse, mbstring, pcntl, pdo, pdo_mysql, redis, uuid, xml, zip
    coverage: none
  env:
    EVENT_LIBS: libevent-dev

Test workflow: https://github.com/shivammathur/test-setup-php/actions/runs/2477181984/workflow

@shivammathur
Copy link
Owner

Improved support for event in the 2.20.0 release. It should now work without EVENT_LIBS.

@mbabker
Copy link
Author

mbabker commented Jul 5, 2022

Thank you!

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

No branches or pull requests

2 participants