Support Joomla!
Request for assistance: mcrypt on OS X
User Rating: / 1
PoorBest 
OpenSocial
Written by Shannon Quinn   

PBF2 was quite an experience this past weekend, and OpenSocial development is continuing along very nicely.  But I have hit a wall:

In order to make use of Shindig, I have to have the mcrypt module installed in my PHP configuration.  Unfortunately, the stock install on OS X, while loaded with features, does not count the mcrypt library among those.  I have been scouring the internets high and low for ways to dynamically load this module without having to recompile PHP from source, as there doesn't seem to be any way to do that with the stock installation.  I'd literally have to have two installs of PHP running on my laptop in order to have mcrypt running in one of them.

If anyone has any ideas on how to solve this dilemma, please let me know!  I am running OS X 10.5.3 with PHP 5.2.5 and Apache 2.2.8.  Any assistance would be GREATLY appreciated!

 

Show other articles of this author

8 Comments

  1. I was in the same infinite loop as you, but with memcache instead. After wasting hours and hours researching and trying to recompile with errors, I swallowed my pride and got MacPorts. Now I got everything - PHP, Apache, Memcache, Rails, MySQL, PostgreSQL, and a bunch of other stuff I've never tried yet *blush* Sorry I have no silver bullet for you, but I have to say that MacPorts greatly simplified my setup time and effort. Best of luck!
  2. I would also add that Porticus is a great GUI for MacPorts that will likely be helpful if you are not super comfortable with the command line.
  3. Hi Shannon, please pardon the OT, I've been wondering for a while if you are going to make OpenSocial compatible in some way with Community Builder from Joomlapolis, but didn't find answer. Would you please give me (and others) a hint on that? Thanks in advance!
  4. @Spacemonkey: So I guess I'll have to bite the bullet as well and just live with two parallel installations of PHP on my machine? :/ Not ideal, but as long as it accomplishes what I'm ultimately after, I'll pursue it. Can the MacPorts installation of PHP function with the stock OS X Apache install? @Louis: I'm very comfortable with the command line, but I'm always happy for a GUI which simplifies my life. :) Thank you!
  5. Have you tried MAMP?
  6. Teddy - Shannon is making Open Social compatible with Joomla! 1.5. That should open doors for any developer who wishes to further expand the utility in any direction.
  7. @Scott: I just installed MAMP, and with the exception of sacrificing Apache 2.2 for 2.0, it worked like a charm, and came with mcrypt, which is exactly what I needed. Thank you very much for pointing me in that direction! It's even simple to delete once I'm done - like any OS X application, drag it to the trash. :P
  8. I'm looking for details on how to do the same thing with the build-in PHP, and I know this isn't totally related, but I found a way to add GD support to Leopard's built-in PHP. http://downloads.topicdesk.com/docs/Adding_GD2_to_PHP_on_OS_X_Server_10_5_Leopard.pdf This approach downloads the setup of PHP which Apple uses, and safely compiles to the same location, in my experience without breaking anything at all. I imagine that using the correct flags to add mcrypt support would work, but I haven't yet figured out what those are. Good luck!

Add Comment