Cant install restclient
Ekultek opened this issue · comments
Hi @Ekultek
I have this error
"opt/whitewidow/lib/imports/constants_and_requires.rb:6:in require': cannot load such file -- rest-client (LoadError) from /opt/whitewidow/lib/imports/constants_and_requires.rb:6:in
<top (required)>'
from whitewidow.rb:2:in require_relative' from whitewidow.rb:2:in
"
And I tried to install again rest-client
"gem install rest-client
Successfully installed rest-client-2.0.2
Parsing documentation for rest-client-2.0.2
Done installing documentation for rest-client after 0 seconds
1 gem installed"
Additional
ruby --version
ruby 2.3.1p112 (2016-04-26) [x86_64-linux-gnu]
Any comment?
Thanks
From #55
gem install restclient
that should do that job
I did but
gem install restclient
Fetching: paint-1.0.1.gem (100%)
Successfully installed paint-1.0.1
Fetching: restclient-0.14.4.gem (100%)
restclient's executable "restclient" conflicts with rest-client
Overwrite the executable? [yN] y
! The 'restclient' gem has been deprecated and has been replaced by 'restup'.
! See: https://rubygems.org/gems/restup
! And: https://github.com/thoom/restup
Successfully installed restclient-0.14.4
Parsing documentation for paint-1.0.1
Installing ri documentation for paint-1.0.1
Parsing documentation for restclient-0.14.4
Installing ri documentation for restclient-0.14.4
Done installing documentation for paint, restclient after 0 seconds
2 gems installed
Still same
ruby whitewidow.rb
/opt/whitewidow/lib/imports/constants_and_requires.rb:6:in require': cannot load such file -- rest-client (LoadError) from /opt/whitewidow/lib/imports/constants_and_requires.rb:6:in
<top (required)>'
from whitewidow.rb:2:in require_relative' from whitewidow.rb:2:in
Wait a second, did you do bundle install
?
Yeah,already did it before
bundle install
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root
users on this machine.
Warning: the running version of Bundler is older than the version that created the lockfile. We suggest you upgrade to the latest version of Bundler by running gem install bundler
.
Using addressable 2.4.0
Using safe_yaml 1.0.4
Using diff-lcs 1.2.5
Using unf_ext 0.0.7.2
Using hashdiff 0.3.0
Using mime-types-data 3.2016.0521
Using net-http-digest_auth 1.4
Using net-http-persistent 2.9.4
Using pkg-config 1.1.7
Using ntlm-http 0.1.1
Using webrobots 0.1.2
Using mini_portile2 2.1.0
Using rspec-support 3.5.0
Using vcr 3.0.0
Using bundler 1.12.5
Using crack 0.4.3
Using unf 0.1.4
Using mime-types 3.1
Using nokogiri 1.6.8
Using rspec-core 3.5.4
Using rspec-expectations 3.5.0
Using rspec-mocks 3.5.0
Using webmock 1.24.2
Using domain_name 0.5.20160615
Using rspec 3.5.0
Using http-cookie 1.0.2
Using mechanize 2.7.5
Bundle complete! 6 Gemfile dependencies, 27 gems now installed.
Something's wrong with your installation, uninstall rest-client
and restclient
, along with nokogiri
after you've done all that run gem install rest-client -v 2.0
and then run bundle install
Kali is a Debian distro right?
Try one more thing for me, sudo apt-get install ruby-rest-client
Alright one more ditch effort, delete the gem.lock file and run bundle install
Completely delete the lock file and try again, also try with a different OS like you said and I'll see what I can figure out
Also try upgrading bundler, that might be the issue as well
@Ekultek sorry for the delayed response...too busy atm. no, i didn't have the error like above.
Duh, I'm having the same issue. Did everything required and still no luck.
I'll be online all day. Lets solve this
Alright, what operating systems have you tried so far?
I'm using the latest and greatest version of Parrot OS.
Lol that's what's up, alright ima push a test branch to the repo and I want you to clone from that branch and try it, gimme a couple minutes
Clone from this branch https://github.com/WhitewidowScanner/whitewidow/tree/test-branch and try it
Done that.
/whitewidow/lib/imports/constants_and_requires.rb:195:in <top (required)>': uninitialized constant RestClient::NotFound (NameError) from whitewidow.rb:2:in
require_relative'
from whitewidow.rb:2:in `
so you did git clone -b test-branch https://github.com/ekultek/whitewidow.git
?
^Nvm. Works now. /thread
Works?
Yeah, it works. Running it rn.
@noptrix cool, thanks man
@AintCoolSon awesome, closing the down with the next push