joyent/libuv

glibtoolize command not found when installing using autotools on OSX Mavericks

BioticPixels opened this issue · 5 comments

Using autotools on OSX Mavericks 10.9.2 to install libuv got this error message:

$ sh autogen.sh
+ glibtoolize
autogen.sh: line 43: glibtoolize: command not found

In autogen.sh, changing line 20 from LIBTOOLIZE=glibtoolize to LIBTOOLIZE=libtoolize fixed the problem.

(libtool-2.4.2 was installed using ./configure, make, make install on OSX Mavericks 10.9.2)

glibtoolize is widely used on OS X because bundled libtool is not GNU version and may cause fails for some Linux-specific software. But if it works for libuv, I think you can make a patch for autogen.sh that checks glibtoolize existence.

Well, the script already checks for the existence of the LIBTOOLIZE env variable and sets it to glibtoolize on OSX: https://github.com/joyent/libuv/blob/master/autogen.sh#L19

The common trend seems to be to prefix those system tools with a g to prevent them from collinding with the ones from the system.

IMHO the current approach is flexible enough for you to use it without modifying any line of code. You could just export the LIBTOOLIZE env variable pointing to your binary and things should just work.

Or brew install libtool.

We closed #1201 with no changes, closing this one as well.

That 'glibtoolize' also can be do not exist on my mac serira