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

Unable to use ev library #844

Closed
2 of 5 tasks
Kovah opened this issue May 27, 2024 · 5 comments
Closed
2 of 5 tasks

Unable to use ev library #844

Kovah opened this issue May 27, 2024 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@Kovah
Copy link

Kovah commented May 27, 2024

Describe the bug
i was trying to use the ev library in a pipeline, but I am unable to install it with the Setup PHP action.

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-latest

PHP versions
8.3.7

To Reproduce

  - name: Setup PHP
    uses: shivammathur/setup-php@v2
    with:
      php-version: 8.3
      extensions: mbstring, bcmath, redis, swoole, ev, sockets
      coverage: xdebug

Expected behavior
EV to be installed.

Screenshots/Logs

==> Setup PHP
✓ PHP Installed PHP 8.3.7

==> Setup Extensions
✓ mbstring Enabled
✓ bcmath Enabled
✓ redis Enabled
✓ swoole Enabled
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20230831/ev.so' (tried: /usr/lib/php/20230831/ev.so (/usr/lib/php/20230831/ev.so: undefined symbol: socket_ce), /usr/lib/php/20230831//usr/lib/php/20230831/ev.so.so (/usr/lib/php/20230831//usr/lib/php/20230831/ev.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
✗ ev Could not install ev on PHP 8.3.7
✓ sockets Enabled

Additional context
I guess that it needs the same fix as the event extension as described as a fix in #722

Are you willing to submit a PR?

@Kovah Kovah added the bug Something isn't working label May 27, 2024
@shivammathur
Copy link
Owner

@Kovah
Please specify EVENT_LIBS env as libev-dev, then it will install it before installing event extension.

- name: Setup PHP
  uses: shivammathur/setup-php@v2
  with:
    php-version: 8.3
    extensions: mbstring, bcmath, redis, swoole, event, sockets
    coverage: xdebug
  env:
    EVENT_LIBS: libev-dev

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

@shivammathur shivammathur added workflow-edit Issue can be fixed by editing the GitHub Action workflow and removed bug Something isn't working labels May 27, 2024
@Kovah
Copy link
Author

Kovah commented May 28, 2024

Sorry my bad, it's not about the event library, but ev. I corrected the yaml in the original post. Does this fix also apply to ev?

@shivammathur
Copy link
Owner

@Kovah
ok. I have fixed that in 2a62003.

It will be in the next release.

@shivammathur shivammathur reopened this May 28, 2024
@shivammathur shivammathur added bug Something isn't working awaiting-release Added/Fixed and tested, awaiting release and removed workflow-edit Issue can be fixed by editing the GitHub Action workflow labels May 28, 2024
@Kovah
Copy link
Author

Kovah commented May 28, 2024

Awesome! Many thanks!

@shivammathur
Copy link
Owner

