Install intl.so Extension on MAMP mac system [duplicate] - php

Ok, I'm running MAMP 1.9.5, which includes PHP 5.3.5, on my MacBook Pro.
The "intl" extension isn't included/activated and I've tried a lot of different ways to install it ("./pecl install intl" doesn't seem to do it), but can't make it work.
I've also "googled my ass of" but can't find any hints.
Anyone of you that know how to do it? Or, alternatively, have and advice on how to install my own MySQL+Apache+PHP (and include "intl")?
I'm trying to do this to be able to run Symfony2. So if you have any advice on how to install MySQL+Apache+PHP+Symfony2 on Mac, thats also welcome :)

The best way is to download PHP for OSX at http://php-osx.liip.ch/ and then copy the intl.so file from
/usr/local/php5-20121126-100332/lib/php/extensions/no-debug-non-zts-20100525/intl.so
to
/Applications/MAMP/bin/php/php5.4.4/lib/php/extensions/no-debug-non-zts-20100525/intl.so
Worked like a charm for me for PHP 5.4

I just compiled on mine the other day.
I wrote a self reminder post here: http://szemian.wordpress.com/2011/03/21/compiling-intl-extension-for-mamp/
Let me know if you need further explanation. :)

Related

Installing Imagemagick php extension on hosted server

hoping someone will be able to help me.
I'm trying to install ImageMagick on a (Linux) server hosted at 1&1. I've managed to install ImageMagick itself, but I can't for the life of me manage to install the PHP PECL extension, and can't figure out if it's even possible without 1&1 doing it for me.
What do I need to have access to to be able to install the PECL plugin? Do I need access to the PHP installation itself? Do I need them to activate the extension for me? I was on the phone with them now, and they didn't seem very willing, but at the same time I'm pretty sure the guy I spoke with didn't really have a clue what this was about anyways.
Would be extremely thankful for tips!

Unable to install imagick

I found tons of instructions, how to install Imagick on windows. Here is a very good and detaild explanation.
I am following the instructions. So, first, download the latest DLL from PECL. Copy the php_imagick.dll to the extension dir, copy the _CORE* libraries to PHP root directory, and it shows me the following version: ImageMagick 6.9.1-2 Q16 x64 2015-04-14
Wow, great, now I have nothing to do just install this exe.
Oh, wait...
There are no installer like this. And the problems starts here. Of course, I've tried to download and install the latest installer, installed it, set the environment variables, but it always says something about entry points.
I don't know why Imagick guys removes the releases from their ftp, I think this is a very bad behaviour. Can not access from archive too.
So I am unable to installing the Imagick.
Can anybody help me with this version of installer, or give me a step-by-step instruction, how to install this Imagick for Windows 10, 64bit for Apache 2.4.2 64bit, and PHP 5.6.5 64bit?
I tried the 32bit version, but with that, the phpinfo() does not show me anything.
EDIT: There is an alternative download location here.
I started a thread on the Imagick forum, and now I don't know, should I cry or should I laugh...
The answer for my question was this:
Hmm... it seems we don't build our libraries with 'deprecated' methods. I will see if we can change this before the next release so DrawAllocateWand will not suddenly be gone.
I tell to the guy, ok, it's a cool thing, but I've just reinstall my machine from the scratch, so, I got this error:
Procedure entry point (DrawAllocateWand) not found in DLL
or something similar, I translated it.
So, please tell me, where can I download the ImageMagick 6.9.1-2 Q16 x64 2015-04-14 binaries, because it seems, that php_imagick.dll need this, and I should work...
The answer was:
We don't keep an archive of old binary version of ImageMagick. You could however decide to build IM from source.
CONCLUSION
If you ever had a working installer for windows for Apache, PHP, Imagick, you should always keep these in the cloud for yourself. MHO: I really hate these things. I know, most of us is working on linux boxes, but our company policy is to use OS what admin says. So I need to use windows. Now I should suck for a while, to download and install a cygwin with compilers, compile the Imagick somehow, and set all the environments variables, because some developers do not use a version controller, or maybe the sotrage is too expensive for them to store old binaries... I can not imagene these options.
ImageMagick is available here:
http://windows.php.net/downloads/pecl/deps/
Imagick, that has been compiled against that version of ImageMagick is available here
http://windows.php.net/downloads/pecl/releases/imagick/3.4.0rc5/
Downloading random versions of libraries from other places is not guaranteed to work.

Install/activate PHP "intl" extension running MAMP

Ok, I'm running MAMP 1.9.5, which includes PHP 5.3.5, on my MacBook Pro.
The "intl" extension isn't included/activated and I've tried a lot of different ways to install it ("./pecl install intl" doesn't seem to do it), but can't make it work.
I've also "googled my ass of" but can't find any hints.
Anyone of you that know how to do it? Or, alternatively, have and advice on how to install my own MySQL+Apache+PHP (and include "intl")?
I'm trying to do this to be able to run Symfony2. So if you have any advice on how to install MySQL+Apache+PHP+Symfony2 on Mac, thats also welcome :)
The best way is to download PHP for OSX at http://php-osx.liip.ch/ and then copy the intl.so file from
/usr/local/php5-20121126-100332/lib/php/extensions/no-debug-non-zts-20100525/intl.so
to
/Applications/MAMP/bin/php/php5.4.4/lib/php/extensions/no-debug-non-zts-20100525/intl.so
Worked like a charm for me for PHP 5.4
I just compiled on mine the other day.
I wrote a self reminder post here: http://szemian.wordpress.com/2011/03/21/compiling-intl-extension-for-mamp/
Let me know if you need further explanation. :)

zipArchive with MAMP?

trying to work out how to install zipArchive extension with MAMP, but not having much luck
any know how to do this? I have no idea
Answering my own question for completeness.
JUST UPGRADE MAMP!!!
Sorry for shouting ;)
First three Google results indicate that MAMP comes compiled without ZIP extension:
http://forum.mamp.info/viewtopic.php?f=2&t=8287
http://symphony-cms.com/discuss/thread/512/
http://forum.mamp.info/viewtopic.php?f=2&t=9300 - MAMP Zip Extension Install Guide
Mamp is a product that wraps PHP / MySQL etc within one easy package for the mac, and has nothing to do with the extension
the extension runs within PHP, so your questions should be how should i use the zipArchive with PHP
the answer to that questions is read the documentation:
http://php.net/manual/en/class.ziparchive.php
To install an extension is very straight forward, just drop the extension within the extensions folder and then restart PHP.

I already have PHP installed, what's the easiest (best) way to get GDLib installed?

I'm running a Mac Mini with Apache/PHP5/MySQL as my staging server.
I'm building and using software that requires GDLib for manipulating graphics.
How can I install this on my machine?
Im not much of a CI guru but Im not scared of it. I just have no clue how to troubleshoot errors or problems when ./configure says file not installed at the end or something.
Any help on this would be fantastic!
Thanks
Rich
Install MAMP, you can set it to run on port :80 and you can still edit your config so www.example.site works just fine. I also have mine set so all of the files are still kept inside the /Sites/ folder.
Fixing the Apache/MySQL/PHP setup that comes bundles with OS X is very painful for non sysadmins, esp if you just want to get on with building sites.
If you can upgrade to Snow Leopard it's included out of the box. Otherwise, the instructions here should help.
Normally gd is included by default. Check phpinfo(), if there is any gd mentioned then it is installed.

Categories