错误:我正在尝试在termux上安装Metasploit

vmdwslir  于 2022-10-15  发布在  Ruby
关注(0)|答案(1)|浏览(711)
d/3.1.0/sqlite3-1.4.2/gem_make.out
u0_a334@localhost ~ [1]> 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 sqlite3-1.4.2 in any of the sources
Run `bundle install` to install missing gems.
u0_a334@localhost ~ [7]>
gem install sqlite3 --version 1.4.2

我收到以下错误

gem install sqlite3 --version 1.4.2
Building native extensions. This could take a while...
ERROR:  Error installing sqlite3:
        ERROR: Failed to build gem native extension.

    current directory: /data/data/com.termux/files/usr/lib/ruby/gems/3.1.0/gems/sqlite3-1.4.2/ext/sqlite3
/data/data/com.termux/files/usr/bin/ruby -I /data/data/com.termux/files/usr/lib/ruby/3.1.0 -r ./siteconf20221011-14040-6t920x.rb extconf.rb
checking for sqlite3.h... yes
checking for pthread_create() in -lpthread... yes
checking for -ldl... yes
checking for sqlite3_libversion_number() in -lsqlite3... yes
checking for rb_proc_arity()... yes
checking for rb_integer_pack()... yes
checking for sqlite3_initialize()... yes
checking for sqlite3_backup_init()... yes
checking for sqlite3_column_database_name()... yes
checking for sqlite3_enable_load_extension()... yes
checking for sqlite3_load_extension()... yes
checking for sqlite3_open_v2()... yes
checking for sqlite3_prepare_v2()... yes
checking for sqlite3_int64 in sqlite3.h... yes
checking for sqlite3_uint64 in sqlite3.h... yes
creating Makefile

current directory: /data/data/com.termux/files/usr/lib/ruby/gems/3.1.0/gems/sqlite3-1.4.2/ext/sqlite3
make DESTDIR\= clean

current directory: /data/data/com.termux/files/usr/lib/ruby/gems/3.1.0/gems/sqlite3-1.4.2/ext/sqlite3
make DESTDIR\=
compiling aggregator.c
compiling backup.c
compiling database.c
database.c:38:9: warning: unused variable 'flags' [-Wunused-variable]
  VALUE flags;
        ^
database.c:109:18: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  return INT2NUM((long)sqlite3_total_changes(ctx->db));
         ~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
database.c:150:67: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  VALUE result = rb_funcall(handle, rb_intern("call"), 1, INT2NUM((long)count));
                                                          ~~~~~~~ ^~~~~~~~~~~
database.c:395:18: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  return INT2NUM((long)sqlite3_errcode(ctx->db));
         ~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
database.c:726:57: warning: incompatible function pointer types passing 'int (VALUE, int, char**, char**)' (aka 'int (unsigned long, int, char**, char**)') to parameter of type 'int (*)(void *, int, char**, char**)' [-Wincompatible-function-pointer-types]
    status = sqlite3_exec(ctx->db, StringValuePtr(sql), hash_callback_function, callback_ary, &errMsg);
                                                        ^~~~~~~~~~~~~~~~~~~~~~
/data/data/com.termux/files/usr/include/sqlite3.h:428:9: note: passing argument to parameter 'callback' here
  int (*callback)(void*,int,char**,char**),  /* Callback function */
        ^
database.c:726:81: error: incompatible integer to pointer conversion passing 'VALUE' (aka 'unsigned long') to parameter of type 'void *' [-Wint-conversion]
    status = sqlite3_exec(ctx->db, StringValuePtr(sql), hash_callback_function, callback_ary, &errMsg);
                                                                                ^~~~~~~~~~~~
/data/data/com.termux/files/usr/include/sqlite3.h:429:9: note: passing argument to parameter here
  void *,                                    /* 1st argument to callback */
        ^
database.c:728:57: warning: incompatible function pointer types passing 'int (VALUE, int, char**, char**)' (aka 'int (unsigned long, int, char**, char**)') to parameter of type 'int (*)(void *, int, char**, char**)' [-Wincompatible-function-pointer-types]
    status = sqlite3_exec(ctx->db, StringValuePtr(sql), regular_callback_function, callback_ary, &errMsg);
                                                        ^~~~~~~~~~~~~~~~~~~~~~~~~
/data/data/com.termux/files/usr/include/sqlite3.h:428:9: note: passing argument to parameter 'callback' here
  int (*callback)(void*,int,char**,char**),  /* Callback function */
        ^
database.c:728:84: error: incompatible integer to pointer conversion passing 'VALUE' (aka 'unsigned long') to parameter of type 'void *' [-Wint-conversion]
    status = sqlite3_exec(ctx->db, StringValuePtr(sql), regular_callback_function, callback_ary, &errMsg);
                                                                                   ^~~~~~~~~~~~
/data/data/com.termux/files/usr/include/sqlite3.h:429:9: note: passing argument to parameter here
  void *,                                    /* 1st argument to callback */
        ^
6 warnings and 2 errors generated.
make:***[Makefile:246: database.o] Error 1

make failed, exit code 2

Gem files will remain installed in /data/data/com.termux/files/usr/lib/ruby/gems/3.1.0/gems/sqlite3-1.4.2 for inspection.
Results logged to /data/data/com.termux/files/usr/lib/ruby/gems/3.1.0/extensions/aarch64-linux-android/3.1.0/sqlite3-1.4.2/gem_make.out
qni6mghb

qni6mghb1#

我正在尝试使用TISH命令将Metasploit安装到

apt update & apt upgrade
pkg install wget curl openssh git -y
wget Auxilus.github.io/metasploit.sh
bash metasploit.sh
bundle install

我试过这个命令,工作也许能帮到你

相关问题