@shivammathur shivammathur removed the awaiting-release Added/Fixed and tested, awaiting release label Jun 3, 2024
cuixq referenced this issue in google/osv-scanner Jul 2, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [actions/checkout](https://togithub.com/actions/checkout) | action |
patch | `v4.1.1` -> `v4.1.7` |
| [actions/setup-go](https://togithub.com/actions/setup-go) | action |
patch | `v5.0.0` -> `v5.0.1` |
| [github/codeql-action](https://togithub.com/github/codeql-action) |
action | patch | `v3.25.10` -> `v3.25.11` |
| [r-lib/actions](https://togithub.com/r-lib/actions) | action | minor |
`v2.8.7` -> `v2.9.0` |
| [ruby/setup-ruby](https://togithub.com/ruby/setup-ruby) | action |
minor | `v1.175.1` -> `v1.183.0` |
| [shivammathur/setup-php](https://togithub.com/shivammathur/setup-php)
| action | minor | `v2.30.4` -> `2.31.0` |

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Release Notes

<details>
<summary>actions/checkout (actions/checkout)</summary>

###
[`v4.1.7`](https://togithub.com/actions/checkout/blob/HEAD/CHANGELOG.md#v417)

[Compare
Source](https://togithub.com/actions/checkout/compare/v4.1.6...v4.1.7)

- Bump the minor-npm-dependencies group across 1 directory with 4
updates by [@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/actions/checkout/pull/1739](https://togithub.com/actions/checkout/pull/1739)
- Bump actions/checkout from 3 to 4 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/actions/checkout/pull/1697](https://togithub.com/actions/checkout/pull/1697)
- Check out other refs/\* by commit by
[@&#8203;orhantoy](https://togithub.com/orhantoy) in
[https://github.com/actions/checkout/pull/1774](https://togithub.com/actions/checkout/pull/1774)
- Pin actions/checkout's own workflows to a known, good, stable version.
by [@&#8203;jww3](https://togithub.com/jww3) in
[https://github.com/actions/checkout/pull/1776](https://togithub.com/actions/checkout/pull/1776)

###
[`v4.1.6`](https://togithub.com/actions/checkout/blob/HEAD/CHANGELOG.md#v416)

[Compare
Source](https://togithub.com/actions/checkout/compare/v4.1.5...v4.1.6)

- Check platform to set archive extension appropriately by
[@&#8203;cory-miller](https://togithub.com/cory-miller) in
[https://github.com/actions/checkout/pull/1732](https://togithub.com/actions/checkout/pull/1732)

###
[`v4.1.5`](https://togithub.com/actions/checkout/releases/tag/v4.1.5)

[Compare
Source](https://togithub.com/actions/checkout/compare/v4.1.4...v4.1.5)

#### What's Changed

- Update NPM dependencies by
[@&#8203;cory-miller](https://togithub.com/cory-miller) in
[https://github.com/actions/checkout/pull/1703](https://togithub.com/actions/checkout/pull/1703)
- Bump github/codeql-action from 2 to 3 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/actions/checkout/pull/1694](https://togithub.com/actions/checkout/pull/1694)
- Bump actions/setup-node from 1 to 4 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/actions/checkout/pull/1696](https://togithub.com/actions/checkout/pull/1696)
- Bump actions/upload-artifact from 2 to 4 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/actions/checkout/pull/1695](https://togithub.com/actions/checkout/pull/1695)
- README: Suggest `user.email` to be
`41898282+github-actions[bot]@&#8203;users.noreply.github.com` by
[@&#8203;cory-miller](https://togithub.com/cory-miller) in
[https://github.com/actions/checkout/pull/1707](https://togithub.com/actions/checkout/pull/1707)

**Full Changelog**:
actions/checkout@v4.1.4...v4.1.5

###
[`v4.1.4`](https://togithub.com/actions/checkout/blob/HEAD/CHANGELOG.md#v414)

[Compare
Source](https://togithub.com/actions/checkout/compare/v4.1.3...v4.1.4)

- Disable `extensions.worktreeConfig` when disabling `sparse-checkout`
by [@&#8203;jww3](https://togithub.com/jww3) in
[https://github.com/actions/checkout/pull/1692](https://togithub.com/actions/checkout/pull/1692)
- Add dependabot config by
[@&#8203;cory-miller](https://togithub.com/cory-miller) in
[https://github.com/actions/checkout/pull/1688](https://togithub.com/actions/checkout/pull/1688)
- Bump the minor-actions-dependencies group with 2 updates by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/actions/checkout/pull/1693](https://togithub.com/actions/checkout/pull/1693)
- Bump word-wrap from 1.2.3 to 1.2.5 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/actions/checkout/pull/1643](https://togithub.com/actions/checkout/pull/1643)

###
[`v4.1.3`](https://togithub.com/actions/checkout/releases/tag/v4.1.3)

[Compare
Source](https://togithub.com/actions/checkout/compare/v4.1.2...v4.1.3)

#### What's Changed

- Update `actions/checkout` version in `update-main-version.yml` by
[@&#8203;jww3](https://togithub.com/jww3) in
[https://github.com/actions/checkout/pull/1650](https://togithub.com/actions/checkout/pull/1650)
- Check git version before attempting to disable `sparse-checkout` by
[@&#8203;jww3](https://togithub.com/jww3) in
[https://github.com/actions/checkout/pull/1656](https://togithub.com/actions/checkout/pull/1656)
- Add SSH user parameter by
[@&#8203;cory-miller](https://togithub.com/cory-miller) in
[https://github.com/actions/checkout/pull/1685](https://togithub.com/actions/checkout/pull/1685)

**Full Changelog**:
actions/checkout@v4.1.2...v4.1.3

###
[`v4.1.2`](https://togithub.com/actions/checkout/blob/HEAD/CHANGELOG.md#v412)

[Compare
Source](https://togithub.com/actions/checkout/compare/v4.1.1...v4.1.2)

- Fix: Disable sparse checkout whenever `sparse-checkout` option is not
present [@&#8203;dscho](https://togithub.com/dscho) in
[https://github.com/actions/checkout/pull/1598](https://togithub.com/actions/checkout/pull/1598)

</details>

<details>
<summary>actions/setup-go (actions/setup-go)</summary>

###
[`v5.0.1`](https://togithub.com/actions/setup-go/releases/tag/v5.0.1)

[Compare
Source](https://togithub.com/actions/setup-go/compare/v5.0.0...v5.0.1)

#### What's Changed

- Bump undici from 5.28.2 to 5.28.3 and dependencies upgrade by
[@&#8203;dependabot](https://togithub.com/dependabot) ,
[@&#8203;HarithaVattikuti](https://togithub.com/HarithaVattikuti) in
[https://github.com/actions/setup-go/pull/465](https://togithub.com/actions/setup-go/pull/465)
- Update documentation with latest V5 release notes by
[@&#8203;ab](https://togithub.com/ab) in
[https://github.com/actions/setup-go/pull/459](https://togithub.com/actions/setup-go/pull/459)
- Update version documentation by
[@&#8203;178inaba](https://togithub.com/178inaba) in
[https://github.com/actions/setup-go/pull/458](https://togithub.com/actions/setup-go/pull/458)
- Documentation update of `actions/setup-go` to v5 by
[@&#8203;chenrui333](https://togithub.com/chenrui333) in
[https://github.com/actions/setup-go/pull/449](https://togithub.com/actions/setup-go/pull/449)

#### New Contributors

- [@&#8203;ab](https://togithub.com/ab) made their first contribution in
[https://github.com/actions/setup-go/pull/459](https://togithub.com/actions/setup-go/pull/459)

**Full Changelog**:
actions/setup-go@v5.0.0...v5.0.1

</details>

<details>
<summary>github/codeql-action (github/codeql-action)</summary>

###
[`v3.25.11`](https://togithub.com/github/codeql-action/compare/v3.25.10...v3.25.11)

[Compare
Source](https://togithub.com/github/codeql-action/compare/v3.25.10...v3.25.11)

</details>

<details>
<summary>r-lib/actions (r-lib/actions)</summary>

###
[`v2.9.0`](https://togithub.com/r-lib/actions/compare/v2.8.7...v2.9.0)

[Compare
Source](https://togithub.com/r-lib/actions/compare/v2.8.7...v2.9.0)

</details>

<details>
<summary>ruby/setup-ruby (ruby/setup-ruby)</summary>

###
[`v1.183.0`](https://togithub.com/ruby/setup-ruby/releases/tag/v1.183.0)

[Compare
Source](https://togithub.com/ruby/setup-ruby/compare/v1.182.0...v1.183.0)

**Full Changelog**:
ruby/setup-ruby@v1.182.0...v1.183.0

###
[`v1.182.0`](https://togithub.com/ruby/setup-ruby/releases/tag/v1.182.0)

[Compare
Source](https://togithub.com/ruby/setup-ruby/compare/v1.181.0...v1.182.0)

**Full Changelog**:
ruby/setup-ruby@v1.181.0...v1.182.0

###
[`v1.181.0`](https://togithub.com/ruby/setup-ruby/releases/tag/v1.181.0)

[Compare
Source](https://togithub.com/ruby/setup-ruby/compare/v1.180.1...v1.181.0)

##### What's Changed

- Add jruby-9.3.15.0 by
[@&#8203;ruby-builder-bot](https://togithub.com/ruby-builder-bot) in
[https://github.com/ruby/setup-ruby/pull/614](https://togithub.com/ruby/setup-ruby/pull/614)

**Full Changelog**:
ruby/setup-ruby@v1.180.1...v1.181.0

###
[`v1.180.1`](https://togithub.com/ruby/setup-ruby/releases/tag/v1.180.1):
Add ruby-3.3.3 on Windows

[Compare
Source](https://togithub.com/ruby/setup-ruby/compare/v1.180.0...v1.180.1)

###
[`v1.180.0`](https://togithub.com/ruby/setup-ruby/releases/tag/v1.180.0):
Add ruby-3.3.3

[Compare
Source](https://togithub.com/ruby/setup-ruby/compare/v1.179.1...v1.180.0)

###
[`v1.179.1`](https://togithub.com/ruby/setup-ruby/releases/tag/v1.179.1):
Improve error message for CRuby &lt; 2.6 on macos-arm64

[Compare
Source](https://togithub.com/ruby/setup-ruby/compare/v1.179.0...v1.179.1)

###
[`v1.179.0`](https://togithub.com/ruby/setup-ruby/releases/tag/v1.179.0):
Add ruby-3.1.6,ruby-3.3.2 on Windows

[Compare
Source](https://togithub.com/ruby/setup-ruby/compare/v1.178.0...v1.179.0)

#### What's Changed

- Update CRuby releases on Windows by
[@&#8203;ruby-builder-bot](https://togithub.com/ruby-builder-bot) in
[https://github.com/ruby/setup-ruby/pull/605](https://togithub.com/ruby/setup-ruby/pull/605)

**Full Changelog**:
ruby/setup-ruby@v1.178.0...v1.179.0

###
[`v1.178.0`](https://togithub.com/ruby/setup-ruby/releases/tag/v1.178.0):
Add ruby-3.1.6,ruby-3.3.2 and improve error messages

[Compare
Source](https://togithub.com/ruby/setup-ruby/compare/v1.177.1...v1.178.0)

#### What's Changed

- Add ruby-3.1.6,ruby-3.3.2 by
[@&#8203;ruby-builder-bot](https://togithub.com/ruby-builder-bot) in
[https://github.com/ruby/setup-ruby/pull/603](https://togithub.com/ruby/setup-ruby/pull/603)

**Full Changelog**:
ruby/setup-ruby@v1.177.1...v1.178.0

###
[`v1.177.1`](https://togithub.com/ruby/setup-ruby/releases/tag/v1.177.1):
Use downloadAndExtract() for truffleruby+graalvm too

[Compare
Source](https://togithub.com/ruby/setup-ruby/compare/v1.177.0...v1.177.1)

###
[`v1.177.0`](https://togithub.com/ruby/setup-ruby/releases/tag/v1.177.0):
Add support for ubuntu-24.04

[Compare
Source](https://togithub.com/ruby/setup-ruby/compare/v1.176.2...v1.177.0)

###
[`v1.176.2`](https://togithub.com/ruby/setup-ruby/releases/tag/v1.176.2):
Add ruby-3.4.0-preview1

[Compare
Source](https://togithub.com/ruby/setup-ruby/compare/v1.176.0...v1.176.2)

###
[`v1.176.0`](https://togithub.com/ruby/setup-ruby/releases/tag/v1.176.0):
Add jruby-9.4.7.0

[Compare
Source](https://togithub.com/ruby/setup-ruby/compare/v1.175.1...v1.176.0)

</details>

<details>
<summary>shivammathur/setup-php (shivammathur/setup-php)</summary>

###
[`v2.31.0`](https://togithub.com/shivammathur/setup-php/releases/tag/2.31.0)

[Compare
Source](https://togithub.com/shivammathur/setup-php/compare/2.30.5...2.31.0)

##### Changelog

- Added support for a fallback mirror for `ondrej/php` PPA when
launchpad is down
([#&#8203;834](https://togithub.com/shivammathur/setup-php/issues/834)).

- Fixed installing packages on self-hosted environments with existing
conf files
([#&#8203;852](https://togithub.com/shivammathur/setup-php/issues/852)).

-   Fixed support for `oci8` and `pdo_oci` extensions on `ubuntu-24.04`.

-   Fixed support for `couchbase` extension on `ubuntu-24.04`.

- Fixed support for `ubuntu-24.04` after `apt-fast` was dropped from the
GA images.

-   Fixed support for `firebird` extension on `macos-14`

-   Fixed support for `blackfire` extension on `macos-14`.

-   Fixed support for `relay` extension.

-   Fixed support for `phalcon` extension for PHP 7.4 on Ubuntu.

-   Updated Node.js dependencies.

For the complete list of changes, please refer to the [Full
Changelog](https://togithub.com/shivammathur/setup-php/compare/2.30.5...2.31.0)

<p>
  <h4>Follow for updates</h4>
<a href="https://reddit.com/r/setup_php" title="setup-php reddit"><img
alt="setup-php reddit"
src="https://img.shields.io/badge/reddit-join-FF5700?logo=reddit&logoColor=FF5700&labelColor=555555"></a>
<a href="https://twitter.com/setup_php" title="setup-php twitter"><img
alt="setup-php twitter"
src="https://img.shields.io/badge/twitter-follow-1DA1F2?logo=twitter&logoColor=1DA1F2&labelColor=555555"></a>
<a href="https://status.setup-php.com" title="setup-php status"><img
alt="setup-php status"
src="https://img.shields.io/badge/status-subscribe-28A745?logo=statuspage&logoColor=28A745&labelColor=555555"></a>
</p>

###
[`v2.30.5`](https://togithub.com/shivammathur/setup-php/releases/tag/2.30.5)

[Compare
Source](https://togithub.com/shivammathur/setup-php/compare/2.30.4...2.30.5)

##### Changelog

-   Added support for Ubuntu 24.04.

- Added support for `easy-coding-standard` in tools
([https://github.com/shivammathur/setup-php/pull/838](https://togithub.com/shivammathur/setup-php/pull/838))

-   Added support for zephir_parser for PHP 8.3.

- Fixed installing zts PHP versions on macOS
([https://github.com/shivammathur/setup-php/issues/847](https://togithub.com/shivammathur/setup-php/issues/847)).

- Fixed installing `ev` extension
([https://github.com/shivammathur/setup-php/issues/844](https://togithub.com/shivammathur/setup-php/issues/844)).

- Fixed support for `ioncube` extension
([https://github.com/shivammathur/setup-php/issues/840](https://togithub.com/shivammathur/setup-php/issues/840)).

-   Updated Node.js dependencies.

For the complete list of changes, please refer to the [Full
Changelog](https://togithub.com/shivammathur/setup-php/compare/2.30.4...2.30.5)

<p>
  <h4>Follow for updates</h4>
<a href="https://reddit.com/r/setup_php" title="setup-php reddit"><img
alt="setup-php reddit"
src="https://img.shields.io/badge/reddit-join-FF5700?logo=reddit&logoColor=FF5700&labelColor=555555"></a>
<a href="https://twitter.com/setup_php" title="setup-php twitter"><img
alt="setup-php twitter"
src="https://img.shields.io/badge/twitter-follow-1DA1F2?logo=twitter&logoColor=1DA1F2&labelColor=555555"></a>
<a href="https://status.setup-php.com" title="setup-php status"><img
alt="setup-php status"
src="https://img.shields.io/badge/status-subscribe-28A745?logo=statuspage&logoColor=28A745&labelColor=555555"></a>
</p>

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 6am on monday" in timezone
Australia/Sydney, Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config help](https://togithub.com/renovatebot/renovate/discussions) if
that's undesired.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/google/osv-scanner).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjEuMCIsInVwZGF0ZWRJblZlciI6IjM3LjQyMS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->

Co-authored-by: Xueqin Cui <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants