How to Install Pebble SDK on Mac

The easiest way to install the Pebble tool on OS X is through Homebrew. If you don’t have Homebrew installed, you can follow this tutorial.

How to Install HomeBrew on Mac

With Homebrew installed, you can install the Pebble tool with the following command:

brew install pebble/pebble-sdk/pebble-sdk

Installing Pebble SDK using HomeBrew

Pebble has a detailed guide available that you can follow. Once you have installed the Pebble tool, you will have the pebble command available to you from the command line. Running pebble --version shows the version information.

$ ~ pebble --version

Pebble Tool v4.2.1

The pebble command line interface includes several convenient commands. You can list these commands by running pebble --help or pebble -h.

I was getting the following error while installing Pebble SDK.

Error: The brew link step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink lib/libpng.a
/usr/local/lib is not writable.

You can try again using:
brew link libpng

The error doesn’t seem to be package specific but here’s the fix. The problem is that the directory Homebrew is trying to use isn’t writable by the user running brew. To fix this, make the directory writable by that user.

sudo chown -R yourusename:admin /usr/local/bin

Here’s the StackOverflow answer that helped me out.

This content has been helpful to you?

Thanks for contributing!

Yes No