fozavci / viproy-voipkit

VIPROY - VoIP Pen-Test Kit for Metasploit Framework
Other
405 stars 106 forks source link

bundle install Failed to build gem native extension #18

Open aakilo opened 4 years ago

aakilo commented 4 years ago

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory: /var/lib/gems/2.7.0/gems/json-1.8.2/ext/json/ext/generator /usr/bin/ruby2.7 -I /usr/lib/ruby/2.7.0 -r ./siteconf20200822-3525-sz5rqg.rb extconf.rb creating Makefile

current directory: /var/lib/gems/2.7.0/gems/json-1.8.2/ext/json/ext/generator make "DESTDIR=" clean

current directory: /var/lib/gems/2.7.0/gems/json-1.8.2/ext/json/ext/generator make "DESTDIR=" compiling generator.c generator.c: In function ‘generate_json’: generator.c:867:25: error: ‘rb_cFixnum’ undeclared (first use in this function); did you mean ‘mFixnum’? 867 | } else if (klass == rb_cFixnum) { | ^~~~~~ | mFixnum generator.c:867:25: note: each undeclared identifier is reported only once for each function it appears in generator.c:869:25: error: ‘rb_cBignum’ undeclared (first use in this function); did you mean ‘mBignum’? 869 | } else if (klass == rb_cBignum) { | ^~~~~~ | mBignum make: *** [Makefile:245: generator.o] Error 1

make failed, exit code 2

Gem files will remain installed in /var/lib/gems/2.7.0/gems/json-1.8.2 for inspection. Results logged to /var/lib/gems/2.7.0/extensions/x86_64-linux/2.7.0/json-1.8.2/gem_make.out

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

In Gemfile: metasploit-framework-db was resolved to 4.11.3, which depends on metasploit-framework was resolved to 4.11.3, which depends on json

krzysmag321 commented 3 years ago

How to deal with this problem?