gushmazuko / metasploit_in_termux

Install Metasploit Framework 6 in Termux

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Rishi9646 opened this issue · comments

~/metasploit_in_termux/metasploit-framework $ ./msfconsole
Calling DidYouMean::SPELL_CHECKERS.merge!(error_name => spell_checker)' has been deprecated. Please call DidYouMean.correct_error(error_name, spell_checker)' instead.
Could not find nio4r-2.5.8 in any of the sources
Run bundle install to install missing gems.
~/metasploit_in_termux/metasploit-framework $ bundle install
Calling DidYouMean::SPELL_CHECKERS.merge!(error_name => spell_checker)' has been deprecated. Please call DidYouMean.correct_error(error_name, spell_checker)' instead.
Fetching gem metadata from https://rubygems.org/.........
Using rake 13.0.6
Using Ascii85 1.1.0
Using concurrent-ruby 1.2.2
Using minitest 5.18.0
Using public_suffix 5.0.1
Using afm 0.2.2
Using mini_portile2 2.8.1
Using erubi 1.12.0
Using ast 2.4.2
Using aws-partitions 1.722.0
Using bcrypt 3.1.18
Using bcrypt_pbkdf 1.1.0
Using bindata 2.4.15
Using bson 4.15.0
Using bundler 2.1.4
Using byebug 11.1.3
Using chunky_png 1.4.0
Using coderay 1.1.3
Using cookiejar 0.3.3
Using daemons 1.4.1
Using io-console 0.6.0
Using diff-lcs 1.5.0
Using unf_ext 0.0.8.2
Using docile 1.4.0
Using ed25519 1.3.0
Using eventmachine 1.2.7
Using http_parser.rb 0.8.0
Using method_source 1.0.0
Using thor 1.2.1
Using rack 2.2.6.3
Using faraday-net_http 3.0.2
Using ruby2_keywords 0.0.5
Using websocket-extensions 0.1.5
Using ffi 1.15.5
Using filesize 0.2.0
Using fivemat 1.3.7
Using rexml 3.2.5
Using hashery 2.1.2
Using hrr_rb_ssh 0.4.2
Using httpclient 2.8.3
Using rkelly-remix 0.0.7
Using json 2.6.3
Using little-plugger 1.1.4
Using zeitwerk 2.6.7
Using memory_profiler 1.0.1
Using metasm 1.0.5
Using pg 1.4.6
Using webrick 1.7.0
Using net-ssh 7.0.1
Using rex-core 0.1.30
Using builder 3.2.4
Using rubyntlm 0.6.3
Using rubyzip 2.3.2
Using metasploit-payloads 2.0.122
Using metasploit_payloads-mettle 1.0.20
Using msgpack 1.6.1
Using nessus_rest 0.1.6
Using net-ldap 0.17.1
Using timeout 0.3.2
Using network_interface 0.0.2
Using nexpose 7.3.0
Using openssl-ccm 1.2.3
Using mqtt 0.6.0
Using openvas-omp 0.0.4
Using pcaprub 0.13.1
Using patch_finder 1.0.2
Using ruby-rc4 0.1.5
Using ttfunk 1.7.0
Using aws-eventstream 1.2.0
Using racc 1.6.2
Using strptime 0.2.5
Using rb-readline 0.5.5
Using rex-struct2 0.1.3
Using rex-java 0.1.6
Using rex-registry 0.1.4
Using ruby-macho 3.0.0
Using openssl-cmac 2.0.2
Using multi_json 1.15.0
Using tilt 2.1.0
Using sshkey 2.0.0
Using swagger-blocks 3.0.0
Using unix-crypt 1.3.0
Using win32api 0.1.0
Using nori 2.6.0
Using parallel 1.22.1
Using rainbow 3.1.1
Using regexp_parser 2.7.0
Using rspec-support 3.12.0
Using ruby-progressbar 1.13.0
Using unicode-display_width 2.4.2
Using ruby-prof 1.4.2
Using simplecov-html 0.12.3
Using timecop 0.9.6
Using i18n 1.12.0
Using tzinfo 2.0.6
Using addressable 2.8.1
Using sqlite3 1.6.1
Using parser 3.2.1.1
Using reline 0.3.2
Using unf 0.1.4
Using em-socksify 0.3.2
Using pry 0.14.2
Using rack-test 2.0.2
Using rack-protection 3.0.5
Using thin 1.8.1
Using warden 1.2.9
Using faraday 2.7.4
Using mustermann 3.0.0
Using windows_error 0.1.5
Using redcarpet 3.6.0
Using websocket-driver 0.7.5
Using gssapi 1.3.1
Using hrr_rb_ssh-ed25519 0.4.2
Using jsobfu 0.4.2
Using gyoku 1.4.0
Using xmlrpc 0.3.2
Using yard 0.9.28
Using rex-socket 0.1.49
Using net-protocol 0.2.1
Using packetfu 1.1.13
Using pdf-reader 2.11.0
Using nokogiri 1.14.2
Using aws-sigv4 1.5.2
Using rasn1 0.12.1
Using logging 2.3.1
Using activesupport 7.0.4.2
Using irb 1.6.3
Using simpleidn 0.2.1
Using domain_name 0.5.20190701
Using em-http-request 1.1.7
Using faker 3.1.1
Using tzinfo-data 1.2022.7
Using pry-byebug 3.10.1
Using rspec-core 3.12.1
Using rspec-expectations 3.12.2
Using rspec-mocks 3.12.3
Using rubocop-ast 1.27.0
Using simplecov 0.18.2
Using faraday-retry 2.1.0
Using sawyer 0.9.2
Fetching nio4r 2.5.8
Using rex-text 0.2.50
Using debug 1.7.1
Using dnsruby 1.61.9
Using factory_bot 6.2.1
Using faye-websocket 0.11.1
Using http-cookie 1.0.5
Using recog 3.0.3
Using net-smtp 0.3.3
Using octokit 4.25.1
Using ruby_smb 3.2.5
Using sinatra 3.0.5
Using winrm 2.3.6
Using rspec 3.12.0
Using rex-arch 0.1.14
Using rex-mime 0.1.7
Using activemodel 7.0.4.2
Using rails-dom-testing 2.0.3
Using rex-rop_builder 0.1.4
Using rex-sslscan 0.1.9
Using rex-zip 0.1.4
Using rspec-rerun 1.1.0
Using activerecord 7.0.4.2
Using rex-bin_tools 0.1.8
Using rex-encoder 0.1.6
Using rex-nop 0.1.2
Using xdr 3.0.3
Using arel-helpers 2.14.0
Using rex-exploitation 0.1.38
Using rex-ole 0.1.7
Using crass 1.0.6
Using rex-random_identifier 0.1.10
Using rubocop 1.48.0
Using loofah 2.19.1
Using rex-powershell 0.1.97
Using rails-html-sanitizer 1.5.0
Using jmespath 1.6.2
Using actionview 7.0.4.2
Using aws-sdk-core 3.170.0
Using actionpack 7.0.4.2
Using aws-sdk-ec2 1.368.0
Using aws-sdk-iam 1.75.0
Using railties 7.0.4.2
Using aws-sdk-kms 1.63.0
Using factory_bot_rails 6.2.0
Using aws-sdk-s3 1.119.1
Using metasploit-concern 5.0.1
Using rspec-rails 6.0.1
Using metasploit-model 5.0.1
Using metasploit_data_models 6.0.2
Using metasploit-credential 6.0.2
Installing nio4r 2.5.8 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/nio4r-2.5.8/ext/nio4r
/data/data/com.termux/files/usr/bin/ruby
extconf.rb
checking for unistd.h... yes
checking for linux/aio_abi.h... yes
checking for linux/io_uring.h... yes
checking for sys/select.h... yes
checking for port_event_t in poll.h... no
checking for sys/epoll.h... yes
checking for sys/event.h... no
checking for port_event_t in port.h... no
checking for sys/resource.h... yes
creating Makefile

