Comments (5)
I tested this on Kali 2.0 and ran into the same problems. Unfortunately, this dependency hell is hard to solve.
As jsdetox should be used in a virtual machine anyway, I would recommend to use an Ubuntu 14.04 LTS installation.
On Kali 2.0, you could try to replace the line
gem 'therubyracer', '0.9.8'
in the Gemfile
with
gem 'therubyracer'
.
That way bundle install
should work, but the v8 integration (for executing and tracing javascript code) will be somehow broken.
from jsdetox.
It seems that the ruby gem 'therubyracer' has a problem with an already installed version of the gem 'libv8'. I cannot reproduce this problem right now, but removing libv8 and reinstalling therubyracer might solve to problem:
$ gem uninstall libv8
$ gem install therubyracer
Please note that this might have side effects on other programs depending on a specific version of libv8.
Sources:
rubyjs/therubyracer#166
http://stackoverflow.com/questions/14893272/an-error-occurred-while-installing-therubyracer-0-10-1
from jsdetox.
Thanks for looking at this. Here's what I have:
/var/lib/gems/1.9.1/gems/libv8-3.16.14.7-x86_64-linux
/var/lib/gems/1.9.1/gems/libv8-3.3.10.4-x86_64-linux
To be honest I'm not sure if SIFT or Remnux installed this. In either case I will give the remove and install a go...thank you.
from jsdetox.
When I trying to bundle install
it gives the same error. I'm trying to install it on Kali 2.0.
I follow the steps you mention above, unisntall libv8 and then install therubyracer but it still gives an error.
Fetching gem metadata from https://rubygems.org/...........
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Resolving dependencies......
Using rake 10.5.0
Using i18n 0.7.0
Using multi_json 1.11.2
Using bundler 1.11.2
Using haml 3.1.8
Using hexdump 0.2.3
Using rack 1.6.4
Using json 1.8.3
Installing libv8 3.3.10.4
Using mime-types 1.25.1
Using polyglot 0.3.5
Using mini_portile2 2.0.0
Using tilt 1.3.7
Using thor 0.15.4
Using sass 3.4.21
Using activesupport 3.2.22.1
Using url_mount 0.2.1
Using rack-protection 1.5.3
Installing therubyracer 0.9.8 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/usr/bin/ruby2.1 extconf.rb
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/bin/ruby2.1
extconf.rb:15:in `<main>': undefined method `include_path' for Libv8:Module (NoMethodError)
extconf failed, exit code 1
Gem files will remain installed in /var/lib/gems/2.1.0/gems/therubyracer-0.9.8 for inspection.
Results logged to /var/lib/gems/2.1.0/extensions/x86_64-linux/2.1.0/therubyracer-0.9.8/gem_make.out
Using treetop 1.4.15
Using nokogiri 1.6.7.2
Using http_router 0.10.2
Using sinatra 1.3.6
An error occurred while installing therubyracer (0.9.8), and Bundler cannot continue.
Make sure that `gem install therubyracer -v '0.9.8'` succeeds before bundling.
This is first error. When I apply the steps and trying to execute jsdetox, it still says there is a missing gems.
./jsdetox
[JSDetox] Loading framework ... Could not find gem 'therubyracer (= 0.9.8) ruby' in the gems available on this machine.
Run `bundle install` to install missing gems.
How should I fix this?
from jsdetox.
Thanks for sparing time. I use it on Ubuntu as you said.
from jsdetox.
Related Issues (20)
- Include external javascript resources HOT 1
- Port this tool to firebug HOT 1
- Error parsing javascript HOT 1
- Parsing issues with 0.2.1 HOT 5
- OSX installation HOT 1
- g++4 command not found: while trying to install therubyracer -v '0.9.8' HOT 1
- Bundle install fails on i18n in OS X 10.8.5 HOT 1
- Parsing Javascript issue. HOT 1
- error when running HOT 1
- Incorporating latest V8 engine to ECMA-2015? HOT 2
- document.createElement
- Analysis button gets stucked at "loading..." HOT 3
- Fresh installation with 500 error: undefined method `join' for #<String:0x00000003d148d8> HOT 1
- Stack limit exceeded
- Is this project dead? HOT 2
- Installation fails on Ubuntu 14.04 LTS (with workaround included)
- Fails on IIFE code
- README.rdoc link is broken
- Ignores conditionally executed code
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jsdetox.