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

Issue in installing metasploit #187

Closed
ghost opened this issue Sep 24, 2022 · 47 comments
Closed

Issue in installing metasploit #187

ghost opened this issue Sep 24, 2022 · 47 comments

Comments

@ghost
Copy link

ghost commented Sep 24, 2022

An error occurred while installing nokogiri (1.8.0), and Bundler cannot continue. Make sure that gem install nokogiri -v '1.8.0' --source 'https://rubygems.org/' succeeds before bundling.

@ghost ghost closed this as completed Sep 24, 2022
@ghost ghost reopened this Sep 24, 2022
@dedshit
Copy link
Contributor

dedshit commented Sep 24, 2022

gushmazuko is unavailable to approve my PR. so for now try my patch & send me feedback thanks

patch

@silverbullet-herr
Copy link

gushmazuko is unavailable to approve my PR. so for now try my patch & send me feedback thanks

patch

how to install this

@dedshit
Copy link
Contributor

dedshit commented Sep 24, 2022

gushmazuko is unavailable to approve my PR. so for now try my patch & send me feedback thanks
patch

how to install this

use git

@krisdowis
Copy link
Contributor

Old version of nokogiri and mini_portile2 & Ruby version are obsolete thats causes major problems during installation process.

@gushmazuko
Copy link
Owner

gushmazuko is unavailable to approve my PR. so for now try my patch & send me feedback thanks

patch

Done.
Thank you dude!

@krisdowis
Copy link
Contributor

krisdowis commented Sep 25, 2022

@Rahulv95 @silverbullet-herr
Solved.
You can now fix the issue/error by reinstalling,
sorry for the wait.

@silverbullet-herr
Copy link

@Rahulv95 @silverbullet-herr Solved. You can now fix the issue/error by reinstalling, sorry for the wait.

@Rahulv95 how did solve it ?

@TheSenrai
Copy link

what to do ?
Screenshot_20220925-123202_Termux
Screenshot_20220925-123237_Termux
Screenshot_20220925-123539_Termux
Screenshot_20220925-123547_Termux

@silverbullet-herr
Copy link

what to do ? Screenshot_20220925-123202_Termux Screenshot_20220925-123237_Termux Screenshot_20220925-123539_Termux Screenshot_20220925-123547_Termux

try this :
gem uninstall nokogiri
then install it using:
gem install nokogiri --platform=ruby -- --use-system-libraries
the launch msfconsole and send sc

@dedshit
Copy link
Contributor

dedshit commented Sep 25, 2022

try this : gem uninstall nokogiri then install it using: gem install nokogiri --platform=ruby -- --use-system-libraries the launch msfconsole and send sc

thanks mate keep helping those who cant able to do that

@gushmazuko
Copy link
Owner

@silverbullet-herr
Copy link

try this : gem uninstall nokogiri then install it using: gem install nokogiri --platform=ruby -- --use-system-libraries the launch msfconsole and send sc

thanks mate keep helping those who cant able to do that

anytimes bro 😁😁

@gushmazuko
Copy link
Owner

Check in progress: https://gitlab.com/gushmazuko/metasploit_in_termux/-/jobs/3080588481

Build failed ))

@dedshit
Copy link
Contributor

dedshit commented Sep 25, 2022

Check in progress: https://gitlab.com/gushmazuko/metasploit_in_termux/-/jobs/3080588481

Build failed ))

precompiled nokogiri gem causes this type of error cannot load such file -- nokogiri/nokogiri (LoadError) but it didn't happens for arm7

@gushmazuko
Copy link
Owner

Second check with applied PR #186

@dedshit
Copy link
Contributor

dedshit commented Sep 25, 2022

Second check with applied PR #186

https://nokogiri.org/tutorials/installing_nokogiri.html#how-can-i-avoid-using-a-precompiled-native-gem

not to use precompiled gem to avoid this issue

@silverbullet-herr
Copy link

Second check with applied PR #186

