-
Notifications
You must be signed in to change notification settings - Fork 53
php@5.6 Library not loaded libicui18n.64.dylib #23
Comments
My Solution. |
if it's still not fixed you can try |
I think there are ssl issues stopping
My initial thought is that php@5.6 has a dependency for openssl, which is being routed to openssl@1.1 and its this thats causing problems as it expections 1.0 version? |
Yes Josh, But I'd obviously prefer if this brew package could be repaired. |
Ok so i've found a proper solution to this Backgroud So PHP 5.6 can be recompiled to support the latest icu4c version, thus fixing the Solutiuon
Ensure openssl, icu4c are at the current versions
Edit the ruby file for php@5.6 to add in the patch.
In the text editor that opens add the following at lines 45-48
Reinstall PHP 5.6 building from source
For me this is a much more viable soultion as i use multiple versions of PHP etc on my local machine via homebrew (https://github.com/JParkinson1991/homebrew-lemp), it would have become a nightmare for me if i had to keep installing specific legacy versions of certain packages as i was trying to switch. Patching PHP 5.6 allows me to switch between all major versions oh php without any headaches as they're all running off the same major dependencies.
Those finding this solution now please be aware that this change has been rolled into a pull request containing an updagte formula that does not require this manual patching. See #25 |
Thanks @JParkinson1991 your solution worked for me, but it wasn't completely clear where to put the lines, so just to be clear: those should be inserted before |
Thanks for testing @dmitriydzyuba, it would be appeciated if you could test the pull request i opened which provides new install options for php 5.6 so this manual patching it not needed. |
I run command is issuse |
- Prevent crashes with incorrectly loading modules - Prevent crashes when dyld libraries are missing - Indicate when the PHP installation is broken - New warning added at boot (multiple services) - Added "Force load latest PHP version" option It is known that PHP 5.6, 7.0 and 7.1 are causing issues with the newer versions of certain libraries ("dyld library" warning). It is recommended to only use PHP 7.2, PHP 7.3 and PHP 7.4 for a minimal amount of issues. Otherwise, there are certain fixes that are possible but they are not supported via PHP Monitor since they require manual formula changes. For more information, see: eXolnet/homebrew-deprecated#23 (comment)
This worked for me! As @dmitriydzyuba said, the lines should be added before def install. So at least the install instructions should be updated to reflect this instruction, as a default install from homebrew using this repo won't run at first. And now it even runs without apache, directly from the command line, as /usr/local/opt/php@5.6/bin/php |
@weidmaster see this PR for a less manual implementation: #25 |
@JParkinson1991 thanks for the PR, I will take a look. It is just that I am a brand new developer working with a Mac machine in the company and have to work with some legacy code and I just started with brew and everything else and I am glad editing some file did work. |
Reading up on this issue. From my understanding there still no official fix to installing php 5.6? Perhaps stupid Q but if the legacy application I try to dust off do none encryptet req/replies do I need openssl? In no, is there a easy way of just rebuild from source without openssl? |
Thank for your swift reply. I have a look at #25 - I know, everything up to PHP 7.2 is EOL and good riddance 😄 I only need PHP 5.6 locally to enable me to install the app, and then rewrite it to PHP 7.4/8.x. |
Thanks! However, following this did not work for me instantly on Make sure 11.5 is the current selected version Then reinstall 5.6 then when trying to link it to be my current version I received this error: So I had to do this: Then unlink my current version and select 5.6 Then I close all terminal windows and verify my php version which is now 5.6 I found the solution of downgrading to 11.5 here: https://trac.macports.org/ticket/60988#comment:8 |
Still works for me (Oct 7 2020) thanks @JParkinson1991 |
I am getting this error:
|
Hi! Thank you for your interest in this repository. Unfortunately, this repository will now be archived with no further actions. We are sorry for the inconvenience. Why are we closing this repository? This repository was only meant as a temporary measure, not a permanent one. Its only purpose was to ease the transition, considering that formulae from the homebrew-core tap are removed almost the day they became unsupported by the vendor. We needed a few more months to allow us to upgrade the code base of the various projects we have. But it was always with the intention of doing those upgrades, not by relying on a repository to keep old php versions artificially alive. We do not condone the use of deprecated software that could lead to serious security vulnerabilities. Why are we not redirecting to another repository? Redirecting to another repository could be interpreted as an endorsement of said repository. If we were to do such a thing, we would not do it without vetting it first. And we do not wish to put the time and energy required in a vetting process of a third party repository. As the reason why a vetting process would be required, consider this. Before installing a software library on all our developer computers from an untrusted source, we would need to make sure that this software library is free from any malicious code (Trojan, ransomware, etc.), both in the repository itself and in the packaged binaries (the homebrew bottles, if any). Thank you for your understanding. |
Mac Catalina
The current version of libicui18n is 66 and this PHP 5.6 image is referencing version 64.
Brew do not keep historic versions of icu4c.rb so it's not possible to manually revert.
`Restarting apache
httpd: Syntax error on line 184 of /usr/local/etc/httpd/httpd.conf: Cannot load /usr/local/opt/php@5.6/lib/httpd/modules/libphp5.so into server: dlopen(/usr/local/opt/php@5.6/lib/httpd/modules/libphp5.so, 10): Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.64.dylib\n Referenced from: /usr/local/opt/php@5.6/lib/httpd/modules/libphp5.so\n Reason: image not found
dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.64.dylib
Referenced from: /usr/local/bin/php
Reason: image not found
/usr/local/bin/sphp: line 170: 83278 Abort trap: 6 `
The text was updated successfully, but these errors were encountered: