Michael Gracie

Technology, Finance, the Outdoors, and vain attempts to merge the three

  • Home
  • Blog
  • About
  • Contact
  • Media

Plugging mcrypt into PHP, on Mac OS X Lion 10.7

July 21, 2011 140 Comments

Perfected for the winter cat, now on to the king of the jungle. Once again, thanks goes out to a previous commenter, this time it’s rachanta, for the first test. Now let’s get moving…

The following instructions cater to those who a) are developing on OS X Lion 10.7.X, b) need the capabilities provided by mcrypt during their PHP development, and c) do not want to completely recompile PHP to get there. You’ll get mcrypt loading dynamically for use in PHP with this method.

First, you are going to need a few things…

1) libmcrypt-2.5.8, which you can pick up here; NOTE: make sure to get libmcrypt and not mcrypt.

2) PHP 5.3.6 source, which you grab here; ADDITIONAL NOTE: You may update your OS X at some point, and PHP may get updated along with it. Use phpinfo() to check your version of PHP, and then download the PHP source for that version.

and

3) Xcode 4.1 tools, which you can pick up in the App Store.

Next, create a directory at root called ‘SourceCache’ and dump the files from #1 and #2 in there and unwrap.

Move to the libmcrypt-2.5.8 directory, and punch in this…

MACOSX_DEPLOYMENT_TARGET=10.7 CFLAGS='-O3 -fno-common -arch i386 -arch x86_64' LDFLAGS='-O3 -arch i386 -arch x86_64' CXXFLAGS='-O3 -fno-common -arch i386 -arch x86_64' ./configure --disable-dependency-tracking

and then…

make -j6

and finally…

sudo make install

libmcrypt is ready – now for the PHP extension…

Move back to /SourceCache, then down to php-5.3.6/ext/mcrypt – type…

/usr/bin/phpize (phpize should be in /usr/bin – if not go find it and change the command as appropriate)

Then configure as follows…

MACOSX_DEPLOYMENT_TARGET=10.7 CFLAGS='-O3 -fno-common -arch i386 -arch x86_64' LDFLAGS='-O3 -arch i386 -arch x86_64' CXXFLAGS='-O3 -fno-common -arch i386 -arch x86_64' ./configure --with-php-config=/Developer/SDKs/MacOSX10.7.sdk/usr/bin/php-config

Again: make -j6 then sudo make install

Make sure you have php.ini in the /etc directory – it will probably be php.ini.default to start, particularly if you’ve just done an OS X upgrade or a clean Lion install, so rename it. Ensure that enable_dl = On but do not remove the ; from in front of ;extension_dir = "./". Add one line to the .ini file in the Dynamic Extensions section… extension=mcrypt.so

Restart Apache – you should be all set (again), according to phpinfo():

PHP OS X Lion

mcrypt PHP OS X Lion

MG signing off (now that we have mcrypt running in PHP once again)

Related posts

  • Plugging mcrypt into PHP, on Mac OS X El Capitan 10.11
  • Plugging mcrypt into PHP, on Mac OS X Snow Leopard 10.6.1
  • Plugging mcrypt into PHP, on Mac OS X Mavericks 10.9

Pass it on:

  • Click to share on Google+ (Opens in new window)
  • Click to share on Facebook (Opens in new window)
  • Click to share on Twitter (Opens in new window)
  • Click to share on LinkedIn (Opens in new window)
  • Click to share on Reddit (Opens in new window)
  • Click to email this to a friend (Opens in new window)
  • Click to print (Opens in new window)

Filed Under: Office Tagged With: mcrypt, OS X, PHP, tutorials

« Youthful disrespect
Quentin Tarantino was not available for comment »

