I'm not very good when it comes to managing libraries on mac os x. I'm running php56-fpm on mac and getting the following errors:
dyld: Library not loaded: /usr/local/lib/libpng16.16.dylib
Referenced from: /usr/local/Cellar/php56/5.6.9/sbin/php-fpm
Reason: Incompatible library version: php-fpm requires version 34.0.0 or later, but libpng16.16.dylib provides version 29.0.0
/usr/local/opt/php56/sbin/php56-fpm: line 53: 38984 Trace/BPT trap: 5 $php_fpm_BIN --daemonize $php_opts
failed
Obviously I have an old library of libpng installed. Normally I'd remove it, find an updated version of the library and install. Unfortunately, I do not know how to do this on mac. I've tried uninstall and reinstalling with brew, but I keep grabbing the outdated libpng. How can I get the new updated version?
Related
I need to run a php application that was built on php 7.3. Now that php 7.3 is no longer supported, I was unable to install using homebrew without including the --build-from-source option. I went ahead and attempted to build php 7.3 from source While trying to install and I encountered an error that terminated the build process:
Generating phar.phar
PEAR package PHP_Archive not installed: generated phar will require PHP's phar extension be enabled.
make: *** [ext/phar/phar.phar] Bus error: 10
make: *** Waiting for unfinished jobs....
I've researched the error and found that this may have to do with the fact that I am installing on a Mac with an Apple M1 chip. I'd like to uninstall it now, upgrade the application to a supported version of php, and then run it. I tried running brew uninstall php and then install home-brew's default php, but the binary that was created by the first attempt is taking precedence over the latter php 8.0 version I installed.
My question is, is deleting the binaries located at /usr/bin/ enough to completely remove the unsupported version of php from my system? I searched the tar for an uninstall target but no luck.
I just want to clean it out of my system and start over. I don't imagine that there is a php 7.3 version that works with my Apple M1 chip.
Thanks much
I am trying to install Craft CMS using composer (composer create-project craftcms/craft) but I am getting an error that says:
dyld: Library not loaded: /usr/local/opt/c-ares/lib/libcares.2.dylib
Referenced from: /usr/local/opt/php#7.1/bin/php Reason: Incompatible
library version: php requires version 6.0.0 or later, but
libcares.2.dylib provides version 2.0.0 Abort trap: 6
I am using AMPPS if that helps, and I use PHP version 7.1, although it's saying it's providing version 2. I am also on macOS Sierra 10.12.6.
I believe this started happening after I downloaded httrack using brew. I have tried uninstalling httrack using brew but no luck.
Give brew upgrade c-ares a try.
I´m installed Xampp in my Mac, the last version with Php7, all works fine, but in my Php proyect I´m using this function:
numfmt_format_currency()
I need install the intl, and edit the php.ini with this line:
extension="intl.so”
The problem is, I can´t install the intl, I use this command:
sudo pecl install intl
But returns me this console error:
/private/tmp/pear/temp/intl/intl_error.h:24:10: fatal error: 'ext/standard/php_smart_str.h' file not found
#include <ext/standard/php_smart_str.h>
^
1 error generated.
make: *** [php_intl.lo] Error 1
ERROR: `make' failed
After, I try download the ntl-3.0.0.tgz from here, and Install whith this command:
sudo pear install intl-3.0.0.tgz
But return me this:
No releases available for package "pear.php.net/intl" - package pecl/intl can be installed with "pecl install intl"
install failed
I'm desperate, how can I install intl?
You can use a PHP package from https://php-osx.liip.ch/. It already includes the intl extension.
This package installs the (usually) latest PHP 7.2/7.1/7.0/5.6/5.5/5.4/5.3 on OS X 10.6 (aka Snow Leopard), OS X 10.7 (aka Lion) and OS X 10.8 (aka Mountain Lion) and OS X 10.9 (aka Mavericks) and OS X 10.10 (aka Yosemite) and OS X 10.11 (aka El Capitan) and macOS 10.12 (aka Sierra) and macOS 10.13 (aka High Sierra) in /usr/local/php5. It installs many useful extensions (see below) and ini-settings and is what we at Liip use for our development. It's especially suited for Symfony 2 development. It also provides a decent php.ini with all settings configured according to "Best Practices".
Installation of PHP 7.2 is done via curl -s https://php-osx.liip.ch/install.sh | bash -s 7.2.
For more information have a look at the site and FAQ section.
I get the following error when I run MNPP, which is a like XAMPP/MAMP but with Nginx instead of Apache.
$ sudo mnpp --php53 --start
-n Starting php-fpm
dyld: Library not loaded: /opt/X11/lib/libfreetype.6.dylib
Referenced from: /usr/X11/lib/libfontconfig.1.dylib
Reason: Incompatible library version: libfontconfig.1.dylib requires version 17.0.0 or later, but libfreetype.6.dylib provides version 14.0.0
/Applications/MNPP/init/php.sh: line 95: 44087 Trace/BPT trap: 5 $php_fpm_BIN $php_opts
failed
Judging from all the SO threads on this topic, I'm pretty sure this is a X11/XQuartz Mac OSX Mavericks issue as it this command works on my previous Mac with 10.7.5.
How do I upgrade my version of libfreetype.6.dylib?
You likely have the DYLD_LIBRARY_PATH environment variable set. Don't do that.
I'm trying to get the ZendDebugger.so extension loaded in my custom (homebrew) PHP 5.3.19 install on OS X Mountain Lion, and all I get is:
Failed loading /path/to/php/extensions/ZendDebugger.so: dlopen(/path/to/php/extensions/ZendDebugger.so, 9): Symbol not found: _executor_globals
Referenced from: /path/to/php/extensions/ZendDebugger.so
Expected in: flat namespace
That's what I get from php -m, php -v and the error_log.
It's not an architecture error, as I'm using 64 bit (and tried 32 on a lark) and I can't find anyone with this issue online. Is it just the PHP version? Some compilation flag missing? I can't figure it out.
Edit: ZendDebugger.so downloaded from: http://www.zend.com/en/products/studio/downloads and using the 5.3.x version.