Tuesday, May 11, 2010

Gearman PECL package on Ubuntu Lucid Lynx oops

So I tried installing gearman today on Lucid.

To install it, i used this command:
aptitude install gearman libgearman-dev libgearman-client-async-perl libgearman-client-perl gearman-tools uuid-dev

Afterwards, tried to install the gearman PECL package:
pecl install channel://pecl.php.net/gearman-0.7.0

And got this error:
/bin/sed: can't read /usr/lib/libuuid.la: No such file or directory
libtool: link: `/usr/lib/libuuid.la' is not a valid libtool archive

After some googling, it turns out that .la files are now gone from many packages, as per this post on debian-devel list. Couldn't really find a good solution for this, so here it is:

Open /usr/lib/libgearman.la as root, and find a line that says:
dependency_libs=' -L/usr/lib /usr/lib/libuuid.la'

Replace it with:
dependency_libs=' -L/usr/lib -luuid'

Now run the pecl install again and you should be good.

Some more background info:

Hope this saves someone an hour..

2 comments: