0

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

Utku Dalmaz
  • 1,329
  • 2
  • 13
  • 18

3 Answers3

4

Most version of chmod have a recursive flag:

chmod -R a+x folder
skinp
  • 749
  • 1
  • 7
  • 19
2

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

James L
  • 6,025
  • 1
  • 22
  • 26
0

chmod -R +x /path/to/folder will work though

Ramesh Kumar
  • 1,770
  • 5
  • 19
  • 29