Install GMP on Ubuntu

If you’re trying to install the Open ID PHP library the first thing you hit is:

1. Install dependencies.
- Enable either the GMP extension or Bcmath extension. (GMP is
 STRONGLY recommended because it's MUCH faster!) This is
 required.

All my attempts to find how to install GMP on Ubuntu led me to long pages of having to compile libraries and re-compile PHP. Whilst they were doing their bit at the time it really is much easier now. Ubuntu has the php5-gmp library included, so you can just use apt-get.

$ sudo apt-get install php5-gmp

Bosh. Happy days. Thanks to the Joys of Programming for showing me the way.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s