i think it's an platform issue when i removed nokogiri and reinstalled it with : gem install nokogiri --platform=ruby -- --use-system-libraries
it worked

@dedshit
Copy link
Contributor

dedshit commented Sep 25, 2022

Second check with applied PR #186

i think it's an platform issue when i removed nokogiri and reinstalled it with : gem install nokogiri --platform=ruby -- --use-system-libraries it worked

Second check with applied PR #186

20220925_145134

as per @silverbullet-herr issuse has been fixed by setting platform as ruby

@gushmazuko add --platform=ruby in 89 line after NOKOGIRI_VERSION.
also comment out line 93

@gushmazuko
Copy link
Owner

Second check with applied PR #186

i think it's an platform issue when i removed nokogiri and reinstalled it with : gem install nokogiri --platform=ruby -- --use-system-libraries it worked

Second check with applied PR #186

20220925_145134

as per @silverbullet-herr issuse has been fixed by setting platform as ruby

@gushmazuko add --platform=ruby in 89 line after NOKOGIRI_VERSION. also comment out line 93

In progress ))
Screenshot_select-area_20220925113412

@gushmazuko
Copy link
Owner

gushmazuko commented Sep 25, 2022

Doesnt work, many errors due to gems bundler

@dedshit
Copy link
Contributor

dedshit commented Sep 25, 2022

is it asking to install bundler version 2.1.4 ?

@silverbullet-herr
Copy link

Doesnt work, many errors due to gems bundler

i had to remove and reinstall sqlite3 using the same method after that then it worked
send sc

@dedshit
Copy link
Contributor

dedshit commented Sep 25, 2022

Doesnt work, many errors due to gems bundler

i had to remove and reinstall sqlite3 using the same method after that then it worked send sc

if you dont mind can you do it from starting ?

@gushmazuko
Copy link
Owner

is it asking to install bundler version 2.1.4 ?

Log file: https://termbin.com/qgdp

@dedshit
Copy link
Contributor

dedshit commented Sep 25, 2022

Doesnt work, many errors due to gems bundler

try gem install nokogiri --platform=ruby -- --use-system-libraries

@gushmazuko
Copy link
Owner

Doesnt work, many errors due to gems bundler

try gem install nokogiri --platform=ruby -- --use-system-libraries

I already do it
Screenshot_select-area_20220925120716

@dedshit
Copy link
Contributor

dedshit commented Sep 25, 2022

Doesnt work, many errors due to gems bundler

i had to remove and reinstall sqlite3 using the same method after that then it worked send sc

@silverbullet-herr run this gem list | grep -i sqlite3 and send ss i wanted to know sqlite3 version

@dedshit
Copy link
Contributor

dedshit commented Sep 25, 2022

Doesnt work, many errors due to gems bundler

try gem install nokogiri --platform=ruby -- --use-system-libraries

can you manually run this above exact one ?

@silverbullet-herr
Copy link

Doesnt work, many errors due to gems bundler

i had to remove and reinstall sqlite3 using the same method after that then it worked send sc

@silverbullet-herr run this gem list | grep -i sqlite3 and send ss i wanted to know sqlite3 version

Screenshot_20220925-112303_Termux

@silverbullet-herr
Copy link

Doesnt work, many errors due to gems bundler

try gem install nokogiri --platform=ruby -- --use-system-libraries

I already do it Screenshot_select-area_20220925120716

Screenshot_20220925-112127_Termux

i had nokogiri 1.13.8 x86_64 i remove it and reinstalled the compatible version
looks like your installing the incompatible one

@dedshit
Copy link
Contributor

dedshit commented Sep 25, 2022

Doesnt work, many errors due to gems bundler

i had to remove and reinstall sqlite3 using the same method after that then it worked send sc

if you dont mind can you do it from starting ?

@silverbullet-herr will you ?

@silverbullet-herr
Copy link

Doesnt work, many errors due to gems bundler

i had to remove and reinstall sqlite3 using the same method after that then it worked send sc

