Install Pecl On Mac

So before you download and install macOS 10.14 Mojave, make sure your Mac is backed up. For information on how to do this, head over to our ultimate guide to backing up your Mac. How to download. Install PECL extensions with Homebrewed PHP on Mac OS X Mountain Lion I needed to use the HTTPRequest class that comes as a PECL extension to PHP. This was easier than I thought. MAMP is an easy to install set of tools for that provides a great local development environment for Mac users (Mac Apache MySQL PHP).OS X does ship with its own built in versions of these tools, but MAMP adds lots of goodies.

The final official version of macOS 10.14 Mojave, the latest operating system for Macs and MacBooks, has been released, and it in this guide we'll show you how to download and install it safely and securely.

Since Apple announced macOS 10.14 Mojave earlier this year, a number of people have been testing out the early beta versions of the operating system. They've been checking out the new features and reporting on any bugs or issues they've encountered.

This means the final version of macOS 10.14 Mojave will be largely free of showstopping bugs, so you should be able to download and install it without issue.

However, as the operating system is still so new, there may be some macOS 10.14 Mojave problems that are still present. If you're worried, it may be worth waiting a few weeks so that all the issues are fixed.

Even with no issues, updating to a new operating system is a big task, so make sure you follow our advice in this guide on how to download and install macOS 10.14 Mojave. It could save you valuable time and frustration later.

If you encounter any issues after installing the operating system, then visit our guide on how to fix macOS 10.14 Mojave problems.

Can your Mac run macOS 10.14 Mojave?

Before you begin to download the macOS 10.14 Mojave, you should make sure your Mac can run the software. Apple has said that macOS 10.14 will run on every Mac released from 2012 onwards, which means if you have Macs from before then, you're out of luck.

However, Apple has said that Mac Pro models from 2010 and 2012 will be supported, but not right away. You may have to wait until a later beta version.

These are the Macs that you can install macOS 10.14 Mojave on:

  • MacBook (Early 2015 or newer)
  • MacBook Air (Mid 2012 or newer)
  • MacBook Pro (Mid 2012 or newer)
  • Mac mini (Late 2012 or newer)
  • iMac (Late 2012 or newer)
  • iMac Pro (2017)
  • Mac Pro (Late 2013, plus mid 2010 and mid 2012 models with recommend Metal-capable GPU)

Back up your Mac before upgrading to macOS 10.14 Mojave

Whenever you upgrade your operating system – and especially when you’re trying out a new operating system that has just been released – we highly recommend backing up the files on your Mac, so if anything goes wrong you can quickly restore your machine to its previous working order.

So before you download and install macOS 10.14 Mojave, make sure your Mac is backed up. For information on how to do this, head over to our ultimate guide to backing up your Mac.

How to download macOS 10.14 Mojave

You can download and install macOS 10.14 Mojave from the App Store on your Mac. Open up the App Store in your current version of macOS, then search for macOS Mojave.

Click the button to install, and when a window appears, click 'Continue' to begin the process.

You can also visit the macOS Mojave website, which features a download link for installing the software onto compatible devices. This will download macOS Mojave into your Applications folder. Once completed, the installer will open, and you can follow the onscreen instructions to install macOS Mojave on your Mac.

You might be asked to sign in with an administrator name and password during the process, so make sure you have those to hand.

  • These are our top 50 best Mac tips
Active2 months ago

I'm trying to install APC for PHP 5.3 in the easiest way possible. I love Homebrew so I started down that route. I was able to install PHP 5.3.6 with this command:

I think this is supposed to install PHP, Pear, and PECL. It seems to install these just fine.

Install Pecl On Mac

Pecl

Now when I try to install APC:

How can I fix this?

fixer1234
22.2k14 gold badges56 silver badges89 bronze badges
AndrewAndrew
6,61228 gold badges63 silver badges80 bronze badges

5 Answers

Now homebrew-php has been migrated to homebrew-core and by default, PECL should be installed along with your PHP.

Here are the suggested steps:

  1. Reinstall PHP via: brew install php.
  2. Check pecl command by: which -a pecl.

To see which files were installed, see: brew list php.

To install PHP extensions, you need to use PECL as a recommended way.

With the migration to Homebrew-core the php formula has stopped taking over the role of PECL. Installing xdebug can (and should) be done through PECL. Source: GH-26007

For example: pecl install apc or pecl install xdebug.

Install pecl on mac windows 10

If you've got some problem installing the extension, you need to report it to its maintainer. Check PECL website for more details.

kenorbkenorb
13.1k18 gold badges88 silver badges133 bronze badges

pecl and pear are provided with Homebrew's version of PHP:

If you're weary that pecl and pear are provided by php, try this:

Both locations should symlink to Cellar/php/...

Note, macOS provides a php version which is generally behind that of Homebrew. To make sure you're running the Homebrew version, prefix your php commands with $(brew --prefix php)/bin.

Example for Composer:

The reason this is important is because common extensions -- such as ext-intl and ext-gettext are provided automatically and will fix these automatically.

Notice, for php-fpm, use brew reinstall php --with-fpm. The php-fpm path will be... $(brew --prefix php)/sbin/php-fpm.

tresftresf
GampeshGampesh

Pear is no longer compiled by default, instead you need to install php with the --with-pear option, such as: brew install php56 --with-pear.

So, to make PHP 7.0 work, use the following installation command:

brew install php70 --with-pear

You can of course use this with other versions of PHP, too.

floliloInstall
1,7811 gold badge9 silver badges21 bronze badges
MarkusMarkus

You do not need install apc.
Just add

to your php.ini and make sure that your apcu is ok.

zx485
1,8843 gold badges10 silver badges15 bronze badges

Install Pecl Mac Brew

user1067715user1067715

Install Pecl On Mac Pro

Not the answer you're looking for? Browse other questions tagged macphphomebrewpeclphp-apc or ask your own question.