wpscanteam / wpscan

WPScan WordPress security scanner. Written for security professionals and blog maintainers to test the security of their WordPress websites. Contact us via contact@wpscan.com
https://wpscan.com/wordpress-cli-scanner
Other
8.37k stars 1.24k forks source link

Failed to build gem native extension #1844

Open imranniazikhan opened 2 weeks ago

imranniazikhan commented 2 weeks ago

Before submitting an issue, please make sure you fully read any potential error messages output and did some research on your own.

Subject of the issue

Failed to build gem native extension

Your environment

Actual behavior

When i sudo gem install wpscan, it produce the following errors.

Tell us what happens instead. root@imran-VB:~# gem install wpscan Building native extensions. This could take a while... ERROR: Error installing wpscan: ERROR: Failed to build gem native extension.

current directory: /var/lib/gems/3.0.0/gems/yajl-ruby-1.4.3/ext/yajl

/usr/bin/ruby3.0 -I /usr/lib/ruby/vendor_ruby -r ./siteconf20240619-4753-2yzy62.rb extconf.rb creating Makefile

current directory: /var/lib/gems/3.0.0/gems/yajl-ruby-1.4.3/ext/yajl make DESTDIR\= clean

current directory: /var/lib/gems/3.0.0/gems/yajl-ruby-1.4.3/ext/yajl make DESTDIR\= compiling yajl.c make: x86_64-linux-gnu-gcc: No such file or directory make: *** [Makefile:245: yajl.o] Error 127

make failed, exit code 2

Gem files will remain installed in /var/lib/gems/3.0.0/gems/yajl-ruby-1.4.3 for inspection. Results logged to /var/lib/gems/3.0.0/extensions/x86_64-linux/3.0.0/yajl-ruby-1.4.3/gem_make.out

PLEASE HELP ME