-
Notifications
You must be signed in to change notification settings - Fork 1
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
[Bug]: How can I enabled the default xsl extension. #145
Comments
Herd only includes the extensions that are listed at the FAQs at https://herd.laravel.com/ at the moment but you can install others with the process described in the docs: https://herd.laravel.com/docs/1/advanced-usage/additional-extensions |
@sschlein xsl can't be install via pecl
|
@sschlein any ideas to install it other than pecl ? |
There are various extensions that can't be installed with PECL. Any other solution? Thanks! |
@ElRochito @zupolgec Found any solutions? I'm also finding how to install xsl extension |
Nope. Only solution at the moment is to go back to Homebrew PHP |
@zupolgec I downloaded extension manually from here - https://packages.macports.org/php81-xsl/ and then found .so file in it, added into php.ini and it fixed the issue for me |
I found this thread some time earlier. New computer, same problem :-) I downloaded the corresponding xsl.so file and saved it in: /Users/myusername/Library/Application Support/Herd/config/php/81 Then added the following line to the PHP file in the same directory: extension=/Users/myusername/Library/Application Support/Herd/config/php/81/xsl.so After running php -v, I had to authorize the xsl.so file in OSX system settings, like any other unverified application. Hopefully I won't need to find this thread again, but the above might help someone else. |
Well, I tried to do the same but I'm getting this error after loading the xsl.so: Warning: PHP Startup: Unable to load dynamic library '/Users/username/.extensions/php/83/xsl.so' (tried: /Users/username/.extensions/php/83/xsl.so (dlopen(/Users/username/.extensions/php/83/xsl.so, 0x0009): Library not loaded: /opt/local/lib/libexslt.0.dylib Any ideas what that could be? Already installed |
Ok, I fixed it (for me at least). This solved it for me: brew install libxml2 libxslt
sudo mkdir -p /opt/local/lib
sudo ln -s /opt/homebrew/opt/libxslt/lib/libexslt.0.dylib /opt/local/lib/
sudo ln -s /opt/homebrew/opt/libxslt/lib/libxslt.1.dylib /opt/local/lib/
sudo ln -s /opt/homebrew/opt/libxml2/lib/libxml2.2.dylib /opt/local/lib/ |
@marlonbasten Nice, this looks like a much nicer solution than mine :-) I'll give it a try! |
Operating system version
macOs Ventura 13.5
System architecture
ARM64 (M1, M2, etc)
Herd Version
1.2.0
PHP Version
PHP 8.2
Bug description
How can I enable the PHP-XSL extension. PHP includes the XSL extension by default, but I do not how to enable it.
Steps to reproduce
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: