PHP Cannot Open Shared File
Following an upgrade to Manjaro, there was an issue I had with PHP.
Basically, running PHP resulted in the following error:
php: error while loading shared libraries: libicui18n.so.65: cannot open shared object file: No such file or directory
.
The system I run on also uses phpenv
so that I can specify a version of PHP to use for development, and after a bit of digging, came to the conclusion that the version of php
that I had initially installed was no longer compatible with shared objects that were installed on my machine.
Simply using the following to recompile PHP did the trick:
phpenv install 7.3.13
Coincidentally, while doing the digging, I found a command in Manjaro that allows you to roll back an application to an earlier version. While this wasn’t the solution in this case, and that one should be very careful when using it, the option downgrade php
did offer the potentially useful option of re-installing a previous iteration.