DEV Community

H4Ck3R
H4Ck3R

Posted on

Fixing the Nokogiri/Gumbo Build Error on Termux (Metasploit 2026)

πŸš€ Fixing the Nokogiri/Gumbo Build Error on Termux (Metasploit 2026)

If you've tried installing Metasploit on Termux recently, you've likely hit the wall with Ruby 3.4.0. The automated build for native extensions like nokogiri fails because it can't find nokogiri_gumbo.h.


πŸ›  The Problem

The error fatal error: 'nokogiri_gumbo.h' file not found occurs because the Termux environment doesn't correctly pass temporary build paths to the compiler during a standard bundle install.


πŸ’‘ The Professional Solution

My latest project, Metasploit-Termux v2.5.0, automates a manual "Header Injection" technique. It unpacks the gem, injects the missing C-headers into the $PREFIX/include path, and forces a manual compilation before Bundler even starts.


πŸ“¦ Quick Installation

pkg update && pkg upgrade -y
pkg install git -y
git clone https://github.com/h4ck3r0/Metasploit-termux
cd Metasploit-termux
chmod +x metasploit.sh
./metasploit.sh
Enter fullscreen mode Exit fullscreen mode

πŸ”— Deep Dive & Full Tutorial

I’ve documented the entire architectural fix and the full installation steps over on my website:
πŸ‘‰ Read the Full Guide on H4Ck3R.me


Author: Raj Aryan (@h4ck3r0)

YouTube: H4Ck3R0 Official

Project: GitHub Repository

Top comments (0)