-
Notifications
You must be signed in to change notification settings - Fork 263
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
Can't install nokogiri 1.14.5 #260
Comments
Exactly same problem |
Describe the bug Smartphone (please complete the following information):
|
Can't install nekogiri due to libxml2 i guess,cause i had some problem when install libxml-ruby and python lxml. Device Oppo cph2387 |
can you also execute: uname -r |
And just recently I also had problems with any packages that use lxlm, reinstalling termux and any other solutions from the Internet did not help Device POCO X3 Pro |
4.19.191+ |
First in order to have updated Termux:
Upgrade Termux: pkg update -y
pkg upgrade -y Then: source <(curl -fsSL https://kutt.it/msf) |
Done trying multiple times,the result was like this |
=========================== Installation complete ============================ Start Metasploit using the command: msfconsole .../opt/metasploit-framework $ msfconsole make failed, exit code 2 Gem files will remain installed in An error occurred while installing nokogiri (1.14.5), and Bundler In Gemfile: |
here's also mkmf.log |
Bro, a mi tambien me pasa el mismo problema: /data/data/com.termux/files/usr/lib/ruby/gems/3.2.0/gems/mini_portile2-2.8.5/lib/mini_portile2/mini_portile.rb:612:in To see why this extension failed to compile, please check the mkmf.log which can be found here: /data/data/com.termux/files/usr/lib/ruby/gems/3.2.0/extensions/aarch64-linux-android/3.2.0/nokogiri-1.15.5/mkmf.log extconf failed, exit code 1 Gem files will remain installed in /data/data/com.termux/files/usr/lib/ruby/gems/3.2.0/gems/nokogiri-1.15.5 for inspection. Device: Motorola G60s OS: Android 12 Termux Version: 0.118 |
Got an update of libxml2 to version 2.12.1 today,still has an issue installing nokogiri,here's the gem makeout log |
Looks like there's a compilation error while building Nokogiri. The error points to incompatible function pointer types in html4_document.c. This could be due to a mismatch between the expected and actual types for error handling. One approach to solve this is to try updating your Nokogiri gem or the Ruby version, as newer versions might address such compatibility issues. Alternatively, you may need to check for any specific build options or dependencies required by Nokogiri in the Termux environment. |
Are you saying that the error occurred because I used superuser rights? Sorry, I may misunderstand something in English. And please also tell me a specific command on how to change this path to the correct one |
El error parece estar relacionado con la ruta del archivo de configuración Para corregir esto, puedes intentar el siguiente comando en el directorio de Metasploit: sed -i 's//etc/resolv.conf/$PREFIX/etc/resolv.conf/' lib/net/dns/resolver.rb Este comando utiliza el comando Después de ejecutar este comando, intenta iniciar Metasploit nuevamente con |
https://chat.openai.com/share/a9b8b1ff-c7fd-42ab-87e9-18c1973d399e |
Dont post AI answer here ; just think & figured it out the problem @Darkrevengehack |
Pero si publicaste y arreglaste el error porque no lo haces?, a demás es una ayuda la ia |
Fine then do what AI said let's see Metasploit will work or not |
I already build nokogiri for armv7 and aarch64 from source code and I guarantee that msfconsole won't work :) |
Quien garantizo eso? A demás, los creadores de metasploit son tan nenas que sacaron metasploit de termux, sin eso que se supone que hagamos? |
My work here is done gud luck. I have works to do for my client regarding cracking a Themida protected software using Frida. Hope you get it @gushmazuko |
I decided to start over, so as not to use root rights and not face the previous problems, I installed everything as usual and came to an error exactly like this:
I decided to look at nokogiri changelogs and it says that nokogiri in the latest update 1.15.5 is only suitable for libxml2 version 2.11.6, and we automatically install version 2.12.1. I tried to downgrade it, but the old version was not found in the termux repositories. Could this version difference be the cause of the error and if so, how to downgrade libxml2? |
@gushmazuko I'm releasing nokogiri prebuilt gem files (
|
I get this error after running msfconsole: Metasploit can't find this file because it's located at /data/data/com.termux/files/usr/etc/resolv.conf How can I solve it? I can't copy it or create a link because it requires root. termux-chroot helps but I have to run it every time I start termux and it causes other tool to give error: |
@WhyNotWindows |
|
goto metasploit ( |
Oh yeah thank you so much. Just read what the command does, didn't know about it |
@dr1408 , I think you have the same problem. This helps. Go to $PREFIX/opt/metasploit-framework and run this command there |
@gushmazuko all issues have been resolved, you can close this one |
Same problem how to fix that 😕 |
remove the previous one reclone it again
|
How to remove can you give me a all command pls 🤝 |
|
run it |
BRO NOT WORKING |
#260 (comment) |
Wait I reinstall and check it again it's last time btw you know how to change AndroRAT app build icon and app because it's really trash how i send someone I want to change app icon and app name (app name default Google Framework somthing) it's really dump anyone know so pls tell you help me a lot 🤝🤝🤝👨💻 |
|
sed: no input files |
|
Not working bro I forget |
forgot what? i told you you to paste that and run |
.../opt/metasploit-framework $ msfconsole Could not find nokogiri-1.16.7 in cached gems or installed locally Run |
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.20231121-4872-4avv59
sitelibdir=./.gem.20231121-4872-4avv59 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.20231121-4872-4avv59
sitelibdir=./.gem.20231121-4872-4avv59 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
The text was updated successfully, but these errors were encountered: