Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation on macOS for 10.11 or newer fails #1286

Closed
rwkyyy opened this issue Feb 1, 2019 · 2 comments
Closed

Installation on macOS for 10.11 or newer fails #1286

rwkyyy opened this issue Feb 1, 2019 · 2 comments

Comments

@rwkyyy
Copy link

rwkyyy commented Feb 1, 2019

Subject of the issue

After installing cURL and starting the install via command
gem install wpscan
It will give an error for macOS 10.11 or newer due to Apple's System Integrity Protection (SIP).

Your environment

  • Version of WPScan: 3.4.3
  • Version of Ruby: 2.3.7p456
  • Operating System (OS): macOS 10.14.2 (Mojave)

Steps to reproduce

Try to install wpscan via terminal on macos 10.11 or newer.

Expected behavior

It should install

Actual behavior

It will throw an error
Gem::FilePermissionError
this is caused due to the fact that gem installation works in Apple's SIP area.

Solution

Solved it via
sudo gem install -n /usr/local/bin wpscan
Please update the docs, for this issue, because it was a pain for me and probably it will be for others.

Another solutions would be to disable Apple's SIP (reboot, cmd + r, open terminal and type csrutil disable - reboot and it's off)

p.s. Have to thank to who replied on twitter, it gave me the idea to check SIP status.

@erwanlr erwanlr closed this as completed in 9146609 Feb 3, 2019
@Tiposbingo
Copy link

I solve this problem - sudo xcode-select --install and then sudo gem install wpscan

@rwkyyy
Copy link
Author

rwkyyy commented Oct 9, 2019

@erwanlr on macOS 10.15 (Catalina) it doesn't work anymore, I guess it works only for 10.11-10.14, for 10.15 the solution proposed by @Tiposbingo works, just tried it and it's all good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants