I am trying to install Xdebug 2.2.1 on my mac. I have MAMP installed and it runs PHP 5.4.4. The problem I am having is that I cannot compile the source code. I have tried some suggestions, such as
Failing to build xdebug
but the solution it gives is not the right one, because it uses the Xcode php platform (5.3.x version) in order to build Xdebug.
I also have tried
Can't install Xdebug on php 5.4.4
but the php sdk does not let me build Xdebug, it throws some errors I cannot manage.
Does anybody succeeded in building Xdebug for PHP 5.4.4?
You might want to look into the Liip PHP package. It's pretty straightforward to install and includes the XDebug extension.
http://php-osx.liip.ch/
Related
So our friends at Homebrew have gone and changed things. They've deprecated Homebrew/PHP. That's fine, that's what we developers do. I was able to successfully install PHP 5.6 using Homebrew on a fresh installation of OS X High Sierra. I'm trying now to install memcached and mcrypt, but with the Homebrew change I understand this needs to be done through Pear/PECL. However when I trying to use PECL, I get the following error message:
$ sudo pecl install memcached
pecl/memcached requires PHP (version >= 7.0.0), installed version is 5.6.36
I'm wondering now what my options are. I need to stay with PHP 5.6 for now because that's what I need to code against until I can get our stuff up to PHP 7.x.
I'm going to go with Docker. I'm learning it now and it is a breath of fresh air. I'm certain it will work.
i'm trying to install the memcached extension in my windows localhost: wamp 64 php 5.5.12. see memcached at: https://pecl.php.net/package/memcached (notice that This extension uses libmemcached library)
unfortunately there is not a ready dll for this extension.. so i need to produce the dll myself.
i followed this guide in order to produce a working dll: https://wiki.php.net/internals/windows/stepbystepbuild
(im using Microsoft Visual Studio 2012 to compile)
i get an error when i try to configure (just before the build).
here is the print screen error that i get:
unfortunately the memcached extension is depended on 'libmemcached library' which do not officially support windows environment.
i came across this git project.
https://github.com/moteus/libmemcached-win32
im not sure what can i do with that source file and how can that help me. it seems that this git project is a libmemcached ready to work in windows (for all i know)
do this github project is a ready libmemcached library (if so where is the memcached.lib?)? or how can i produce from this page a memcached.lib file? (or anything that will help me make a working dll for the memcached extension)
would deeply appreciate any help on this.
thanks!!
There is vs2015 lib+dlls 1.0.18 available:
https://github.com/yshurik/libmemcached-win/releases/tag/1.0.18
Also vcxproj is availbale so you can compile it for other versions of msvc.
win32 branch on launchpad is extremely old and has different api from 1.0 version.
Apparently there is a libmemcached for windows. From the memcached website:
https://code.launchpad.net/~mattn/libmemcached/libmemcached-win32
I'm trying to install OAuth on WampServer x86 with php 5.4.3 and have tried adding extensions from pierre, even tried installing directly from PECL. These have all produced errors in the logs, and haven't enabled OAuth. Does anyone know which dll version I need to use?
The only dll I found to work for that version is from the windows.php.net directory: http://windows.php.net/downloads/pecl/releases/oauth/1.2.3/php_oauth-1.2.3-5.4-ts-vc9-x86.zip
Best of luck to anyone who has to deal with this on another version...
I'm trying to install the PHP intl extension on Mac 10.6 "Snow Leopard" using the following command:
sudo pecl install intl
...but getting the following errors:
running: phpize
grep: /usr/include/php/main/php.h: No such file or directory
grep: /usr/include/php/Zend/zend_modules.h: No such file or directory
grep: /usr/include/php/Zend/zend_extensions.h: No such file or directory
Configuring for:
PHP Api Version:
Zend Module Api No:
Zend Extension Api No:
Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script.
ERROR: `phpize' failed
I am using the bundles Apache server with PHP 5.3.4.
Does anyone know how to install the intl extension?
Have you thought about using MAMP instead? It generally works better than Apple's bundled packages.
I've installed Zend Server CE and everything works 100%.
I removed Zend Server CE later on, and used this instead:
http://php-osx.liip.ch/ which is specifically built for Mac OSX 10.6, and Symfony2 in mind.
This worked better for me in the end, as I'm a Netbeans user, this means I can use xdebug bundled with the liip distribution.
I found it a bit cumbersome getting xdebug installed on Zend Server CE, and also, the liip PHP installation doesn't install an additional Apache and MySQL, it uses what is already included with the OS.
Try installing autoconf
brew install autoconf
Regards
This might be an old post, but for me, I found the easiest option was to install PHP using the liip service (http://php-osx.liip.ch/). Using one simple command, it installed the latest version of PHP, configured it with the existing apache server installed on my mac all along with the intl extension. A number of hours frustration solved in a couple of minutes!
I've installed the sphinx binaries and libraries and am now trying to install the PECL sphinx module.
My system is running OS X 10.6 with MAMP 1.8.2 installed. I try to install sphinx using the following command:
sudo pecl install sphinx
The PECL command outputs the following:
running: phpize
Configuring for:
PHP Api Version: 20090626
Zend Module Api No: 20090626
Zend Extension Api No: 220090626
The versions above don't match the versions listed when doing a phpinfo(). It seems that PECL is trying to complie against the built-in version of PHP.
If I ignore the errors and continue the it will successfully compile and place the sphinx.so file in:
/usr/lib/php/extensions/no-debug-non-zts-20090626/sphinx.so
when in fact it should be:
/Applications/MAMP/bin/php5/lib/php/extensions/no-debug-non-zts-20060613/
I've tried copying the sphinx.so file to the MAMP extensions dir but when I restart apache PHP displays the following warning:
PHP Startup: Unable to load dynamic library '/Applications/MAMP/bin/php5/lib/php/extensions/no-debug-non-zts-20060613/sphinx.so
I think this is because MAMP is 32bit and the built-in PHP is 64bit so PECL complies for 64bit. I might be completely wrong but I did read this when I goggled on the topic.
Does anyone know how to get PECL to map to the MAMP version of PHP instead of the built-in version?
If the "correct" version of PHP is installed in something like /Applications/MAMP/bin/php5/, and has the development tools included, you should have some version of the pecl command to go with it, some next to that directory.
If so, running that pecl command that corresponds to your "correct" version of PHP should help : it'll run the correct version of phpize, and will allow the extension to be compiled against the (once again) correct version of PHP.
You just have to hope that MAMP includes those commands -- I cannot check, as I don't have a mac.