-
Notifications
You must be signed in to change notification settings - Fork 177
installing dirb fails Errno::ENOTEMPTY #21
Comments
using mojave and having the same problem too. running brew install with verbose and debug switches on shows this: == all expected initial output == The why the command >> system "chmod", "-R", "744", "dirb222" did not take place at this time? I'm quite new to homebrew hence not sure how the homebrew formula steps is being carried out at this point of the execution. |
So no solution yet? |
On mac: It seems to be a permission issue, So I tried multiple things. The closest I got was by moving the archive to an accessible directory with Now the issue that you will face is that the checksum won't match up. Run This gets me past the error, but then the chmod breaks... so i don't know... I tried messing with the formula a little more, to no avail. Hopefully someone else can get us past this next hurdle. |
After following the steps above: I literally just changed the directories in the tap.rb to the full path in /private/tmp and got as far as it failing to link (at which point I just ran Seems to work. |
Exactly the same problem :~$brew install sidaf/pentest/dirb ==> Installing dirb from sidaf/pentest |
same -
|
No-one is going to fix it guys, look at the README just do it yourself. What to do is right here in the above posts :P |
@6661696c Can you elaborate your solution? Did it really work? |
Unextract, chmod, retar, change checksum, rename directory in tar.rb to where it actually is in /tmp/private, and after linking fails And it worked for me. |
The explanation that 6661696c provided is correct, but a bit short and confusing. If you have followed along to the explanation given by Ahren-Posthumus, you have come to a point where the following error occurs.
This is the error that we have to resolve. We resolve this by changing the following lines in /usr/local/Homebrew/Library/Taps/sidaf/homebrew-pentest/dirb.rb:
We change these line to:
In my case this fix worked and I can simply run |
I have forked this repo and got this issue fixed. If anybody want use it, try brew install swordfith/pentest/dirb pls. And I proposed a pull request, hope sidaf can accept that. |
@SwordFaith I believe you meant |
Thanks a lot mgoodric for this solution |
thanks a lot |
@SwordFaith Thank you so much, and I think you were right to issue a pull request. This is a major issue. @mgoodric Thanks so much for the typo solve. |
I'm using mojave
==> Installing sidaf/pentest/dirb
==> Downloading http://downloads.sourceforge.net/project/dirb/dirb/2.22/dirb222.tar.gz
==> Downloading from https://kent.dl.sourceforge.net/project/dirb/dirb/2.22/dirb222.tar.gz
######################################################################## 100.0%
cp: /private/tmp/d20181016-34625-11yurq4/dirb222/.: Permission denied
Error: An exception occurred within a child process:
Errno::ENOTEMPTY: Directory not empty @ dir_s_rmdir - /private/tmp/d20181016-34625-11yurq4
The text was updated successfully, but these errors were encountered: