Can’t exec “glibtoolize”: No such file or directory

command linehomebrewterminal

I have a shell script autogen.sh, I run it under my project directory in terminal:

./autogen.sh 

I get error:

Can't exec "glibtoolize": No such file or directory at
/usr/local/Cellar/autoconf/2.69/share/autoconf/Autom4te/FileUtils.pm
line 345, line 4.

Then, seems it can not find glibtoolize, so I tried to figure out where is my glibtoolize. Eventually, I find it is in this path:

/usr/local/Cellar/libtool/2.4.2/bin/glibtoolize

Then, I get stuck, how to solve my problem after I found my glibtoolize?

Best Answer

Looks like you already have libtool installed via brew but it is not linked so the required symlinks in /usr/local/bin are still missing. To create them,

brew link libtool