Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install libuuid on Mac OS X?

Tags:

macos

gearman

I'm trying to compile gearman-0.28 on Mac, but encountered the following error:

configure: error: Unable to find libuuid

I don't know how to install libuuid on Mac, my Mac is 10.7.2 version. Any one can help me? Thanks in advance.

like image 498
ciphor Avatar asked Mar 19 '12 14:03

ciphor


2 Answers

With Homebrew:

brew install ossp-uuid
like image 82
Alexander Gladysh Avatar answered Oct 21 '22 21:10

Alexander Gladysh


For those who are trying to install the uuid extension from PECL, the ossp-uuid and the util-linux's uuid package shipped with Mac OSX will not work as they are out dated. You will need an updated version of uuid from util-linux. It is available on Homebrew.

brew install util-linux

But util-linux is a keg-only package and will not be symlinked to /usr/local. Hence you will have to specify the following path when prompted for uuid installation directory

/usr/local/opt/util-linux

For unattended installations, you can use

printf "/usr/local/opt/util-linux" | pecl install uuid
like image 37
Joyce Babu Avatar answered Oct 21 '22 21:10

Joyce Babu