I am trying to install wpscan to my system, but it shows an error to the ruby version for some reason, however it is sufficient for this install(>=2.3.0)
Error:
[root#ds wpscan]# gem install bundler
ERROR: Error installing bundler:
bundler requires Ruby version >= 2.3.0.
[root#ds wpscan]# ruby -v
ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux]
[root#ds wpscan]#
Sounds like you've got multiple ruby installs and that gem is coming from the wrong one.
Try running which ruby and which gem to see if they can point you in the right direction.
Related
When I am installing the passenger rack I am getting the following error
I have upgraded to the version 1.9.3 as shown below
any suggestion
[centos#ip-10-1-213-37 puppet]$ sudo gem install passenger
ERROR: Error installing passenger:
rake requires Ruby version >= 1.9.3.
[centos#ip-10-1-213-37 puppet]$ ruby -v
ruby 1.9.3p551 (2014-11-13 revision 48407) [x86_64-linux]
You call ruby -v as regular user, and sudo gem install passenger as root. I suggest you to upgrade your ruby version; you could use rvm for this purpose.
I have installed many flavors of ruby on rvm, and using following command to change rvm ruby versions.
rvm use 1.9.3
then ruby -v gives me following result
ruby 1.9.3p551 (2014-11-13 revision 48407) [i686-linux]
but when i try to run any commands like rails s or bundle install
it gives me following error
Your Ruby version is 2.3.1, but your Gemfile specified 1.9.3
Using
rvm list
you can get list of ruby version on your system along with current & default versions.
If ruby version is not specified in Gemfile, then it is generally considering default rvm version.
But if it is specified in Gemfile, then that version of ruby should be installed in your system along with its bundler.
First make sure ruby version either installing or using it,
rvm install '1.9.3'
rvm use '1.9.3'
To install bundle of required ruby version, run this command
gem install bundler
That's can happens, when you trying to use fresh installed ruby without bundler, all newest installed ruby should also include bundler installation.
$> rvm use 1.9.3 && gem install bundler # may terminal reload needed
$> bundle install
$> bundle exec rails s
I tried installing github-pages using gem:
sudo gem install 'github-pages'
However, I get the following error:
ERROR: Error installing github-pages:
public_suffix requires Ruby version >= 2.0.
But when I checked my ruby version using ruby --version, it shows:
ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-linux]
So, my understanding is that gem is somehow referencing an older version of Ruby(previous was 1.9.3). How can I fix this problem? My OS is Ubuntu 14.04 and I upgraded ruby using ruby-install.
I believe you do not need to install github-pages globally, as you are trying.
Just removing sudo in front of your command will do the trick:
gem install 'github-pages'
I'm trying to install github pages gem on my Mac OS X (yosemite).
I get following error:
Gem::InstallError: github-pages requires Ruby version ~> 2.0.0.
An error occurred while installing github-pages (4), and Bundler cannot continue.
Make sure that `gem install github-pages -v '4'` succeeds before bundling.
I checked my Ruby version by running following command -
ruby --version
And it says
ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-darwin13.0]
So I definitely have Ruby version ~> 2.0.0
Any assistance on this issue would be greatly appreciated!
There is a possible lack of important information here. Looking at your Ruby version, are you using rbenv or rvm?
I could imagine this happening if you use rbenv or rvm and then su or sudo to gem install github-pages. rbenv and rvm are specific to your user account and your shell environment. If you su or sudo to root, rbenv and rvm are no longer active.
The other possibility is that you are running it inside of a Bundler managed app that specifies another Ruby version in the Gemfile using the ruby x.x.x syntax.
If neither of these is the case, try running gem env to see what exactly rubygems thinks the story is. Also post the exact commands you are using to get this error.
I have install rbev
rbenv version
2.0.0-p247 (set by /Users/amritdeepdhungana/.rbenv/version)
, ruby
ruby -v
ruby 2.0.0p247 (2013-06-27 revision 41674) [universal.x86_64-darwin13]\
and rails
rails -v
Rails 4.0.1
I have create new project and bundle it. But I get this problem
Installing rake (10.1.1)
Errno::EACCES: Permission denied - /Library/Ruby/Gems/2.0.0/build_info/rake-10.1.1.info
An error occurred while installing rake (10.1.1), and Bundler cannot continue.
Make sure that `gem install rake -v '10.1.1'` succeeds before bundling.
After that, I have install rake gem but again I got error
gem install rake -v '10.1.1'
ERROR: Could not find a valid gem 'rake' (= 10.1.1), here is why:
Unable to download data from https://rubygems.org/ - too many connection resets (https://s3.amazonaws.com/production.s3.rubygems.org/specs.4.8.gz)
ERROR: Possible alternatives: rake
How can I set the permission while install any gem package ?
Like #bjhaid said, you're trying to install these gems into your system Ruby.
/Library/Ruby/Gems/2.0.0/build_info/rake-10.1.1.info
Ruby 2.0.0p247 is bundled w/Mavericks. Specifically:
$ /usr/bin/ruby --version
ruby 2.0.0p247 (2013-06-27 revision 41674) [universal.x86_64-darwin13]
My self-built (rvm) version is has a slightly different version string:
$ ruby --version
ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-darwin12.3.0]
To find out which ruby is actually being used, try which ruby. Make sure you've properly installed rbenv, and installed a new local Ruby.
It almost looks like you haven't set your PATH up correctly, but your answer to Nick Veys' question doesn't look like it. I would surmise that you haven't installed any ruby under rbenv yet. What does rbenv versions look like?