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

3 Answers 3

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

2
  • chmod -R is better and way less complicated
    – aspitzer
    Nov 19, 2010 at 21:35
  • That's already been mentioned on two other answers. You're right in that it's less complicated and faster, as were @skinp and @ramesh earlier.
    – James L
    Nov 19, 2010 at 22:31
4

Most version of chmod have a recursive flag:

chmod -R a+x folder
2
  • I have no idea why I forgot about that!
    – James L
    Nov 19, 2010 at 19:56
  • Is it possible to do that without crossing FileSystem boundaries ? I have a NFS mount somewhere in the folder tree that I don't want to chmod.
    – Natim
    Aug 8, 2013 at 15:42
0

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .