Chmod a+x to all directory and content

chmod

I am trying to install a library called libtool

i am getting "./configure: line 2668: libltdl/config/mkstamp: Permission denied" when i do ./configure

how can i chmod a+x all the libtool directory to prevent this error ?

thanks

Best Answer

Be careful before making permissions changes so deep like this. Before you start, make a backup:
cd libtool
find . -printf "chmod %m %p\n" > ~/perms.txt
Then, to change to make the whole thing a+x (bad idea, but meh):
find . -exec chmod a+x '{}' \;

If anything goes wrong, you can always revert afterwards:
cat ~/perms.txt | bash