Comments

  1. Giles Smith says

    July 22, 2011 at 4:41 am

    Just upgraded to Lion and my dev environment got smashed to pieces! Worked perfectly for me, after spending far too long working out that installing Xcode through the App Store doesn’t actually install Xcode. You have to run ‘Install Xcode’ that appears in you Applications after the App Store has finished.

    Reply
    • doapydave says

      February 3, 2012 at 6:41 am

      That did it for me thanks!

      Reply
  2. David Chouinard says

    July 24, 2011 at 5:20 pm

    Thanks! Helped a lot.

    I’d add to this list upgrading to Xcode 4.1 before any step. Took me a while to realize my old install of Xcode 4.0 on Lion was causing the make command to fail.

    Reply
  3. Zach Bailey says

    July 24, 2011 at 10:37 pm

    Thanks, worked like a charm!

    Reply
  4. Bart Popenoe says

    July 24, 2011 at 11:30 pm

    Mcrypt was the final piece in the puzzle of upgrading my dev environment to Lion. (cross fingers) Thanks for working through this and getting a solution posted so quickly.

    Reply
  5. Sam Parmenter says

    July 25, 2011 at 12:29 pm

    Cheers buddy, nice guide and easy to follow. As others have said; final piece of the puzzle since a clean install of lion!

    Reply
  6. Bill Heaton says

    July 25, 2011 at 3:36 pm

    Yep, this is the recipe I needed to get mcrypt back in action. Thanks for posting !

    Reply
  7. slypix says

    July 26, 2011 at 8:15 am

    I ran every step, it looked like it installed the extension, added it to my php.ini, but still doesn’t load, I did it on a fresh install of lion, is there anyway to debug or pinpoint the problem?

    thanks.

    Reply
    • Michael Gracie says

      July 26, 2011 at 8:30 am

      I’d start by checking every step, one after the other. Often people miss something simple, like enabling dynamic loading in php.ini.

      Or they started with the wrong version of Xcode and/or typed a command wrong, assuming everything went accordingly because they saw a bunch of text fly by while in Terminal. Are the libraries compiling correctly? Is mcrypt.so in /usr/lib/php/extensions/no-debug-non-zts-20090626/ ?

      Reply
      • slypix says

        July 26, 2011 at 8:56 am

        first off, thanks for the tutorial and quick reply.

        I agree I don’t understand all the text flying by, after the compile command, make, and make install…. I did start with xcode 4.1 just downloaded yesterday, I copy and pasted the long commands. enabled dynamic loading in php.ini (enable_dl = On) and added (extension=mcrypt.so) to the dynamic library section.

        I also checked if (mcrypt.so) was in “/usr/lib/php/extensions/no-debug-non-zts-20090626/”, indeed it is.

        restarted mysql and apache… and still not loading. I’m clueless. Is there an error log I can look at to help pinpoint the trouble?

        thanks again.

        Reply
        • Michael Gracie says

          July 26, 2011 at 10:14 am

          Error log should be in /private/var/log/apache2/

          You are checking functionality using phpinfo()?

          Also note: MySQL has nothing to do with this.

          Reply
          • slypix says

            July 26, 2011 at 11:19 am

            I was hoping to see mentions of mcrypt in the error_log, but no mention of it.

            ya phpinfo() doesn’t list mcrypt, the reason I restarted MySQL, is because I’m trying to get phpMyAdmin to work, and it requires the mcrypt extension.

          • slypix says

            July 27, 2011 at 5:25 pm

            I decided to start from scratch, re-formated, did a clean install of lion, enabled PHP, installed mcrypt using your instructions and worked flawlessly, I then ran migration assistant, and restored all my data and apps using time machine.

            it took a total of 4 hours, but totally worth it, because I’m sure I would have wasted countless hours over many night, trying to find the problem.

            thanks for the tutorial.

  8. Michael Gracie says

    July 26, 2011 at 11:51 am

    @slypix – Best I can suggest is to 1) forget about phpMyAdmin/MySQL for now (again, it has nothing to do with this), then 2) delete the source files and start over.

    I’m not suggesting anything you are doing on the side is causing the problem, but unfortunately there is no other way to troubleshoot from afar since the process outlined above is proven if followed to the “T”.

    Reply
  9. ralen76 says

    July 27, 2011 at 5:51 am

    Hello MG, I`m trying to follow your instructions but I`m getting an error at this point:

    Then configure as follows…

    MACOSX_DEPLOYMENT_TARGET=10.7 CFLAGS=’-O3 -fno-common -arch i386 -arch x86_64′ LDFLAGS=’-O3 -arch i386 -arch x86_64′ CXXFLAGS=’-O3 -fno-common -arch i386 -arch x86_64′ ./configure –with-php-config=/Developer/SDKs/MacOSX10.7.sdk/usr/bin/php-config

    The exact error I’m receiving is:


    checking for grep that handles long lines and -e… /usr/bin/grep
    checking for egrep… /usr/bin/grep -E
    checking for a sed that does not truncate output… /usr/bin/sed
    checking for cc… cc
    checking for C compiler default output file name… a.out
    checking whether the C compiler works… yes
    checking whether we are cross compiling… no
    checking for suffix of executables…
    checking for suffix of object files… o
    checking whether we are using the GNU C compiler… yes
    checking whether cc accepts -g… yes
    checking for cc option to accept ISO C89… none needed
    checking how to run the C preprocessor… cc -E
    checking for icc… no
    checking for suncc… no
    checking whether cc understands -c and -o together… yes
    checking for system library directory… lib
    checking if compiler supports -R… no
    checking if compiler supports -Wl,-rpath,… yes
    checking build system type… i386-apple-darwin11.0.0
    checking host system type… i386-apple-darwin11.0.0
    checking target system type… i386-apple-darwin11.0.0
    checking for PHP prefix… /usr
    checking for PHP includes… -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib
    checking for PHP extension directory… /usr/lib/php/extensions/no-debug-non-zts-20090626
    checking for PHP installed headers prefix… /usr/include/php
    checking if debug is enabled… no
    checking if zts is enabled… no
    checking for re2c… no
    configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
    checking for gawk… no
    checking for nawk… no
    checking for awk… awk
    checking if awk is broken… no
    checking for mcrypt support… yes, shared
    checking for libmcrypt version… >= 2.5.6
    checking for mcrypt_module_open in -lmcrypt… no
    checking for mcrypt_module_open in -lmcrypt… no
    configure: error: Sorry, I was not able to diagnose which libmcrypt version you have installed.

    I`ve recently update my os from Snow Leopard (with all this stuff working properly) to Lion.
    Can you please tell me what I’m doing wrong

    Thanks beforehand.

    Reply
    • Michael Gracie says

      July 27, 2011 at 8:05 am

      Did you recompile mcrypt.so before the above?

      Reply
      • ralen76 says

        July 27, 2011 at 8:26 am

        No, I don´t think so. Is there a way to check it?
        I suppose that I just activated PHP version that came with Snow Leopard …
        I have MySql running OK but not the same with phpMyadmin (which shows me the mcrypt load error). And of course, mcrypt section doesn´t appear into the phpinfo() list.

        Reply
      • ralen76 says

        July 27, 2011 at 8:29 am

        I´m sorry, I misunderstood your replay. I mean, I follow your guide from the top, but receive the error at the mentioned point.

        Reply
        • Michael Gracie says

          July 27, 2011 at 2:07 pm

          Similar issue here: https://bugs.php.net/bug.php?id=20926

          Looks like that issue was subsequently fixed, but may lead you in the right direction. Unfortunately I can’t debug because I have no way to replicate the error. The link above suggests libtool was the culprit, which says to me that something isn’t right with your XCode install.

          Reply
          • ralen76 says

            July 28, 2011 at 5:01 am

            Thank you Michael, I´ve tried to solve installing libtool and repeating your lines, but unfortunately this has not fixed the issue, same error at the same point. The good new is that I´m sucessfully working with Zend Server CE; at the moment the best solution for me.
            I´m sure I´m coming back here soon with a fresh clean installation of Lion, maybe in a few weeks.

            Thanks for everything, mate.

    • yellow shark says

      August 22, 2011 at 11:55 am

      Check why configure fails:
      /usr/local/lib/libmcrypt.dylib is a i386 only library in my case.

      Start fresh & clean – and do only the 64bit version-
      For libmcrypt:
      make clean
      then configure again
      MACOSX_DEPLOYMENT_TARGET=10.7 CFLAGS='-O3 -fno-common -arch x86_64' LDFLAGS='-O3 -arch x86_64' CXXFLAGS='-O3 -fno-common -arch x86_64' ./configure --disable-dependency-tracking
      then make -j6; sudo make install; make check

      Now we have a 64bit version of dylib – and that’s expected in the next step for php.
      Go back to php-5.3.6/ext/mcrypt and continue with phpize…

      Reply
  10. Jonathan Stegall says

    July 29, 2011 at 10:32 pm

    Hello,

    I’ve got an odd situation in which I’ve followed these instructions on two different Macs after upgrading from Snow Leopard to Lion. Everything worked perfectly the first time, on the first Mac, and it did seem to work on the second, but the second does not have mcrypt installed after restarting Apache.

    I see in one of the comments above that you ask if mcrypt.so is in “/usr/lib/php/extensions/no-debug-non-zts-20090626/” – for me, it’s not. I tried redownloading the code for libmcrypt, and recompiling it, but this didn’t seem to change anything.

    Any steps I can take to get mcrypt into the right place?

    Thanks!

    Reply
    • Michael Gracie says

      July 30, 2011 at 8:38 am

      “I tried redownloading the code for libmcrypt, and recompiling it, but this didn’t seem to change anything.”

      mcrypt.so is the dynamic module created during the second wave of compilation. You have to complete all of the steps from start to finish – can’t start or end midstream with any expectation of success.

      When in doubt, delete source and start from scratch – that has solved the majority of problems with this procedure since the Leopard days.

      Reply
      • Jonathan Stegall says

        July 30, 2011 at 2:58 pm

        Thanks so much for the response. I did delete the source from my source folder before thinking something was wrong. Do I need to delete it from somewhere else, as well?

        Reply
        • Michael Gracie says

          August 4, 2011 at 8:36 am

          Nope. It’s just that sometimes people surmise their problem is with one piece of the puzzle, whereas when I recommend restarting I really mean back to the very beginning.

          Reply
  11. Richard Warner says

    August 1, 2011 at 7:21 am

    Move back to /SourceCache, then down to php-5.3.6/ext/mcrypt – type…
    /usr/bin/phpize (phpize should be in /usr/bin – if not go find it and change the command as appropriate)

    OK I’m lost at this bit where exactly am i running the command from. When in php-5.3.6/ext/mcrypt if I type /usr/bin/phpize i get a file not found message but I would assume that if running inside phpphp-5.3.6/ext/mcrypt.

    and in what directory do i run the second MACOSX_DEPLOYMENT_TARGET=10.7 command in the php-5.3.6 or the phpphp-5.3.6/ext/mcrypt as it fails with a configure not found.

    Reply
    • Michael Gracie says

      August 1, 2011 at 7:30 am

      You are running the command “/usr/bin/phpize” from the directory suggested, php-5.3.6/ext/mcrypt. If phpize is not in /usr/bin then you need to find out where it is and modify the command.

      The second compilation won’t work until you do the above correctly.

      Reply
      • Richard Warner says

        August 3, 2011 at 7:58 am

        Hi,

        Working great now thanks very much. Did a restart and tried the second part again and worked a treat this time.

        Reply
        • Michael Gracie says

          August 4, 2011 at 8:31 am

          Glad you got it straight.

          Like I’ve said before, starting over from scratch is often the winner here.

          Reply
  12. kOoLiNuS says

    August 1, 2011 at 10:30 am

    thank you man! worked like a charm!!!

    Reply
  13. sakiv says

    August 3, 2011 at 6:20 am

    Thanks….worked like a charm…:)

    Reply
  14. Daniel Campo says

    August 4, 2011 at 10:04 pm

    Thanks for this, Michael. Much appreciated!

    Reply
  15. Bruno21 says

    August 6, 2011 at 1:05 am

    Thanks for this, but also have the configure: error: Sorry, I was not able to diagnose which libmcrypt version you have installed. issue

    Made this change after looking 10.5 and 10.6 libmcrypt .configure (see -bindatload):
    MACOSX_DEPLOYMENT_TARGET=10.7 CFLAGS='-O3 -fno-common -arch i386 -arch x86_64' LDFLAGS='-O3 -arch i386 -arch x86_64 -bindatload' CXXFLAGS='-O3 -fno-common -arch i386 -arch x86_64' ./configure --disable-dependency-tracking

    WARNING !!!:
    I have no idea of what -bindatload means, but it compile fine, the PHP extension too and phpinfo() said mcrypt is enabled.

    hth

    Reply
  16. claudio says

    August 19, 2011 at 7:14 pm

    It works for me!
    Thank you very much!

    Reply
  17. Dave says

    August 24, 2011 at 3:11 pm

    Simplest, cleanest install/upgrade instructions I’ve tried for a long time! 😉

    Flawless!

    Thanks

    Reply
  18. Ben says

    August 25, 2011 at 1:34 am

    Thanks, this was very helpful!

    If someone has time, could they explain the MACOSX_DEPLOYMENT … lines in a bit more detail?

    Reply
  19. Peer says

    August 25, 2011 at 6:09 pm

    Great, thanks for this. It was something that was bugging me for quite some time in phpMyAdmin

    Reply
  20. appsfinder says

    August 26, 2011 at 1:13 am

    got this working on lion did not need to reinstall lion
    by adding to php.ini

    ; Extensions
    extension=mcrypt.so

    ;;;;;;;;;;;;;;;;;;;
    ; Module Settings ;
    ;;;;;;;;;;;;;;;;;;;

    Reply
  21. David says

    August 26, 2011 at 5:54 am

    Are any of you running Lion server who have done this install? I am and my php.ini file is in /private/etc/ and my httpd.conf is in /private/etc/apache2. It looks like either Lion server created this new directory or Lion did when I upgraded from Snow Leopard. How/if would this impact the procedure you outline above? I also need to get the mcrypt library installed to run my development web site.

    Thanks!

    Reply
  22. David says

    August 26, 2011 at 6:57 am

    Nevermind! Got it working. Manu, many thanks for this post which solved the issue I was having.

    Reply
    • George Rudd says

      August 30, 2011 at 11:12 pm

      Do I need to modify any of these instructions to get this working on Lion Server? I am not having any luck.

      Reply
      • Michael Gracie says

        September 1, 2011 at 11:09 pm

        Don’t have a Lion Server based machine to test. Might be helpful to post some details of your problem – likely someone will stop by knowing the answer.

        Reply
  23. David says

    August 26, 2011 at 7:34 am

    Awesome, thanks for writing this up – that saved me a lot of time getting my dev env to work with mcrypt!

    Reply
  24. Ablitica says

    September 5, 2011 at 11:13 am

    Excellent instructions – thank you very much Michael!

    Reply
  25. John Brassard says

    September 7, 2011 at 12:36 pm

    Excellent job, Michael. Thank you for the valuable and helpful information!

    Reply
  26. JC Latron says

    September 12, 2011 at 1:38 pm

    Excellent. Many thanks for this very useful page!

    Reply
  27. Peter says

    September 14, 2011 at 7:26 am

    I can’t find a directory called php-5.3.6 on my Mac even though when I run phpinfo.php I get all of the information showing that php-5.3.6 is loaded. Where would it be?

    Should I just go to the PHP website and download php-5.3.8?

    Thanks,

    Peter

    Reply
    • Michael Gracie says

      September 14, 2011 at 7:33 am

      The instructions point to the source for 5.3.6 – and they don’t ask you to go find said directory on your Mac. Follow the instructions exactly as prescribed above.

      Reply
  28. Francois Brochu says

    September 20, 2011 at 1:50 pm

    Thanks
    Great tutorial

    Reply
  29. Giovanni says

    September 29, 2011 at 5:19 am

    I copied php.ini.default to php.ini
    now php not working…
    any help?

    Reply
  30. Rubén T.F. says

    October 6, 2011 at 3:10 pm

    This works flawlessly on Mac OS 10.7.1. Thanks a lot.

    Reply
  31. Stefano says

    October 15, 2011 at 11:33 pm

    Thank you very much, it works fine on my OS X 10.7.2

    Reply
  32. Daniel Sevigny says

    October 17, 2011 at 10:12 am

    Thanks for posting this. Saved me having to run multiple processes. No MAMP required.

    Reply
  33. jason says

    October 20, 2011 at 6:46 pm

    i know these comments are pointless, but i just wanted to say thanks (again!). you have saved people countless hours.

    Reply
    • Michael Gracie says

      October 21, 2011 at 3:35 am

      Which is precisely why the comments aren’t pointless! I appreciate the kudos, but am even more pleased by the way people have helped each other with this issue above and beyond my little “assembly.”

      Cheers, MG.

      Reply
  34. abu jenang says

    October 23, 2011 at 5:19 am

    Hi,
    It has been 8 months I migrated to Mac OSX environment. This post really helps me figuring out development environment in OSX.

    Thanks.

    Reply
  35. Luca Marino says

    October 28, 2011 at 7:03 am

    Hi, Thanks for this great tutorial.
    I still have a problem with mcrypt module. I had followed all the istruction but no chanches to see mcrypt in my phpinfo.

    Any suggestion?

    Reply
    • Michael Gracie says

      October 28, 2011 at 7:43 am

      Clean everything away and start over.

      Reply
  36. seb says

    October 28, 2011 at 7:33 am

    Thanks a lot, works like a charm!

    Reply
  37. Michael says

    October 28, 2011 at 2:50 pm

    thanks, helped well

    Reply
  38. Charles McPhate says

    October 30, 2011 at 11:17 pm

    Excellent! Combined with the instructions that linked to this page (http://akrabat.com/php/setting-up-php-mysql-on-os-x-10-7-lion/), getting everything up and running again after a clean install was effortless. Many thanks!

    Reply
  39. Jerry says

    November 1, 2011 at 2:19 pm

    Many thanks for posting these instructions, but to be honest I don’t understand what I am doing! I want to experiment with another program that requires mysql and mcrypt, and I am using a Mac Mini with Lion Server.

    I intalled xcode 4.1, and downloaded php & libmrcypt. Moved the last two to a new folder and ran the long bit of code. I get the following message, which I assume I should not get…..

    libmcrypt jerryhart$ MACOSX_DEPLOYMENT_TARGET=10.7 CFLAGS=’-O3 -fno-common -arch i386 -arch x86_64′ LDFLAGS=’-O3 -arch i386 -arch x86_64′ CXXFLAGS=’-O3 -fno-common -arch i386 -arch x86_64′ ./configure –disable-dependency-tracking
    checking build system type… i686-apple-darwin11.2.0
    checking host system type… i686-apple-darwin11.2.0
    checking target system type… i686-apple-darwin11.2.0
    checking for a BSD-compatible install… /usr/bin/install -c
    checking whether build environment is sane… yes
    checking for gawk… no
    checking for mawk… no
    checking for nawk… no
    checking for awk… awk
    checking whether make sets $(MAKE)… no
    checking whether to enable maintainer-specific portions of Makefiles… no
    checking whether make sets $(MAKE)… (cached) no
    checking for g++… no
    checking for c++… no
    checking for gpp… no
    checking for aCC… no
    checking for CC… no
    checking for cxx… no
    checking for cc++… no
    checking for cl… no
    checking for FCC… no
    checking for KCC… no
    checking for RCC… no
    checking for xlC_r… no
    checking for xlC… no
    checking for C++ compiler default output file name… configure: error: C++ compiler cannot create executables
    See `config.log’ for more details.

    Any suggestions what I have done wrong? Any help for a non-programmer would be most appreciated! Thanks indvance

    Jerry

    Reply
    • Mike R. says

      November 13, 2011 at 6:39 pm

      Jerry, after downloading Xcode from the Apple App Store, did you install it? I received the same error as you, and realized after grabbing from the App Store, I didn’t run the install. (I noticed I had no C compiler installed–which is what this message means.)

      Just go up to your Spotlight, type “Install Xcode” and hit enter.

      Hope this helps! –mr

      Reply
      • Alex says

        January 3, 2013 at 11:06 am

        I had to:
        Start Xcode-> Menu-> Preferences…-> Downloads tab-> Click ‘Install’ next to ‘Commandline tools’.

        Cheers,
        Alex

        Reply
  40. Lefty says

    November 8, 2011 at 9:19 pm

    Everything works fine until I run phpize. Then I get the following:

    Configuring for:
    PHP Api Version: 20090626
    Zend Module Api No: 20090626
    Zend Extension Api No: 220090626
    /usr/local/bin/autoconf: /usr/local/bin/autom4te: /opt/local/bin/perl: bad interpreter: No such file or directory
    /usr/local/bin/autoconf: line 501: /usr/local/bin/autom4te: Undefined error: 0

    Any idea where to go from here…? Thanks for any guidance…

    Reply
    • Michael Gracie says

      November 8, 2011 at 9:26 pm

      Read this -> http://stackoverflow.com/questions/5158074/phpize-error-in-mac-os-x-snow-leopard-10-6-6-opt-local-bin-perl-bad-interpret

      Reply
      • Lefty says

        November 8, 2011 at 10:32 pm

        Thanks, Michael, that wasn’t the answer, but it got me onto the right track.

        The symlink resolves part of the issue, but the real problem was the aged version of M4 which ships with Lion — 1.4.6 vs. the current 1.4.15. I rebuilt m4 from sources (just configure/make/sudo make install), and then copied it from usr/local/bin to /usr/bin, renamed as “gm4”. Things worked fine after I’d done that…

        Reply
  41. DJ says

    November 15, 2011 at 5:48 am

    Thanks Michael. It worked great!

    Reply
  42. Rob Ray says

    November 23, 2011 at 11:31 am

    awesome instructions! worked great.

    Reply
  43. Matt says

    December 13, 2011 at 3:00 am

    Couple of issues that I was having:

    I couldn’t get libmcrypt to configure, it seemed to be complaining that libmcrypt-config didn’t exist:

    *** Could not run libmcrypt test program, checking why...
    *** The test program failed to compile or link. See the file config.log for the
    *** exact error that occured. This usually means LIBMCRYPT was incorrectly installed
    *** or that you have moved LIBMCRYPT since it was installed. In the latter case, you
    *** may want to edit the libmcrypt-config script: no
    configure: error: *** libmcrypt was not found

    So I used brew to compile and re-configured it and re-installed it successfully. I also had to remove all references to -arch i386 as presumably brew only installs the relevant architecture for libmcrypt (x86_64 on Lion) so it was still complaining with the same error. Removing -arch i386 from all of the configures mentioned above fixed it. I also had to download and install libmhash with a simple ./configure && make && sudo make install for dependencies.

    I was also having an issue with the make step of libmcrypt complaining about an error with the rfc2242.o build:

    make[2]: *** [rfc2440.o] Error 1

    From a bit of googling it appeared to be an invalid reference to a source file that’s in a different location on Mac OS X, so editing ./src/rfc2242.c and changing the following line:

    #include

    to refer to sys/malloc.h (where it resides on Lion) also fixed this make issue. I also used standard makes (instead of make -j6) everywhere to ensure smooth-sailing.

    Reply
  44. Kay says

    December 14, 2011 at 7:06 am

    When you say create a directory at root called ‘SourceCache’ , where is that exactly? I’ve put it under Macintosh HD/Developer and have XCode already installed. I’ve been able to follow right up to the last instruction. I see two php.ini files (php.ini-development and php.ini-production) but nothing close to php.ini.default. Also, I’m not sure which /etc directory I should be looking for. Can you clarify exact file paths and commands to get through this last part for those of us learning all this for the first time? Many thanks! So close and yet so far.

    Make sure you have php.ini in the /etc directory – it will probably be php.ini.default to start, particularly if you’ve just done an OS X upgrade or a clean Lion install, so rename it. Ensure that enable_dl = On but do not remove the ; from in front of ;extension_dir = “./”. Add one line to the .ini file in the Dynamic Extensions section… extension=mcrypt.so

    Reply
  45. James Norris says

    December 22, 2011 at 6:46 pm

    I found a much simpler solution working just using Homebrew that may be useful:
    brew install mcrypt-php

    Reply
  46. Marabiloso says

    December 26, 2011 at 10:50 am

    It works… almost.
    On the first “killall -1 httpd” it doesn’t see the changes in php.ini.default. I guess it’s just not ignored, as “ln -s /etc/php.ini.default /etc/php.ini && killall -1 httpd” did it perfectly… and phpMyAdmin works like a charm! 🙂

    Reply
  47. Trev says

    January 22, 2012 at 5:45 pm

    Legend, thanks for the info. Saved me loads of time!

    Reply
  48. David James says

    February 3, 2012 at 2:29 am

    For Zend Server CE change this:

    ./configure –with-php-config=/Developer/SDKs/MacOSX10.7.sdk/usr/bin/php-config

    to:

    ./configure –with-php-config=/usr/local/zend/bin/php-config

    Otherwise, works great!

    Reply
  49. Homer says

    February 9, 2012 at 2:45 pm

    Thanks for this post. Really helpful in getting libmcrypt.so up for php.

    Some of us may still be getting an error in make (php-5.3.x/ext/mcrypt) that goes like this–


    /tmp/source/php-5.3.8/ext/mcrypt/mcrypt.c:283: error: ‘PHP_FE_END’ undeclared here (not in a function)
    /tmp/source/php-5.3.8/ext/mcrypt/mcrypt.c:283: error: ‘PHP_FE_END’ undeclared here (not in a function)
    lipo: can’t figure out the architecture type of: /var/folders/yx/mjbztxd5115_557vh6bz45p80000gn/T//ccipgsqR.out
    make: *** [mcrypt.lo] Error 1

    Solution is to open mcrypt.c and replace PHP_FE_END with {NULL,NULL,NULL}. I got this from here.

    Peace!

    Reply
    • osl says

      May 16, 2012 at 2:27 am

      you’ve saved my day, thanks!

      Reply
      • Jean-Yves says

        June 15, 2012 at 3:14 am

        Same here, I had that exact error. Thank you.

        And thanks to Michael once again for his instructions (I used your Snow Leopard instructions before with equally good results)

        I used the PHP 5.3.10 sources to match my current copy of PHP without issues (I remember on the SL process there were some issues with certain versions of the source code)

        Reply
  50. Alexandre Pinheiro says

    February 22, 2012 at 6:27 am

    Hi Michael,

    Thank you very much for this post.

    I did all the steps, but mcrypt module does not working yet.

    Please, could you help me?

    My configs:
    1. /usr/local/php5/lib/php/extensions/no-debug-non-zts-20090626/mcrypt.so

    2. (locate mcrypt.so) /usr/local/php5/lib/php/extensions/no-debug-non-zts-20090626/mcrypt.so

    3. (php.ini)
    extension_dir=”/usr/local/php5/lib/php/extensions/no-debug-non-zts-20090626/”
    extension=mcrypt.so

    And after restart Apache, the command “php -info | grep crypt” returns nothing.

    Have you any idea?

    Thank you for advance.

    Reply
    • Michael Gracie says

      February 22, 2012 at 7:21 am

      The best I can suggest is clearing everything out and starting over, paying close attention to versions and compilation messages. I’d review the comments to see if anyone else has run into a similar issue. Sorry I can’t be of more help, but there isn’t an efficient way to replicate whatever is happening to you from afar.

      Reply
  51. Murray Eisenberg says

    March 3, 2012 at 10:42 am

    Everthing worked OK until the step “make -j6” for php-5.3.8/ext/mcrypt. Error:
    /SourceCache/php-5.3.8/ext/mcrypt/mcrypt.c:283: error: ‘PHP_FE_END’ undeclared here (not in a function)
    make: *** [mcrypt.lo] Error 1

    I did do the subsequent sudo make install but of course that still gave an error. And of course after restarting apache, phpinfo() shows no mcrypt loaded.

    Throughout I did copy/paste to the Terminal command line what you posted, so there’s no question of typing errors.

    Reply
    • Michael Gracie says

      March 4, 2012 at 8:12 pm

      Yea..skipping to the next step won’t get you anywhere. Gotta clean everything out and start over. When you get to make -j6, stop. Then go into the file in question and replace all occurrences of “PHP_FE_END” with “{NULL,NULL,NULL}” – see if the rest works after that.

      Reply
      • Murray Eisenberg says

        March 6, 2012 at 9:11 pm

        Michael Gracie: Thank you for the suggestion, but I don’t fully understand it.

        You wrote, “When you get to make -j6” stop. Do you mean stop beforethat make step?

        And do you mean to do this for both the first part involving libmcrypt and then the part involving php/ext/mcrypt? Or just the latter.

        You wrote, “go into the file in question…” _Which_ file in question? the make file?

        Reply
        • Michael Gracie says

          March 6, 2012 at 9:22 pm

          Clarification….

          You are failing at make -j6, so no need to execute that. Hence, stop before producing the error again. Then, the file on which the error is occurring is /SourceCache/php-5.3.8/ext/mcrypt/mcrypt.c, so this is the file you should edit.

          Good?

          UPDATE: FYI there is only one occurrence in that file, on line 283.

          Reply
          • Murray Eisenberg says

            March 7, 2012 at 7:43 am

            Just realized a problem with your original instructions for doing the part of the installation involving php-5.3.8/ext/mcrypt. (I have version 5.3.8 while you have 5.3.6).
            You have./configure --with-php-config=/Developer/SDKs/MacOSX10.7.sdk/usr/bin/php-config
            but for Xcode 4.3 that needs to be changed to:
            ./configure --with-php-config=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/bin/php-config

          • Murray Eisenberg says

            March 7, 2012 at 8:01 am

            With the change to the --with-php-config value that I indicated as needed for Xcode 4.3, and with your suggested change in mcrypt.c (replacing PHP_FE_END by {NULL,NULL,NULL}, the make now goes OK. And mcrypt shows up as an installed php module when I restart apache.

            Thanks for the help. (And it really helps when I’m doing this rather ignorant of details of what’s really going on — beyond understanding, of course, what a configure and what a make and what a make install do.)

  52. Nguyen Tran Viet says

    March 6, 2012 at 6:09 pm

    This works great on my Mac installing Xcode 4.2.
    But on my other machine installing Xcode 4.3, when run ./configure to install libmcrypt-2.5.8, it produce the error:


    Applehouses-MacBook-Pro-7:libmcrypt-2.5.8 Applehouse$ ./configure
    checking build system type... i686-apple-darwin11.3.0
    checking host system type... i686-apple-darwin11.3.0
    checking target system type... i686-apple-darwin11.3.0
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for gawk... no
    checking for mawk... no
    checking for nawk... no
    checking for awk... awk
    checking whether make sets $(MAKE)... no
    checking whether to enable maintainer-specific portions of Makefiles... no
    checking whether make sets $(MAKE)... (cached) no
    checking for g++... no
    checking for c++... no
    checking for gpp... no
    checking for aCC... no
    checking for CC... no
    checking for cxx... no
    checking for cc++... no
    checking for cl... no
    checking for FCC... no
    checking for KCC... no
    checking for RCC... no
    checking for xlC_r... no
    checking for xlC... no
    checking for C++ compiler default output file name... configure: error: C++ compiler cannot create executables
    See `config.log' for more details.

    I’m not sure whether Xcode 4.3 is the reason. Please help me

    Reply
    • Michael Gracie says

      March 6, 2012 at 7:01 pm

      Very likely is the 4.3, which no longer has an installer. Hence, command line tools need to be manually installed.

      Launch Xcode 4.3, then go to Preferences > Downloads. Hit the Install button next to Command Line Tools.

      Should be good after that.

      Reply
      • Nguyen Tran Viet says

        March 6, 2012 at 9:03 pm

        Dear,
        Thanks for your support. I still encounter problem, another problem. When in php-5.3.6/ext/mcrypt, I can not run the “./configure” statement, it says:


        -bash: ./config: No such file or directory

        Thank you

        Reply
      • Nguyen Tran Viet says

        March 6, 2012 at 9:05 pm

        Sorry, it say

        -bash: ./configure: No such file or directory

        Reply
        • Michael Gracie says

          March 6, 2012 at 9:41 pm

          Sounds like a path issue now. If you type gcc -v and/or gcc -v and get zippo back, search for the path fix. If you get results back that end with “gcc version 4.2.1” then I am at a loss (for the time being at least).

          Reply
      • Nguyen Tran Viet says

        March 6, 2012 at 10:09 pm

        The result of run “gcc -v” is:

        sh-3.2# gcc -v
        Using built-in specs.
        Target: i686-apple-darwin11
        Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.9~22/src/configure --disable-checking --enable-werror --prefix=/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2 --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin11 --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.9~22/dst-llvmCore/Developer/usr/local --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1
        Thread model: posix
        gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.9.00)

        Reply
  53. Nguyen Tran Viet says

    March 6, 2012 at 9:31 pm

    Before it, when I run phpize, it shows:

    Configuring for:
    PHP Api Version: 20090626
    Zend Module Api No: 20090626
    Zend Extension Api No: 220090626
    Cannot find autoconf. Please check your autoconf installation and the
    $PHP_AUTOCONF environment variable. Then, rerun this script.

    Please help me. Thank you!

    Reply
    • Michael Gracie says

      March 6, 2012 at 9:43 pm

      You might be better off with one of Mark Liyanage’s packages, which take up a little more space but tend to work without the additional fuss: http://www.entropy.ch/software/macosx/php/

      Reply
  54. Harm says

    March 16, 2012 at 2:44 pm

    Thanks! Worked for me!!

    Reply
  55. thedannywahl says

    March 25, 2012 at 10:13 pm

    Just thought I’d let you know the new php-config path, since Xcode is a self-contained app now (meaning no more /Developer folder):

    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/bin/php-config

    Reply
  56. tesmojones says

    April 4, 2012 at 4:51 am

    thanks, worked like charm!!

    Reply
  57. Larry A. Ball says

    April 7, 2012 at 5:02 am

    Would have never gotten this to work without the walk through. Much appreciated, thank you for taking the time to post this article.

    Reply
  58. Adun says

    April 29, 2012 at 6:33 pm

    I’m having trouble when doing the make install and this is what I’m getting:

    Making install in modules
    Making install in algorithms
    test -z “/usr/local/lib/libmcrypt” || /bin/sh ../../mkinstalldirs “/usr/local/lib/libmcrypt”
    make[3]: Nothing to be done for `install-data-am’.
    Making install in modes
    test -z “/usr/local/lib/libmcrypt” || /bin/sh ../../mkinstalldirs “/usr/local/lib/libmcrypt”
    make[3]: Nothing to be done for `install-data-am’.
    make[3]: Nothing to be done for `install-exec-am’.
    make[3]: Nothing to be done for `install-data-am’.
    Making install in include
    make[2]: Nothing to be done for `install-exec-am’.
    test -z “/usr/local/include” || /bin/sh ../mkinstalldirs “/usr/local/include”
    /source/libmcrypt-2.5.8/install-sh -c -m 644 ‘mcrypt.h’ ‘/usr/local/include/mcrypt.h’
    /source/libmcrypt-2.5.8/install-sh -c -m 644 ‘mutils/mcrypt.h’ ‘/usr/local/include/mutils/mcrypt.h’
    Making install in lib
    test -z “/usr/local/bin” || /bin/sh ../mkinstalldirs “/usr/local/bin”
    /usr/local/ant/install -c ‘libmcrypt-config’ ‘/usr/local/bin/libmcrypt-config’
    /bin/sh: /usr/local/ant/install: Permission denied
    make[2]: *** [install-binSCRIPTS] Error 126
    make[1]: *** [install-am] Error 2
    make: *** [install-recursive] Error 1

    I’m not sure why it’s referring to the Ant install. I have Xcode 4.3 and the command line tools installed so I’m at a lost at what is going on.

    Reply
    • Adun says

      April 29, 2012 at 10:11 pm

      Figured it out. For some reason the installation of Ant was causing an issue with the configure and make. Temporarily removed the Ant folder in /usr/local, ran through all the steps and it worked fine.

      Reply
  59. Mish says

    May 2, 2012 at 3:49 pm

    I can not thank you enough, Mike! This post really helped.
    I hope my notes below will help people on Lion 10.7.3 and with Xcode 4.3.2.

    I had a brand new out of the box mac mini with 10.7.3 installed.

    – I started by installing the entropy package which I like and always used in the past. But after my usual installation routine, things didn’t go smoothly. Apache was crashing with the following error:

    “[notice] child pid XXX exit signal Segmentation fault (11)”

    After a little bit of research I have concluded that the current entropy package is not compatible with 10.7.3

    So I found your post.

    – My first problem was using tcshrc shell, not bash. None of the commands were working, unless I switched to bash, by going Terminal->Prefrences->Startup->Open Shell With->Command and entering /bin/bash

    – Then I ran into permission issues. For some reason I had to use sudo on all commands. So, for example in your first command I had to type “sudo” before ./configure. As in:

    MACOSX_DEPLOYMENT_TARGET=10.7 CFLAGS=’-O3 -fno-common -arch i386 -arch x86_64′ LDFLAGS=’-O3 -arch i386 -arch x86_64′ CXXFLAGS=’-O3 -fno-common -arch i386 -arch x86_64′ sudo ./configure –disable-dependency-tracking

    – Then /usr/bin/phpize didn’t work. I kept getting an error:

    “Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF
    environment variable is set correctly and then rerun this script.”

    So I found this wonderful post that helped me to solve this issue. It basically tells you how t o install the latest autoconf and automake on Mac:

    http://www.mattvsworld.com/blog/2010/02/install-the-latest-autoconf-and-automake-on-mac-os-10-6/

    – My Xcode version is 4.3.2. Some components of Xcode 4.3.2 required for mcrypt installation are optional. Specifically, the “command line tools”. Honestly I already forgot why exactly I needed it for, but I had to go to Xcode->Preferences->Downloads and click on Install button next to the “Command Line Tools”.

    – Finally, in Xcode 4.3.2 they moved /Developer folder from root to Xcode application bundle. So the command below didn’t work:

    MACOSX_DEPLOYMENT_TARGET=10.7 CFLAGS=’-O3 -fno-common -arch i386 -arch x86_64′ LDFLAGS=’-O3 -arch i386 -arch x86_64′ CXXFLAGS=’-O3 -fno-common -arch i386 -arch x86_64′ ./configure –with-php-config=/Developer/SDKs/MacOSX10.7.sdk/usr/bin/php-config

    Instead, I had to use the correct path for php-config:

    MACOSX_DEPLOYMENT_TARGET=10.7 CFLAGS=’-O3 -fno-common -arch i386 -arch x86_64′ LDFLAGS=’-O3 -arch i386 -arch x86_64′ CXXFLAGS=’-O3 -fno-common -arch i386 -arch x86_64′ sudo ./configure –with-php-config=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/bin/php-config

    The last one has a correct path to php-config for Xcode 4.3.2

    ————–

    And bingo! After 4 hours of fun I have mcrypt running on native php 5.3.8 Mac installation.

    Needless to say, without your post I would never be able to figure this out and I was too close to use MAMP which I really try to avoid. So thanks again!

    Reply
    • Maximo says

      June 12, 2012 at 5:26 pm

      I followed all of the above and everything works smoothly except for mcrypt. There was an error during, make -j6
      I am on OSX 10.7.4, php 5.3.10. the error seems to be a bug on PHP related to ‘const char *’. Any ideas?
      Thanks,,

      sh-3.2# MACOSX_DEPLOYMENT_TARGET=10.7 CFLAGS=’-O3 -fno-common -arch i386 -arch x86_64′ LDFLAGS=’-O3 -arch i386 -arch x86_64′ CXXFLAGS=’-O3 -fno-common -arch i386 -arch x86_64′ ./configure –with-php-config=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/bin/php-config
      checking for grep that handles long lines and -e… /usr/bin/grep
      checking for egrep… /usr/bin/grep -E
      checking for a sed that does not truncate output… /usr/bin/sed
      checking for cc… cc
      checking whether the C compiler works… yes
      checking for C compiler default output file name… a.out
      checking for suffix of executables…
      checking whether we are cross compiling… no
      checking for suffix of object files… o
      checking whether we are using the GNU C compiler… yes
      checking whether cc accepts -g… yes
      checking for cc option to accept ISO C89… none needed
      checking how to run the C preprocessor… cc -E
      checking for icc… no
      checking for suncc… no
      checking whether cc understands -c and -o together… yes
      checking for system library directory… lib
      checking if compiler supports -R… no
      checking if compiler supports -Wl,-rpath,… yes
      checking build system type… i386-apple-darwin11.4.0
      checking host system type… i386-apple-darwin11.4.0
      checking target system type… i386-apple-darwin11.4.0
      checking for PHP prefix… /usr
      checking for PHP includes… -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib
      checking for PHP extension directory… /usr/lib/php/extensions/no-debug-non-zts-20090626
      checking for PHP installed headers prefix… /usr/include/php
      checking if debug is enabled… no
      checking if zts is enabled… no
      checking for re2c… no
      configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
      checking for gawk… no
      checking for nawk… no
      checking for awk… awk
      checking if awk is broken… no
      checking for mcrypt support… yes, shared
      checking for libmcrypt version… >= 2.5.6
      checking for mcrypt_module_open in -lmcrypt… yes
      checking for ld used by cc… /usr/bin/ld
      checking if the linker (/usr/bin/ld) is GNU ld… no
      checking for /usr/bin/ld option to reload object files… -r
      checking for BSD-compatible nm… /usr/bin/nm
      checking whether ln -s works… yes
      checking how to recognize dependent libraries… pass_all
      checking for ANSI C header files… yes
      checking for sys/types.h… yes
      checking for sys/stat.h… yes
      checking for stdlib.h… yes
      checking for string.h… yes
      checking for memory.h… yes
      checking for strings.h… yes
      checking for inttypes.h… yes
      checking for stdint.h… yes
      checking for unistd.h… yes
      checking dlfcn.h usability… yes
      checking dlfcn.h presence… yes
      checking for dlfcn.h… yes
      checking the maximum length of command line arguments… 196608
      checking command to parse /usr/bin/nm output from cc object… ok
      checking for objdir… .libs
      checking for ar… ar
      checking for ranlib… ranlib
      checking for strip… strip
      checking for dsymutil… dsymutil
      checking for nmedit… nmedit
      checking for -single_module linker flag… yes
      checking for -exported_symbols_list linker flag… yes
      checking if cc supports -fno-rtti -fno-exceptions… yes
      checking for cc option to produce PIC… -fno-common
      checking if cc PIC flag -fno-common works… yes
      checking if cc static flag -static works… no
      checking if cc supports -c -o file.o… yes
      checking whether the cc linker (/usr/bin/ld) supports shared libraries… yes
      checking dynamic linker characteristics… darwin11.4.0 dyld
      checking how to hardcode library paths into programs… immediate
      checking whether stripping libraries is possible… yes
      checking if libtool supports shared libraries… yes
      checking whether to build shared libraries… yes
      checking whether to build static libraries… no

      creating libtool
      appending configuration tag “CXX” to libtool
      configure: creating ./config.status
      config.status: creating config.h
      sh-3.2# make -j6
      /bin/sh /usr/sourcecache/php-5.3.10/ext/mcrypt/libtool –mode=compile cc -I. -I/usr/sourcecache/php-5.3.10/ext/mcrypt -DPHP_ATOM_INC -I/usr/sourcecache/php-5.3.10/ext/mcrypt/include -I/usr/sourcecache/php-5.3.10/ext/mcrypt/main -I/usr/sourcecache/php-5.3.10/ext/mcrypt -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/local/include -DHAVE_CONFIG_H -O3 -fno-common -arch i386 -arch x86_64 -c /usr/sourcecache/php-5.3.10/ext/mcrypt/mcrypt.c -o mcrypt.lo
      /bin/sh /usr/sourcecache/php-5.3.10/ext/mcrypt/libtool –mode=compile cc -I. -I/usr/sourcecache/php-5.3.10/ext/mcrypt -DPHP_ATOM_INC -I/usr/sourcecache/php-5.3.10/ext/mcrypt/include -I/usr/sourcecache/php-5.3.10/ext/mcrypt/main -I/usr/sourcecache/php-5.3.10/ext/mcrypt -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/local/include -DHAVE_CONFIG_H -O3 -fno-common -arch i386 -arch x86_64 -c /usr/sourcecache/php-5.3.10/ext/mcrypt/mcrypt_filter.c -o mcrypt_filter.lo
      mkdir .libs
      cc -I. -I/usr/sourcecache/php-5.3.10/ext/mcrypt -DPHP_ATOM_INC -I/usr/sourcecache/php-5.3.10/ext/mcrypt/include -I/usr/sourcecache/php-5.3.10/ext/mcrypt/main -I/usr/sourcecache/php-5.3.10/ext/mcrypt -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/local/include -DHAVE_CONFIG_H -O3 -fno-common -arch i386 -arch x86_64 -c /usr/sourcecache/php-5.3.10/ext/mcrypt/mcrypt.c -fno-common -DPIC -o .libs/mcrypt.o
      cc -I. -I/usr/sourcecache/php-5.3.10/ext/mcrypt -DPHP_ATOM_INC -I/usr/sourcecache/php-5.3.10/ext/mcrypt/include -I/usr/sourcecache/php-5.3.10/ext/mcrypt/main -I/usr/sourcecache/php-5.3.10/ext/mcrypt -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/local/include -DHAVE_CONFIG_H -O3 -fno-common -arch i386 -arch x86_64 -c /usr/sourcecache/php-5.3.10/ext/mcrypt/mcrypt_filter.c -fno-common -DPIC -o .libs/mcrypt_filter.o
      /usr/sourcecache/php-5.3.10/ext/mcrypt/mcrypt_filter.c:210:37: warning: passing
      ‘const char *’ to parameter of type ‘char *’ discards qualifiers
      [-Wincompatible-pointer-types]
      mcrypt_module = mcrypt_module_open(cipher, algo_dir, mode, mode_dir);
      ^~~~~~
      /usr/local/include/mutils/mcrypt.h:38:34: note: passing argument to parameter ‘algorithm’
      here
      MCRYPT mcrypt_module_open(char *algorithm,
      ^
      /usr/sourcecache/php-5.3.10/ext/mcrypt/mcrypt.c:693:2: warning: initializing
      ‘const char *’ with an expression of type ‘unsigned char *’ converts between
      pointers to integer types with different sign [-Wpointer-sign]
      RETVAL_STRINGL(data_s, data_size, 1);
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      /usr/include/php/Zend/zend_API.h:585:42: note: expanded from macro ‘RETVAL_STRINGL’
      #define RETVAL_STRINGL(s, l, duplicate) ZVAL_STRINGL(return_value, s, l, …
      ^
      /usr/include/php/Zend/zend_API.h:547:15: note: expanded from macro ‘ZVAL_STRINGL’
      const char *__s=(s); int __l=l; \
      ^ ~~~
      1 warning generated.
      /usr/sourcecache/php-5.3.10/ext/mcrypt/mcrypt_filter.c:210:37: warning: passing
      ‘const char *’ to parameter of type ‘char *’ discards qualifiers
      [-Wincompatible-pointer-types]
      mcrypt_module = mcrypt_module_open(cipher, algo_dir, mode, mode_dir);
      ^~~~~~
      /usr/local/include/mutils/mcrypt.h:38:34: note: passing argument to parameter ‘algorithm’
      here
      MCRYPT mcrypt_module_open(char *algorithm,
      ^
      1 warning generated.
      1 warning generated.
      /usr/sourcecache/php-5.3.10/ext/mcrypt/mcrypt.c:693:2: warning: initializing
      ‘const char *’ with an expression of type ‘unsigned char *’ converts between
      pointers to integer types with different sign [-Wpointer-sign]
      RETVAL_STRINGL(data_s, data_size, 1);
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      /usr/include/php/Zend/zend_API.h:585:42: note: expanded from macro ‘RETVAL_STRINGL’
      #define RETVAL_STRINGL(s, l, duplicate) ZVAL_STRINGL(return_value, s, l, …
      ^
      /usr/include/php/Zend/zend_API.h:547:15: note: expanded from macro ‘ZVAL_STRINGL’
      const char *__s=(s); int __l=l; \
      ^ ~~~
      1 warning generated.
      /bin/sh /usr/sourcecache/php-5.3.10/ext/mcrypt/libtool –mode=link cc -DPHP_ATOM_INC -I/usr/sourcecache/php-5.3.10/ext/mcrypt/include -I/usr/sourcecache/php-5.3.10/ext/mcrypt/main -I/usr/sourcecache/php-5.3.10/ext/mcrypt -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/local/include -DHAVE_CONFIG_H -O3 -fno-common -arch i386 -arch x86_64 -O3 -arch i386 -arch x86_64 -o mcrypt.la -export-dynamic -avoid-version -prefer-pic -module -rpath /usr/sourcecache/php-5.3.10/ext/mcrypt/modules mcrypt.lo mcrypt_filter.lo -Wl,-rpath,/usr/local/lib -L/usr/local/lib -lmcrypt -lltdl
      cc ${wl}-undefined ${wl}dynamic_lookup -o .libs/mcrypt.so -bundle .libs/mcrypt.o .libs/mcrypt_filter.o -L/usr/local/lib /usr/local/lib/libmcrypt.dylib /usr/local/lib/libltdl.dylib -arch i386 -arch x86_64 -arch i386 -arch x86_64 -Wl,-rpath -Wl,/usr/local/lib
      ld: warning: ignoring file /usr/local/lib/libltdl.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
      dsymutil .libs/mcrypt.so || :
      warning: no debug symbols in executable (-arch i386)
      warning: no debug symbols in executable (-arch x86_64)
      creating mcrypt.la
      (cd .libs && rm -f mcrypt.la && ln -s ../mcrypt.la mcrypt.la)
      /bin/sh /usr/sourcecache/php-5.3.10/ext/mcrypt/libtool –mode=install cp ./mcrypt.la /usr/sourcecache/php-5.3.10/ext/mcrypt/modules
      cp ./.libs/mcrypt.so /usr/sourcecache/php-5.3.10/ext/mcrypt/modules/mcrypt.so
      cp ./.libs/mcrypt.lai /usr/sourcecache/php-5.3.10/ext/mcrypt/modules/mcrypt.la
      ———————————————————————-
      Libraries have been installed in:
      /usr/sourcecache/php-5.3.10/ext/mcrypt/modules

      If you ever happen to want to link against installed libraries
      in a given directory, LIBDIR, you must either use libtool, and
      specify the full pathname of the library, or use the `-LLIBDIR’
      flag during linking and do at least one of the following:
      – add LIBDIR to the `DYLD_LIBRARY_PATH’ environment variable
      during execution

      See any operating system documentation about shared libraries for
      more information, such as the ld(1) and ld.so(8) manual pages.
      ———————————————————————-

      Build complete.
      Don’t forget to run ‘make test’.

      Reply
  60. rols says

    May 7, 2012 at 11:04 pm

    Great post. Worked fine.

    To all the people who got the “configure: error: *** libmcrypt was not found” error, you’re most likely building the wrong package, you’re building mcrypt and no libmcrypt. It’s super-easy to download the wrong one because the sourceforge site is so confusing.

    For Xcode recent versions the SDKs have moved and so you need


    MACOSX_DEPLOYMENT_TARGET=10.7 CFLAGS='-O3 -fno-common -arch i386 -arch x86_64' LDFLAGS='-O3 -arch i386 -arch x86_64' CXXFLAGS='-O3 -fno-common -arch i386 -arch x86_64' ./configure --with-php-config=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/bin/php-config

    I would recommend running ‘make test’ after you build the second piece, just to be sure it’s all working as it should be.

    Reply
    • adox says

      February 24, 2013 at 11:50 am

      @rols
      Thanks a bunch!!! Actually, I did download and tried to compile mcrypt instead of libmcrypt…

      Reply
  61. Sola says

    May 14, 2012 at 5:15 pm

    Awesome post!

    If you have Xcode 3.x.x and mac OS X 10.6.x, you can change MACOSX_DEPLOYMENT_TARGET=10.7
    to
    MACOSX_DEPLOYMENT_TARGET=10.6.

    This worked for me.

    Once again, thanks for this post – it’s spot on.

    Reply
  62. Johnny says

    June 18, 2012 at 4:54 pm

    that was great! I spent so much time looking for the right way to build in mcrypt library on Mac lion.
    Thank you so much!

    Reply
  63. Donatas says

    June 22, 2012 at 4:29 am

    Excellent, saved my day. The only thing I had to change was –with-php-config value.

    Reply
  64. Edward Beckett says

    July 6, 2012 at 8:33 pm

    Great share Michael … worked like a charm … if only all dev work went so smooth … 😉

    Reply
  65. Justin says

    July 25, 2012 at 8:27 pm

    Anyone try this with Mountain Lion?

    Reply
    • Mario says

      July 30, 2012 at 7:41 am

      5 minutes ago and everything is ok. I’ve used these downloads:

      http://sourceforge.net/projects/mcrypt/files/Libmcrypt/2.5.8/libmcrypt-2.5.8.tar.bz2/download
      php 5.3.15 source code (I couldn’t found source code for php installed on ML)


      tar -xvf libmcrypt-2.5.8.tar.bz2
      cd libmcrypt-2.5.8/
      MACOSX_DEPLOYMENT_TARGET=10.7 CFLAGS='-O3 -fno-common -arch i386 -arch x86_64' LDFLAGS='-O3 -arch i386 -arch x86_64' CXXFLAGS='-O3 -fno-common -arch i386 -arch x86_64' ./configure --disable-dependency-tracking
      make -j6
      sudo make install
      cd ..
      tar xvf php-5.3.15.tar.bz2
      cd php-5.3.15/ext/mcrypt/
      /usr/bin/phpize
      MACOSX_DEPLOYMENT_TARGET=10.8 CFLAGS='-O3 -fno-common -arch i386 -arch x86_64' LDFLAGS='-O3 -arch i386 -arch x86_64' CXXFLAGS='-O3 -fno-common -arch i386 -arch x86_64' ./configure --with-php-config=/usr/bin/php-config
      make -j6
      make test
      sudo make install

      Reply
      • Max says

        August 3, 2012 at 10:34 am

        Xcode 4.4 doesn’t include autoconfi, so phpize won’t work. To fix, install autoconf via Brew (brew install autoconf).

        Reply
    • Rob... says

      August 10, 2012 at 10:27 am

      I installed autoconf via homebrew and then for libmcrypt’s configure, I used:

      MACOSX_DEPLOYMENT_TARGET=10.7 CFLAGS=’-O3 -fno-common -arch i386 -arch x86_64′ LDFLAGS=’-O3 -arch i386 -arch x86_64′ CXXFLAGS=’-O3 -fno-common -arch i386 -arch x86_64′ ./configure –disable-dependency-tracking

      and for the php extension:

      MACOSX_DEPLOYMENT_TARGET=10.8 CFLAGS=’-O3 -fno-common -arch i386 -arch x86_64′ LDFLAGS=’-O3 -arch i386 -arch x86_64′ CXXFLAGS=’-O3 -fno-common -arch i386 -arch x86_64′ ./configure –with-php-config=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/bin/php-config

      Regards,
      Rob…

      Reply
  66. Kike says

    August 3, 2012 at 1:21 pm

    why you dont let me send an external URL???

    Reply
  67. Arleena Faith says

    August 31, 2012 at 1:24 pm

    FYI this was awesome. Tried so many things and nothing worked but your tutorial finally made my Magento see the mcrypt install. Note that when I tried to configure oho I was missing the autoconf, which I successfully then added through ‘brew install autoconf’ and right after attempting to configure again, I had to locate my php-config which was in the ‘/usr/bin/php-config’ directory. So my version of your configure for php was,
    ‘MACOSX_DEPLOYMENT_TARGET=10.7 CFLAGS=’-O3 -fno-common -arch i386 -arch x86_64′ LDFLAGS=’-O3 -arch i386 -arch x86_64′ CXXFLAGS=’-O3 -fno-common -arch i386 -arch x86_64′ sudo ./configure –with-php-config=/usr/bin/php-config’
    and Magento loaded…yay!
    Tks a lot.

    Reply
    • Arleena Faith says

      August 31, 2012 at 1:26 pm

      I wrote ‘oho’ but meant ‘php’ excuse my typo, 🙂

      Reply
  68. Majid Mvulle says

    October 13, 2012 at 12:26 pm

    You are awesome. This worked for me….on Mountain Lion (10.8.2) with php version 5.3.15. However, I had to change:
    MACOSX_DEPLOYMENT_TARGET=10.7 CFLAGS='-O3 -fno-common -arch i386 -arch x86_64' LDFLAGS='-O3 -arch i386 -arch x86_64' CXXFLAGS='-O3 -fno-common -arch i386 -arch x86_64' ./configure --with-php-config=/Developer/SDKs/MacOSX10.7.sdk/usr/bin/php-config
    TO:
    MACOSX_DEPLOYMENT_TARGET=10.7 CFLAGS='-O3 -fno-common -arch i386 -arch x86_64' LDFLAGS='-O3 -arch i386 -arch x86_64' CXXFLAGS='-O3 -fno-common -arch i386 -arch x86_64' ./configure --with-php-config=/usr/bin/php-config
    But, thank you so much.

    Reply
  69. Rodrigo Slompo says

    January 9, 2013 at 7:16 am

    I followed all the steps in a clean install of mac os x lion and mcrypt not working.

    Reply
    • Michael Gracie says

      January 9, 2013 at 8:34 pm

      Unfortunately, “not working” isn’t much to go on. Note that the tutorial is 18 months old, and a lot has happened since then. First thought – you may well have the latest version of XCode, which doesn’t include autoconf. Check here for more -> http://michaelgracie.com/2012/09/26/plugging-mcrypt-into-php-on-mac-os-x-mountain-lion-10-8/.

      Reply
  70. Juan Ruiz says

    March 4, 2013 at 11:34 pm

    Works almost perfect.

    When executed the command /usr/bin/phpize this error appeared:
    $PHP_AUTOCONF environment variable. Then, rerun this script.

    This one was solved with this commands

    curl -OL http://ftpmirror.gnu.org/autoconf/autoconf-latest.tar.gz
    tar xzf autoconf-latest.tar.gz
    cd autoconf-2.69/
    ./configure --prefix=/usr/local
    sudo make install

    I also changed the path at the end of this scriipt:

    MACOSX_DEPLOYMENT_TARGET=10.7 CFLAGS=’-O3 -fno-common -arch i386 -arch x86_64′ LDFLAGS=’-O3 -arch i386 -arch x86_64′ CXXFLAGS=’-O3 -fno-common -arch i386 -arch x86_64′ ./configure –with-php-config=/Developer/SDKs/MacOSX10.7.sdk/usr/bin/php-config

    to

    MACOSX_DEPLOYMENT_TARGET=10.7 CFLAGS=’-O3 -fno-common -arch i386 -arch x86_64′ LDFLAGS=’-O3 -arch i386 -arch x86_64′ CXXFLAGS=’-O3 -fno-common -arch i386 -arch x86_64′ ./configure –with-php-config=/usr/bin/php-config

    Thanks!

    Reply
  71. Mike says

    June 17, 2013 at 9:41 pm

    I am receiving the same error using these instructions:

    Michael-Sutyaks-MacBook-Pro:mcrypt michaelsutyak$ MACOSX_DEPLOYMENT_TARGET=10.7 CFLAGS=’-O3 -fno-common -arch i386 -arch x86_64′ LDFLAGS=’-O3 -arch i386 -arch x86_64′ CXXFLAGS=’-O3 -fno-common -arch i386 -arch x86_64′ ./configure –with-php-config=/Developer/SDKs/MacOSX10.7.sdk/usr/bin/php-config
    checking for grep that handles long lines and -e… /usr/bin/grep
    checking for egrep… /usr/bin/grep -E
    checking for a sed that does not truncate output… /usr/bin/sed
    checking for cc… cc
    checking for C compiler default output file name… a.out
    checking whether the C compiler works… yes
    checking whether we are cross compiling… no
    checking for suffix of executables…
    checking for suffix of object files… o
    checking whether we are using the GNU C compiler… yes
    checking whether cc accepts -g… yes
    checking for cc option to accept ISO C89… none needed
    checking how to run the C preprocessor… cc -E
    checking for icc… no
    checking for suncc… no
    checking whether cc understands -c and -o together… yes
    checking for system library directory… lib
    checking if compiler supports -R… no
    checking if compiler supports -Wl,-rpath,… yes
    checking build system type… i386-apple-darwin11.4.2
    checking host system type… i386-apple-darwin11.4.2
    checking target system type… i386-apple-darwin11.4.2
    checking for PHP prefix… /usr
    checking for PHP includes… -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib
    checking for PHP extension directory… /usr/lib/php/extensions/no-debug-non-zts-20090626
    checking for PHP installed headers prefix… /usr/include/php
    checking if debug is enabled… no
    checking if zts is enabled… no
    checking for re2c… no
    configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
    checking for gawk… no
    checking for nawk… no
    checking for awk… awk
    checking if awk is broken… no
    checking for mcrypt support… yes, shared
    checking for libmcrypt version… >= 2.5.6
    checking for mcrypt_module_open in -lmcrypt… no
    checking for mcrypt_module_open in -lmcrypt… no
    configure: error: Sorry, I was not able to diagnose which libmcrypt version you have installed.

    Any idea how I can change this? Everything is up to date.

    Reply
    • Michael Gracie says

      June 17, 2013 at 11:47 pm

      This is going to be trial and error for you, and the comments may shed some light. I suggest deleting everything and starting over.

      Reply
  72. Denis Karanja says

    April 14, 2015 at 4:51 am

    Thank You so much. This worked for me. Just fine!! 🙂

    Reply
    • Michael Gracie says

      April 14, 2015 at 7:09 am

      You are welcome.

      Reply

Trackbacks

  1. Installing LAMP Stack on OSX 10.7 Lion | VerySimple says:
    August 18, 2011 at 4:14 pm

    […] you use encryption you may need to install mcrypt.  Instructions have been provided by Michael […]

    Reply
  2. Setting up PHP & MySQL on OS X 10.7 Lion | CN101 Community Network says:
    October 5, 2011 at 12:51 am

    […] This is useful! Follow the installation details by Michale Gracie here: http://michaelgracie.com/2011/07/21/plugging-mcrypt-into-php-on-mac-os-x-lion-10-7/) […]

    Reply
  3. Instalar PHP no Mac OS X Lion | Carlos Serrão says:
    October 15, 2011 at 7:30 pm

    […] Plugging mcrypt into PHP, on Mac OS X Lion 10.7: como muitas vezes tenho alguma necessidade em trabalhar com criptografia, e como o PHP do Mac OS X não vem com a extensão mcrypt activa, aqui está um bom guia sobre como tornar a mesma activa; […]

    Reply
  4. New Mac installation | Samuel Wong says:
    October 29, 2011 at 4:23 pm

    […] http://michaelgracie.com/2011/07/21/plugging-mcrypt-into-php-on-mac-os-x-lion-10-7/ […]

    Reply
  5. MySQL « Foo, Bared. says:
    January 6, 2012 at 3:54 pm

    […] were outdated, but I finally found a succinct and helpful explanation here. Now to figure out this mycrypt problem. Share this:TwitterFacebookLike this:LikeBe the first to like this […]

    Reply
  6. Install GCC for mcrypt on OS X 10.7 (Lion) | Server Side Up -- Servers, Programming, Tutorials says:
    January 7, 2012 at 8:30 pm

    […] 3. When the OSX GCC package finishes installing, follow Michael Gracie’s instructions here: http://michaelgracie.com/2011/07/21/plugging-mcrypt-into-php-on-mac-os-x-lion-10-7/ […]

    Reply
  7. Magento PHP Extension “mcrypt” must be loaded – Mac OSX Lion | Madproject says:
    January 22, 2012 at 5:50 pm

    […] we better load it then! This solution here worked perfectly for me: http://michaelgracie.com/2011/07/21/plugging-mcrypt-into-php-on-mac-os-x-lion-10-7 Spread the love: Delicious Digg Facebook Reddit Stumblers Twitter RSS E-mail This entry was […]

    Reply
  8. Setting up PHP & MySQL on OS X 10.7 Lion | Heartdisc says:
    February 28, 2012 at 9:04 am

    […] This is useful! Follow the installation details by Michale Gracie here: http://michaelgracie.com/2011/07/21/plugging-mcrypt-into-php-on-mac-os-x-lion-10-7/) […]

    Reply
  9. Compilando o PHP 5.4 no Mac OS X Lion | getOnCode(); says:
    March 7, 2012 at 7:04 pm

    […] eu não sei se há alguma maneira de fazer isso usando o homebrew, então neste caso eu achei um excelente blog post explicando como fazer. Alguns detalhes importantes: No blog post supracitado ele usa uma versão mais antiga do PHP, […]

    Reply
  10. Adding mcrypt extension to PHP on OS X Lion • Evolonix says:
    March 13, 2012 at 2:27 pm

    […] tutorial was adapted from the tutorial found at http://michaelgracie.com/2011/07/21/plugging-mcrypt-into-php-on-mac-os-x-lion-10-7/. This entry was posted in Uncategorized by jason. Bookmark the […]

    Reply
  11. Compiling mcrypt on OSX 10.7 Lion with PHP 5.3.8 « Niltz Designs says:
    March 23, 2012 at 6:21 pm

    […] 10.7 so you have to compile it yourself. Normally I would have no clue how to do this, but luckily Michael does. I had one issue related to PHP_FE_END, but there is a solution for that too in the comments […]

    Reply
  12. Experimenting with Magento on osX 10.7 | Dotinga.com says:
    July 3, 2012 at 8:06 am

    […] that..Lib mcrypt for phpAfter a bit of searching I stumbled upon Michael Gracie’s blog about setting up mcrypt for php nice, just what I needed Before I found this I had followed about 3 other guides without succes. […]

    Reply
  13. site_title » Blog Archive » SETTING UP PHP & MYSQL ON OS X 10.7 LION says:
    July 15, 2012 at 7:00 pm

    […] is useful! Follow the installation details by Michale Gracie here: http://michaelgracie.com/2011/07/21/plugging-mcrypt-into-php-on-mac-os-x-lion-10-7/) It all works on this machine, […]

    Reply
  14. Setting up PHP & MySQL on OS X 10.8 Mountain Lion – Rob Allen's DevNotes says:
    August 30, 2012 at 2:11 am

    […] is useful! Follow the details in Plugging mcrypt into PHP, on Mac OS X Lion 10.7 by Michale Gracie. Read the comments though for the 10.8 changes required.In […]

    Reply
  15. Setting up PHP & MySQL on OS X 10.7 Lion – Rob Allen's DevNotes says:
    August 30, 2012 at 7:16 am

    […] This is useful! Follow the installation details by Michale Gracie here: http://michaelgracie.com/2011/07/21/plugging-mcrypt-into-php-on-mac-os-x-lion-10-7/) […]

    Reply
  16. Setting up PHP & MySQL on OS X 10.8 Mountain Lion says:
    September 6, 2013 at 7:29 pm

    […] is useful! Follow the details in Plugging mcrypt into PHP, on Mac OS X Lion 10.7 by Michale Gracie. Read the comments though for the 10.8 changes required.In […]

    Reply
  17. Setting up PHP & MySQL on OS X 10.7 Lion | KennStuff says:
    September 9, 2014 at 8:37 pm

    […] This is useful! Follow the installation details by Michale Gracie here: http://michaelgracie.com/2011/07/21/plugging-mcrypt-into-php-on-mac-os-x-lion-10-7/) […]

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

The Beaten Path

Posts
Comments

Recent Blowback

  • David Van Diver I had a similar deal that my daughter was doing they wanted her item so they sent this check for 1600 she was to cash... – Sep 01, 9:59 PM
  • Michael Gracie You are welcome. Good luck with the specialization. – Aug 21, 9:23 PM
  • Jeff H. Michael, Thank you for this detailed review! You really sold me on the value of at least considering these classes, which is exactly what I... – Aug 21, 4:13 PM
  • Michelle Eller I was selling the brand new bandsaw and I got a similar text. I keep giving them opportunities every day to put money in my... – Aug 16, 12:33 AM
  • Michael Gracie Best to ask Coursera about that. – Aug 03, 9:26 AM
  • Francis Hello colleagues, I would like to know if you enroll now for the course if you can master the materials faster can you enroll for... – Aug 03, 9:19 AM

Aging Beauties

Got something to say?

The easiest way to berate, ridicule, threaten and/or invite the site owner
for a round of golf or to a [fine] Scotch tasting event
Get a hold of MG
  • Top
  • Notes
  • Office
  • Outdoors
  • Spamroll
  • Thoughtmarket

© 2016 · Michael Gracie - Ridiculous Rights Reserved

loading Cancel
Post was not sent - check your email addresses!
Email check failed, please try again
Sorry, your blog cannot share posts by email.