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

macos-latest(12.7) and PHP 8.1 Library not loaded: libsodium.26.dylib #780

Closed
2 of 5 tasks
Yurunsoft opened this issue Nov 7, 2023 · 3 comments
Closed
2 of 5 tasks
Assignees
Labels
bug Something isn't working

Comments

@Yurunsoft
Copy link

Describe the bug

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

macos-latest

PHP versions

8.1

To Reproduce

      - name: Setup PHP
        uses: shivammathur/setup-php@v2
        with:
          php-version: 8.1
          tools: pecl
          extensions: >
            apcu, bcmath, curl, openssl, mbstring, intl, json, redis, mysqli, pdo, pdo_mysql, sockets, zip, :opcache

Expected behavior

No problem

Screenshots/Logs

image

dyld[2040]: Library not loaded: '@loader_path/../../../../opt/libsodium/lib/libsodium.26.dylib'
  Referenced from: '/usr/local/Cellar/php@8.1/8.1.[25](https://github.com/imiphp/imi/actions/runs/6780634524/job/18429590036#step:6:26)_1/bin/php'
  Reason: tried: '/usr/local/Cellar/php@8.1/8.1.25_1/bin/../../../../opt/libsodium/lib/libsodium.[26](https://github.com/imiphp/imi/actions/runs/6780634524/job/18429590036#step:6:27).dylib' (no such file), '/usr/local/lib/libsodium.26.dylib' (no such file), '/usr/lib/libsodium.26.dylib' (no such file)

Additional context

macos-latest(12.6.9) OK
macos-latest(12.7) error

Are you willing to submit a PR?

@Yurunsoft Yurunsoft added the bug Something isn't working label Nov 7, 2023
@SystemKeeper
Copy link

Same happens for PHP 8.0 on macos runner

@shivammathur
Copy link
Owner

@Yurunsoft @SystemKeeper

Fixed in 2.27.1.

If you use v2 no changes are needed, If you pin the version or hash, please upgrade,
Then, please rerun your workflow, it should install correctly now.

caendesilva added a commit to hydephp/develop that referenced this issue Nov 7, 2023
@SystemKeeper
Copy link

Works fine, thank you very much for the quick fix!

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

3 participants