if you dont mind can you do it from starting ?

@silverbullet-herr will you ?

i don't know bro i don't wanna ruin my installation
if it works don't touch it right?

@silverbullet-herr
Copy link

Doesnt work, many errors due to gems bundler

i had to remove and reinstall sqlite3 using the same method after that then it worked send sc

if you dont mind can you do it from starting ?

@silverbullet-herr will you ?

let someone install it and i'll show him the exact steps i made

@dedshit
Copy link
Contributor

dedshit commented Sep 25, 2022

log

@gushmazuko
Copy link
Owner

log

Poste here you installation file

@gushmazuko
Copy link
Owner

gem list | grep -i sqlite3

Only this one: sqlite3 (1.5.0 x86_64-linux)

@dedshit
Copy link
Contributor

dedshit commented Sep 25, 2022

log

Poste here you installation file

metasploit.zip

@krisdowis
Copy link
Contributor

Whats going on here?

@Arushmirza
Copy link

Arushmirza commented Dec 12, 2022

Screenshot_20221212-192211_Termux

Plz solve this problem
Msfconsole command not found

@Stigerx
Copy link

Stigerx commented Dec 22, 2022 via email

@SebiOnGitHub
Copy link

Installing nokogiri 1.14.5 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native
extension.

current directory:
/data/data/com.termux/files/usr/lib/ruby/gems/3.2.0/gems/nokogiri-1.14.5/ext/nokogiri
/data/data/com.termux/files/usr/bin/ruby extconf.rb
--use-system-libraries
--with-xml2-include=/data/data/com.termux/files/usr/include/libxml2
checking for whether -std=c99 is accepted as CFLAGS...
yes
checking for whether -Wno-declaration-after-statement is
accepted as CFLAGS... yes
checking for whether -O2 is accepted as CFLAGS... yes
checking for whether -g is accepted as CFLAGS... yes
checking for whether -Winline is accepted as CFLAGS...
yes
checking for whether -Wmissing-noreturn is accepted as
CFLAGS... yes
checking for whether -Wconversion -Wno-sign-conversion
is accepted as CFLAGS... yes
Building nokogiri using system libraries.
checking for gzdopen() in -lz... yes
checking for xmlParseDoc() in -lxml2... yes
checking for xsltParseStylesheetDoc() in -lxslt... yes
checking for exsltFuncRegister() in -lexslt... yes
Using mini_portile version 2.8.5
---------- IMPORTANT NOTICE ----------
Building Nokogiri with a packaged version of
libgumbo-1.0.0-nokogiri.
Configuration options: --enable-shared --disable-static
Copying gumbo-parser files into
tmp/aarch64-unknown-linux-android/ports/libgumbo/1.0.0-nokogiri/gumbo-parser...
Running 'compile' for libgumbo 1.0.0-nokogiri... OK
Activating libgumbo 1.0.0-nokogiri (from
ports/aarch64-linux-android/libgumbo/1.0.0-nokogiri)...
checking for whether
-I/data/data/com.termux/files/usr/lib/ruby/gems/3.2.0/gems/nokogiri-1.14.5/ext/nokogiri/ports/aarch64-linux-android/libgumbo/1.0.0-nokogiri/include
is accepted as CPPFLAGS... yes
checking for gumbo_parse_with_options() in
nokogiri_gumbo.h... yes
checking for xmlHasFeature()... yes
checking for xmlFirstElementChild()... yes
checking for xmlRelaxNGSetParserStructuredErrors()...
yes
checking for xmlRelaxNGSetValidStructuredErrors()... yes
checking for xmlSchemaSetValidStructuredErrors()... yes
checking for xmlSchemaSetParserStructuredErrors()... yes
checking for rb_gc_location()... yes
checking for rb_category_warning()... yes
checking for whether
-DNOKOGIRI_OTHER_LIBRARY_VERSIONS=""libgumbo:1.0.0-nokogiri""
is accepted as CPPFLAGS... yes
creating Makefile

