Git Product home page Git Product logo

Comments (2)

shivammathur avatar shivammathur commented on May 27, 2024 3

All PHP versions using libsodium have been rebuilt
Please update brew and reinstall you php and libsodium.

For example for PHP 8.1

brew update
brew reinstall icu4c shivammathur/php/[email protected]

from homebrew-php.

om4csaba avatar om4csaba commented on May 27, 2024 1

It affects multiple versions:

8.1:

❯ php -v
dyld[20524]: Library not loaded: @loader_path/../../../../opt/libsodium/lib/libsodium.23.dylib
  Referenced from: <C62182FE-707B-3251-9A10-529AC98FB097> /opt/homebrew/Cellar/[email protected]/8.1.25/bin/php
  Reason: tried: '/opt/homebrew/Cellar/[email protected]/8.1.25/bin/../../../../opt/libsodium/lib/libsodium.23.dylib' (no such file)
[1]    20524 abort      php -v

8.0:

php -v
dyld[21200]: Library not loaded: /opt/homebrew/opt/libsodium/lib/libsodium.23.dylib
  Referenced from: <BE3190F8-8B9C-3F91-B156-201EEB7156A2> /opt/homebrew/Cellar/[email protected]/8.0.30/bin/php
  Reason: tried: '/opt/homebrew/opt/libsodium/lib/libsodium.23.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/opt/libsodium/lib/libsodium.23.dylib' (no such file), '/opt/homebrew/opt/libsodium/lib/libsodium.23.dylib' (no such file), '/opt/homebrew/Cellar/libsodium/1.0.19/lib/libsodium.23.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/Cellar/libsodium/1.0.19/lib/libsodium.23.dylib' (no such file), '/opt/homebrew/Cellar/libsodium/1.0.19/lib/libsodium.23.dylib' (no such file)
[1]    21200 abort      php -v

7.4:

❯ php -v
dyld[23952]: Library not loaded: /opt/homebrew/opt/libsodium/lib/libsodium.23.dylib
  Referenced from: <A039315C-2575-3770-ACFA-20EB6DDCD1F1> /opt/homebrew/Cellar/[email protected]/7.4.33_4/bin/php
  Reason: tried: '/opt/homebrew/opt/libsodium/lib/libsodium.23.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/opt/libsodium/lib/libsodium.23.dylib' (no such file), '/opt/homebrew/opt/libsodium/lib/libsodium.23.dylib' (no such file), '/opt/homebrew/Cellar/libsodium/1.0.19/lib/libsodium.23.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/Cellar/libsodium/1.0.19/lib/libsodium.23.dylib' (no such file), '/opt/homebrew/Cellar/libsodium/1.0.19/lib/libsodium.23.dylib' (no such file)
[1]    23952 abort      php -v

And probably all older versions, but 8.3 is not affected.

It seems like a simple ❯ ln -sf libsodium.26.dylib libsodium.23.dylib under /opt/homebrew/opt/libsodium/lib solves the problem, but I have not tested libsodium inside PHP.

from homebrew-php.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.