1

Yesterday I spent quite some time trying to recompile PHP for OS X. I tried several guides I found on Google but they all seemed outdated.

Is there anyone who knows how to recompile PHP on OS X? I want to do this so I can make a CakePHP web application that reads information from IMAP. I would love to use this CakePHP plugin.

Chris Frederick
  • 5,482
  • 3
  • 36
  • 44
Jankeesvw
  • 711
  • 8
  • 18

1 Answers1

1

As long as CakePHP itself dosen't need to get recompile with php you can use Macports

To install imap you can use:

su port install php5-imap

macports offers a lot of "ports" (library) for php and as long as CakePHP dosen't use something uncommon it should work.

Talisin
  • 614
  • 1
  • 6
  • 17
  • Hi, Thanks for the quick reply, I tried this but I got the following error: → sudo port install php-imap Password: **** Error: Port php-imap not found To report a bug, see – Jankeesvw Aug 05 '11 at 07:19
  • sorry my bad use: su port install php5-imap :) – Talisin Aug 05 '11 at 07:26
  • Thanks, that seems to work! Now I bump into another problem, it seems my build in Apache doesn't use this newly compiled php version.. Anyone knows how to change this? – Jankeesvw Aug 08 '11 at 07:57