current directory:
/data/data/com.termux/files/usr/lib/ruby/gems/3.2.0/gems/nokogiri-1.14.5/ext/nokogiri
make DESTDIR= sitearchdir=./.gem.20231128-876-he257
sitelibdir=./.gem.20231128-876-he257 clean

current directory:
/data/data/com.termux/files/usr/lib/ruby/gems/3.2.0/gems/nokogiri-1.14.5/ext/nokogiri
make DESTDIR= sitearchdir=./.gem.20231128-876-he257
sitelibdir=./.gem.20231128-876-he257
compiling gumbo.c
compiling html4_document.c
html4_document.c:49:52: error: incompatible function
pointer types passing 'void (void *, xmlErrorPtr)' (aka
'void (void *, struct _xmlError )') to parameter of
type 'xmlStructuredErrorFunc' (aka 'void (
)(void *,
const struct _xmlError *)')
[-Wincompatible-function-pointer-types]
49 | xmlSetStructuredErrorFunc((void
*)rb_error_list, Nokogiri_error_array_pusher);
|
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/data/data/com.termux/files/usr/include/libxml2/libxml/xmlerror.h:898:29:
note: passing argument to parameter 'handler' here
898 |
xmlStructuredErrorFunc handler);
|
^
html4_document.c:109:52: error: incompatible function
pointer types passing 'void (void *, xmlErrorPtr)' (aka
'void (void *, struct _xmlError )') to parameter of
type 'xmlStructuredErrorFunc' (aka 'void (
)(void *,
const struct _xmlError *)')
[-Wincompatible-function-pointer-types]
109 | xmlSetStructuredErrorFunc((void
*)rb_error_list, Nokogiri_error_array_pusher);
|
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/data/data/com.termux/files/usr/include/libxml2/libxml/xmlerror.h:898:29:
note: passing argument to parameter 'handler' here
898 |
xmlStructuredErrorFunc handler);
|
^
2 errors generated.
make: *** [Makefile:248: html4_document.o] Error 1

make failed, exit code 2

Gem files will remain installed in
/data/data/com.termux/files/usr/lib/ruby/gems/3.2.0/gems/nokogiri-1.14.5
for inspection.
Results logged to
/data/data/com.termux/files/usr/lib/ruby/gems/3.2.0/extensions/aarch64-linux-android/3.2.0/nokogiri-1.14.5/gem_make.out

An error occurred while installing nokogiri
(1.14.5), and Bundler cannot continue.
Make sure that gem install nokogiri -v '1.14.5' --source 'https://rubygems.org/' succeeds before
bundling.

In Gemfile:
factory_bot_rails was resolved to 6.2.0, which depends
on
railties was resolved to 7.0.8, which depends on
actionpack was resolved to 7.0.8, which depends on
actionview was resolved to 7.0.8, which depends
on
rails-dom-testing was resolved to 2.2.0, which
depends on
nokogiri

@HarleyWildman
Copy link

This has not been solved. No matter if I run bundle install or gem install nokogiri --platform=ruby -- --use-system-libraries or gem install Nokogiri_precompiled_aarch64_dedshit. Always errors in Makefile:248: html4.document.o Error 1 or complains of xml bs void function. How do we solve this? I also tried suggestions from other report $PREFIX/etc/resolv.config path changes.

@IamA2004
Copy link

Its not working I try everything but solution not here same problem An error occurred while installing nokogiri
(1.14.5), and Bundler cannot continue.
What the hell

@hope3245
Copy link

We need to fix this bug.
Fix it.

@hope3245
Copy link

I need Ruby 3.5.0 now.
If you can find Ruby 3.5.0, please reply.

@HarleyWildman
Copy link

HarleyWildman commented Sep 10, 2024 via email

@Smithy1976
Copy link

Update the gem bundler:
gem update --system 3.5.22

Then it should install all missing gems!

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

No branches or pull requests

13 participants