current directory:
/data/data/com.termux/files/usr/lib/ruby/gems/3.2.0/gems/nio4r-2.5.8/ext/nio4r
make DESTDIR=
sitearchdir=./.gem.20230411-11838-jk1ev4
sitelibdir=./.gem.20230411-11838-jk1ev4 clean

current directory:
/data/data/com.termux/files/usr/lib/ruby/gems/3.2.0/gems/nio4r-2.5.8/ext/nio4r
make DESTDIR=
sitearchdir=./.gem.20230411-11838-jk1ev4
sitelibdir=./.gem.20230411-11838-jk1ev4
compiling bytebuffer.c
bytebuffer.c:308:20: warning: implicit
conversion loses integer precision: 'ssize_t'
(aka 'long') to 'int' [-Wshorten-64-to-32]
return INT2NUM(bytes_read);
~~~~~~~ ^~~~~~~~~~
bytebuffer.c:338:20: warning: implicit
conversion loses integer precision: 'ssize_t'
(aka 'long') to 'int' [-Wshorten-64-to-32]
return INT2NUM(bytes_written);
~~~~~~~ ^~~~~~~~~~~~~
2 warnings generated.
compiling monitor.c
monitor.c:185:40: warning: implicit conversion
loses integer precision: 'VALUE' (aka 'unsigned
long') to 'int' [-Wshorten-64-to-32]
NIO_Monitor_update_interests(self,
interest);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~
monitor.c:196:40: warning: implicit conversion
loses integer precision: 'VALUE' (aka 'unsigned
long') to 'int' [-Wshorten-64-to-32]
NIO_Monitor_update_interests(self,
interest);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~
2 warnings generated.
compiling monitor.c
monitor.c:185:40: warning: implicit conversion
loses integer precision: 'VALUE' (aka 'unsigned
long') to 'int' [-Wshorten-64-to-32]
NIO_Monitor_update_interests(self,
interest);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~
monitor.c:196:40: warning: implicit conversion
loses integer precision: 'VALUE' (aka 'unsigned
long') to 'int' [-Wshorten-64-to-32]
NIO_Monitor_update_interests(self,
interest);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~
2 warnings generated.
compiling nio4r_ext.c
In file included from nio4r_ext.c:6:
./../libev/ev.c:234:5: warning: 'EV_NO_THREADS'
is not defined, evaluates to 0 [-Wundef]
#if EV_NO_THREADS
^
./../libev/ev.c:240:5: warning: 'EV_NO_SMP' is
not defined, evaluates to 0 [-Wundef]
#if EV_NO_SMP
^
./../libev/ev.c:292:17: warning: 'GLIBC' is
not defined, evaluates to 0 [-Wundef]

if __linux && GLIBC == 2 &&

GLIBC_MINOR < 17
^
./../libev/ev.c:321:6: warning:
'_POSIX_C_SOURCE' is not defined, evaluates to 0
[-Wundef]

if _POSIX_C_SOURCE >= 199309L

 ^

./../libev/ev.c:365:18: warning: 'GLIBC' is
not defined, evaluates to 0 [-Wundef]

if __linux && (GLIBC > 2 || (GLIBC ==

2 && GLIBC_MINOR >= 4))
^
./../libev/ev.c:365:36: warning: 'GLIBC' is
not defined, evaluates to 0 [-Wundef]

if __linux && (GLIBC > 2 || (GLIBC ==

2 && GLIBC_MINOR >= 4))
^
./../libev/ev.c:381:18: warning: 'GLIBC' is
not defined, evaluates to 0 [-Wundef]

if __linux && (GLIBC > 2 || (GLIBC ==

2 && GLIBC_MINOR >= 7))
^
./../libev/ev.c:381:36: warning: 'GLIBC' is
not defined, evaluates to 0 [-Wundef]

if __linux && (GLIBC > 2 || (GLIBC ==

2 && GLIBC_MINOR >= 7))
^
./../libev/ev.c:389:18: warning: 'GLIBC' is
not defined, evaluates to 0 [-Wundef]

if __linux && (GLIBC > 2 || (GLIBC ==

2 && GLIBC_MINOR >= 7))
^
./../libev/ev.c:389:36: warning: 'GLIBC' is
not defined, evaluates to 0 [-Wundef]

if __linux && (GLIBC > 2 || (GLIBC ==

2 && GLIBC_MINOR >= 7))
^
./../libev/ev.c:397:18: warning: 'GLIBC' is
not defined, evaluates to 0 [-Wundef]

if __linux && (GLIBC > 2 || (GLIBC ==

2 && GLIBC_MINOR >= 8))
^
./../libev/ev.c:397:36: warning: 'GLIBC' is
not defined, evaluates to 0 [-Wundef]

if __linux && (GLIBC > 2 || (GLIBC ==

2 && GLIBC_MINOR >= 8))
^
./../libev/ev.c:573:48: warning: '/' within
block comment [-Wcomment]
/
#define MIN_INTERVAL 0.00000095367431640625
/* 1/2**20, good till 2200 /
^
./../libev/ev.c:691:7: warning:
'OPTIMIZE_SIZE' is not defined, evaluates to
0 [-Wundef]
#if OPTIMIZE_SIZE
^
./../libev/ev.c:699:5: warning: '__amd64' is not
defined, evaluates to 0 [-Wundef]
#if ECB_GCC_AMD64 || ECB_MSVC_AMD64
^
./../libev/ev.c:687:24: note: expanded from
macro 'ECB_GCC_AMD64'
#define ECB_GCC_AMD64 (__amd64 || amd64 ||
__x86_64 || x86_64)
^
./../libev/ev.c:699:5: warning: 'amd64' is
not defined, evaluates to 0 [-Wundef]
./../libev/ev.c:687:35: note: expanded from
macro 'ECB_GCC_AMD64'
#define ECB_GCC_AMD64 (__amd64 || amd64 ||
__x86_64 || x86_64)
^
./../libev/ev.c:699:5: warning: '__x86_64' is
not defined, evaluates to 0 [-Wundef]
./../libev/ev.c:687:48: note: expanded from
macro 'ECB_GCC_AMD64'
#define ECB_GCC_AMD64 (__amd64 || amd64 ||
__x86_64 || x86_64)
^
./../libev/ev.c:699:5: warning: 'x86_64' is
not defined, evaluates to 0 [-Wundef]
./../libev/ev.c:687:60: note: expanded from
macro 'ECB_GCC_AMD64'
#define ECB_GCC_AMD64 (__amd64 || amd64 ||
__x86_64 || x86_64)
^
./../libev/ev.c:1542:8: warning: 'powerpc'
is not defined, evaluates to 0 [-Wundef]
|| powerpc || ppc || powerpc64
|| ppc64
^
./../libev/ev.c:1542:23: warning: 'ppc' is
not defined, evaluates to 0 [-Wundef]
|| powerpc || ppc || powerpc64
|| ppc64
^
./../libev/ev.c:1542:34: warning:
'powerpc64' is not defined, evaluates to 0
[-Wundef]
|| powerpc || ppc || powerpc64
|| ppc64
^
./../libev/ev.c:1542:51: warning: 'ppc64' is
not defined, evaluates to 0 [-Wundef]
|| powerpc || ppc || powerpc64
|| ppc64
^
./../libev/ev.c:1510:13: warning: comparison of
integers of different signs: 'unsigned int' and
'int' [-Wsign-compare]
if (e < (14 - 24)) /
might not be sharp,
but is good enough */
~ ^ ~~~~~~~
./../libev/ev.c:1746:5: warning:
'ECB_MEMORY_FENCE_NEEDS_PTHREADS' is not
defined, evaluates to 0 [-Wundef]
#if ECB_MEMORY_FENCE_NEEDS_PTHREADS
^
./../libev/ev.c:1786:28: warning: 'ECB_AMD64' is
not defined, evaluates to 0 [-Wundef]
#if GNUC && __linux && ECB_AMD64 &&
!EV_FEATURE_CODE
^
./../libev/ev.c:1976:5: warning:
'EV_AVOID_STDIO' is not defined, evaluates to 0
[-Wundef]
#if EV_AVOID_STDIO
^
./../libev/ev.c:2005:5: warning:
'EV_AVOID_STDIO' is not defined, evaluates to 0
[-Wundef]
#if EV_AVOID_STDIO
^
./../libev/ev.c:2050:5: warning:
'EV_AVOID_STDIO' is not defined, evaluates to 0
[-Wundef]
#if EV_AVOID_STDIO
^
./../libev/ev.c:2080:5: warning:
'EV_SELECT_IS_WINSOCKET' is not defined,
evaluates to 0 [-Wundef]
#if EV_SELECT_IS_WINSOCKET || EV_USE_IOCP
^
./../libev/ev.c:2080:31: warning: 'EV_USE_IOCP'
is not defined, evaluates to 0 [-Wundef]
#if EV_SELECT_IS_WINSOCKET || EV_USE_IOCP
^
./../libev/ev.c:2083:5: warning: 'EV_USE_IOCP'
is not defined, evaluates to 0 [-Wundef]
#if EV_USE_IOCP
^
In file included from nio4r_ext.c:6:
In file included from ./../libev/ev.c:2130:
./../libev/ev_vars.h:83:22: warning:
'EV_GENWRAP' is not defined, evaluates to 0
[-Wundef]
#if EV_USE_SELECT || EV_GENWRAP
^
./../libev/ev_vars.h:150:22: warning:
'EV_GENWRAP' is not defined, evaluates to 0
[-Wundef]
#if EV_USE_KQUEUE || EV_GENWRAP
^
./../libev/ev_vars.h:159:20: warning:
'EV_GENWRAP' is not defined, evaluates to 0
[-Wundef]
#if EV_USE_PORT || EV_GENWRAP
^
./../libev/ev_vars.h:164:5: warning:
'EV_USE_IOCP' is not defined, evaluates to 0
[-Wundef]
#if EV_USE_IOCP || EV_GENWRAP
^
./../libev/ev_vars.h:164:20: warning:
'EV_GENWRAP' is not defined, evaluates to 0
[-Wundef]
#if EV_USE_IOCP || EV_GENWRAP
^

./../libev/ev_vars.h:216:23: warning:
'EV_GENWRAP' is not defined, evaluates to 0
[-Wundef]
#if EV_USE_INOTIFY || EV_GENWRAP
^
./../libev/ev_vars.h:224:24: warning:
'EV_GENWRAP' is not defined, evaluates to 0
[-Wundef]
#if EV_USE_SIGNALFD || EV_GENWRAP
^
./../libev/ev_vars.h:230:23: warning:
'EV_GENWRAP' is not defined, evaluates to 0
[-Wundef]
#if EV_USE_TIMERFD || EV_GENWRAP
^
In file included from nio4r_ext.c:6:
./../libev/ev.c:2136:31: warning: 'extern'
variable has an initializer
[-Wextern-initializer]
EV_API_DECL struct ev_loop
ev_default_loop_ptr = 0; / needs to be
initialised to make it a definition despite
extern */
^
./../libev/ev.c:2249:19: warning: comparison of
integers of different signs: 'int' and 'unsigned
long' [-Wsign-compare]
if (elem * ncur > MALLOC_ROUND - sizeof (void
*) * 4)

./../libev/ev.c:2402:5: warning:
'EV_SELECT_IS_WINSOCKET' is not defined,
evaluates to 0 [-Wundef]
#if EV_SELECT_IS_WINSOCKET || EV_USE_IOCP
^
./../libev/ev.c:2402:31: warning: 'EV_USE_IOCP'
is not defined, evaluates to 0 [-Wundef]
#if EV_SELECT_IS_WINSOCKET || EV_USE_IOCP
^
./../libev/ev.c:2619:18: warning: implicit
conversion loses integer precision: 'long' to
'int' [-Wshorten-64-to-32]
k = minpos - heap;
~ ~~~~~~~^~~~~~
./../libev/ev.c:3073:5: warning: 'EV_USE_IOCP'
is not defined, evaluates to 0 [-Wundef]
#if EV_USE_IOCP
^
In file included from nio4r_ext.c:6:
In file included from ./../libev/ev.c:3086:
./../libev/ev_linuxaio.c:125:10: warning:
implicit conversion loses integer precision:
'long' to 'int' [-Wshorten-64-to-32]
return ev_syscall2 (SYS_io_setup, nr_events,
ctx_idp);

^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./../libev/ev.c:1826:57: note: expanded from
macro 'ev_syscall2'
#define ev_syscall2(nr,arg1,arg2)
syscall (nr, arg1, arg2)
^~~~~~~~~~~~~~~~~~~~~~~~
In file included from nio4r_ext.c:6:
In file included from ./../libev/ev.c:3086:
./../libev/ev_linuxaio.c:132:10: warning:
implicit conversion loses integer precision:
'long' to 'int' [-Wshorten-64-to-32]
  return ev_syscall1 (SYS_io_destroy, ctx_id);
  ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./../libev/ev.c:1825:57: note: expanded from
macro 'ev_syscall1'
#define ev_syscall1(nr,arg1)
syscall (nr, arg1)
^~~~~~~~~~~~~~~~~~
In file included from nio4r_ext.c:6:
In file included from ./../libev/ev.c:3086:
./../libev/ev_linuxaio.c:139:10: warning:
implicit conversion loses integer precision:
'long' to 'int' [-Wshorten-64-to-32]
return ev_syscall3 (SYS_io_submit, ctx_id, nr,
cbp);

^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./../libev/ev.c:1827:57: note: expanded from
macro 'ev_syscall3'
#define ev_syscall3(nr,arg1,arg2,arg3)
syscall (nr, arg1, arg2, arg3)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from nio4r_ext.c:6:
In file included from ./../libev/ev.c:3086:
./../libev/ev_linuxaio.c:146:10: warning:
implicit conversion loses integer precision:
'long' to 'int' [-Wshorten-64-to-32]
return ev_syscall3 (SYS_io_cancel, ctx_id,
cbp, result);

^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./../libev/ev.c:1827:57: note: expanded from
macro 'ev_syscall3'
#define ev_syscall3(nr,arg1,arg2,arg3)
syscall (nr, arg1, arg2, arg3)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from nio4r_ext.c:6:
In file included from ./../libev/ev.c:3086:
./../libev/ev_linuxaio.c:146:10: warning:
implicit conversion loses integer precision:
'long' to 'int' [-Wshorten-64-to-32]
return ev_syscall3 (SYS_io_cancel, ctx_id,
cbp, result);

^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./../libev/ev.c:1827:57: note: expanded from
macro 'ev_syscall3'
#define ev_syscall3(nr,arg1,arg2,arg3)
syscall (nr, arg1, arg2, arg3)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from nio4r_ext.c:6:
In file included from ./../libev/ev.c:3086:
./../libev/ev_linuxaio.c:153:10: warning:
implicit conversion loses integer precision:
'long' to 'int' [-Wshorten-64-to-32]
return ev_syscall5 (SYS_io_getevents, ctx_id,
min_nr, nr, events, timeout);

^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./../libev/ev.c:1829:57: note: expanded from
macro 'ev_syscall5'
#define
ev_syscall5(nr,arg1,arg2,arg3,arg4,arg5)
syscall (nr, arg1, arg2, arg3, arg4, arg5)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from nio4r_ext.c:6:
In file included from ./../libev/ev.c:3086:
./../libev/ev_linuxaio.c:310:26: warning:
implicit conversion loses integer precision:
'__s64' (aka 'long long') to 'int'
[-Wshorten-64-to-32]
      int res      = ev->res;
          ~~~        ~~~~^~~
./../libev/ev_linuxaio.c:483:9: warning: add
explicit braces to avoid dangling else
[-Wdangling-else]
        else if (errno == EAGAIN)
        ^
In file included from nio4r_ext.c:6:
In file included from ./../libev/ev.c:3089:
./../libev/ev_iouring.c:205:10: warning:
implicit conversion loses integer precision:
'long' to 'int' [-Wshorten-64-to-32]
return ev_syscall2 (SYS_io_uring_setup,
entries, params);

^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./../libev/ev.c:1826:57: note: expanded from
macro 'ev_syscall2'
#define ev_syscall2(nr,arg1,arg2)
syscall (nr, arg1, arg2)
^~~~~~~~~~~~~~~~~~~~~~~~
In file included from nio4r_ext.c:6:
In file included from ./../libev/ev.c:3089:
./../libev/ev_iouring.c:212:10: warning:
implicit conversion loses integer precision:
'long' to 'int' [-Wshorten-64-to-32]
return ev_syscall6 (SYS_io_uring_enter, fd,
to_submit, min_complete, flags, sig, sigsz);

^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./../libev/ev.c:1830:57: note: expanded from
macro 'ev_syscall6'
#define
ev_syscall6(nr,arg1,arg2,arg3,arg4,arg5,arg6)
syscall (nr, arg1, arg2, arg3, arg4, arg5,arg6)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from nio4r_ext.c:6:
In file included from ./../libev/ev.c:3089:
./../libev/ev_iouring.c:298:31: warning: '/*'
within block comment [-Wcomment]
/*ECB_MEMORY_FENCE_RELEASE; /* for the time
being we assume this is not needed */
                              ^
./../libev/ev_iouring.c:293:22: warning:
implicit conversion loses integer precision:
'long' to 'unsigned int' [-Wshorten-64-to-32]
  unsigned idx = sqe - EV_SQES;
           ~~~   ~~~~^~~~~~~~~
./../libev/ev_iouring.c:359:5: warning: 'TODO'
is not defined, evaluates to 0 [-Wundef]
#if TODO
    ^
In file included from nio4r_ext.c:6:
./../libev/ev.c:3318:5: warning: 'EV_USE_IOCP'
is not defined, evaluates to 0 [-Wundef]
#if EV_USE_IOCP
    ^
./../libev/ev.c:3409:5: warning: 'EV_USE_IOCP'
is not defined, evaluates to 0 [-Wundef]
#if EV_USE_IOCP
    ^
./../libev/ev.c:4417:34: warning: '&' within '|'
[-Wbitwise-op-parentheses]
fd_change (EV_A_ fd, w->events & EV__IOFDSET |
EV_ANFD_REIFY);
                       ~~~~~~~~~~^~~~~~~~~~~~~ ~
./../libev/ev.c:4417:34: note: place parentheses
around the '&' expression to silence this
warning
fd_change (EV_A_ fd, w->events & EV__IOFDSET |
EV_ANFD_REIFY);
                                 ^
                       (                      )
100 warnings generated.
compiling selector.c
selector.c:301:26: error: incompatible function
pointer types passing 'VALUE (*)(VALUE *)' (aka
'unsigned long (*)(unsigned long *)') to
parameter of type 'VALUE (*)(VALUE)' (aka
'unsigned long (*)(unsigned long)')
[-Wincompatible-function-pointer-types]
return rb_ensure(func, (VALUE)args,
NIO_Selector_unlock, self);
                         ^~~~
/data/data/com.termux/files/usr/include/ruby-3.2.0/ruby/internal/iterator.h:425:25:
note: passing argument to parameter 'b_proc'
here
VALUE rb_ensure(VALUE (*b_proc)(VALUE), VALUE
data1, VALUE (*e_proc)(VALUE), VALUE data2);
                        ^
1 error generated.
make: *** [Makefile:248: selector.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/nio4r-2.5.8
for inspection.
Results logged to
/data/data/com.termux/files/usr/lib/ruby/gems/3.2.0/extensions/aarch64-linux-android/3.2.0/nio4r-2.5.8/gem_make.out

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

In Gemfile:
metasploit-framework was resolved to 6.3.12,
which depends on
    puma was resolved to 6.1.1, which depends on
      nio4r

**Smartphone (please complete the following information):**
 - Device: [Vivo Z1 pro]
 - OS: [ Android 11]

Please kindly solve my problem. I have many times termux install uninstall but everytime I facing problem run the bundle install and everytime output is come 
An error occurred while installing
nio4r (2.5.8), and Bundler cannot continue.
Make sure that `gem install nio4r -v '2.5.8'
--source 'https://rubygems.org/'` succeeds
before bundling.

In Gemfile:
metasploit-framework was resolved to 6.3.12,
which depends on
    puma was resolved to 6.1.1, which depends on
      nio4r

https://youtu.be/MLHOBuH-mhE All errors solved

I have already tried it. But problem is not solving

commented

https://youtu.be/MLHOBuH-mhE All errors solved

I have already tried it. But problem is not solving

You have not tried it I can say that for sure because the script given in that video installs nio4r 2.5.9 instead of nio4r 2.5.8

Hey how do i

https://youtu.be/MLHOBuH-mhE All errors solved

I have already tried it. But problem is not solving

You have not tried it I can say that for sure because the script given in that video installs nio4r 2.5.9 instead of nio4r 2.5.8

https://youtu.be/MLHOBuH-mhE All errors solved

I have already tried it. But problem is not solving

How do i hide the metasploit-framework

Fixed in latest update 47ea57e
Just update your Termux and reinstall:

source <(curl -fsSL https://kutt.it/msf)