![]() Install autoconf if you get the above error:.If you have upgraded from a previous version of XCode, you may still have autoconf available The lack of autoconf is causing the above error message. Note: From XCode 4.3 the autoconf tool has been removed from the XCode CLI Tools. Please check your autoconf installation and the done: 247,670 bytesĬannot find autoconf. Starting to download xdebug-2.2.0.tgz (247,670 bytes) Riondevmac:temp rion$ sudo pecl install xdebug You will probably see a couple of errors appear at this point (unless you already have autoconf installed):.(sudo may not be necessary, but I went for it based on the /usr setting I used above) I don't know where PECL comes into play- it looks to be the package installer tool. You'll get a final install screen message:Ĭurrently used php.ini (guess) : /private/etc/php.iniĪt this point the PEAR Package manager should be installed.You will be asked if you would like to alter /private/etc/php.ini.I changed mine from /Users/username/pear to /usr so I didn't have to muck with the $PATH variable This can be done by changing the Installation base ($prefix) setting in the installer's configuration screen. Change the install to a place that works for you.Note: If you DO NOT want a 'System-wide' install, don't use sudo Sudo php -d detect_unicode=0 go-pear.phar I only had to make one change to take into account the fact that Mac Lion doesn't ship with wget: The Unix/Linux/BSD Install Instructions are pretty straightforward.Give the PHP Interpreter a Name and select a Debugger.Click the '+' button and select /usr/bin/php (default for Mac OS X 10.7 Lion).Click the '.' button next to Interpreter.Start PhpStorm and open PhpStorm -> Preferences -> PHP.Note: You may need to enable Web Sharing in System Preferences if you want to host php files from your local mac Restart the apache service for the change to take effect:.By default Apple ships a /private/etc/ file which can be renamed to php.ini using this command: Next we need to enable the php.ini file.Uncomment the line and save the file using Ctrl-x.Edit the /etc/apache22/nf file and uncomment the libphp line.Validate that php is installed by running which php at the command prompt.Thread about how XCode 4.3 is missing autoconf.Does not install CLI Tools by default in 4.3.Help getting PHP working on Mac OS X Lion 10.7.3. ![]() Once the tools were in place PhpStorm integrated nicely.Įdit: See Article 2 for information on how to debug PHP Web Applications Most of the effort involved setting things up on the Mac OS X side of things. It took a bit more effort to get PHP Debugging setup on my Mac dev box and I want to call out the step-by-step process I went through to it working. The JavaScript pieces work flawlessly out of the box- I'm able to debug in Firefox or Chrome on either my Mac or Windows Development box. I've been trying out JetBrains PhpStorm to see how well I'm able to use it for JavaScript and PHP Development work (PhpStorm is a Super set of WebStorm, their JavaScript IDE).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |