urbanadventurer / WhatWeb

Next generation web scanner

Home Page:https://www.morningstarsecurity.com/research/whatweb

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No errors, can not make in macOS 12.4 (21F79)

hktalent opened this issue · comments

commented

image

$ sudo make install                 
# upgrade/installation will leave the my-plugins folder
rm -Rf /usr/bin/whatweb /usr/share/man/man1/whatweb.1 /usr/share/man/man1/whatweb.1.gz /usr/share/doc/whatweb /usr/share/whatweb/plugins-disabled /usr/share/whatweb/plugins /usr/share/whatweb/lib /usr/share/whatweb/plugin-development /usr/share/whatweb/addons
install -d /usr/share/man/man1
install: chmod 755 /usr/share/man/man1: Operation not permitted
install -p  -m 644 whatweb.1 /usr/share/man/man1/whatweb.1
install: /usr/share/man/man1/whatweb.1: Operation not permitted
make: *** [install] Error 71

Getting the same error on my mac. What was the solution?

commented

@TheSenPie
$ cat build.sh

gem install --user-install bundler
brew install ruby
brew link ruby
export PATH="/usr/local/opt/ruby/bin:$PATH"
export LDFLAGS="-L/usr/local/opt/ruby/lib"
export CPPFLAGS="-I/usr/local/opt/ruby/include"
export PKG_CONFIG_PATH="/usr/local/opt/ruby/lib/pkgconfig"
bundle install

image

commented

@bcoles @urbanadventurer
No errors, but the output whatweb executable is not compiled

uname -a
Darwin 123.local 21.5.0 Darwin Kernel Version 21.5.0: Tue Apr 26 21:08:22 PDT 2022; root:xnu-8020.121.3~4/RELEASE_X86_64 x86_64

ruby -v
ruby 2.6.5p114 (2019-10-01 revision 67812) [x86_64-darwin21]

brew install rbenv ruby-build
echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.bash_profile 
echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.zshrc 

export PATH="$PATH:/Users/51pwn/.rbenv/versions/2.6.5/bin/"
export LDFLAGS="-L/Users/51pwn/.rbenv/versions/2.6.5/lib"
export CPPFLAGS="-I/Users/51pwn/.rbenv/versions/2.6.5/include"

rbenv install 2.6.5
rbenv global 2.6.5

gem install bundler
bundle update
bundle install