Ubuntu issues after updating Ruby - ruby

I'm trying to install beef framework on my Ubuntu 14.04.
I'm getting the error :
Gem::InstallError: public_suffix requires Ruby version >= 2.0.
An error occurred while installing public_suffix (2.0.5), and
Bundler cannot continue.
Make sure that `gem install public_suffix -v '2.0.5'` succeeds before
bundling.
I've tried to install ruby 2.4.0 and it worked and i used it using rvm :
root#XBuffer:/usr/share/beef-xss# rvm use ruby-2.4.0rvm
Using /usr/local/rvm/gems/ruby-2.4.0
But I'm still getting the same error while using bundle install
I've tried even to manually install public_suffix :
root#XBuffer:/usr/share/beef-xss# gem install public_suffix -v '2.0.5'
Successfully installed public_suffix-2.0.5
Parsing documentation for public_suffix-2.0.5
Done installing documentation for public_suffix after 0 seconds
1 gem installed
But I still get the same exact error.
I'm really stuck at this and I've tried a lot of other solutions based on some researches.

Related

Jekyll install with Ruby 2.5

I got a problem when i was installing Jekyll on win10.
When I finished deployment for ruby and wanna install Jekyll, it needs to install bundle first.
Fetching ffi 1.9.17 (x64-mingw32)
Installing ffi 1.9.17 (x64-mingw32)
Gem::RuntimeRequirementNotMetError: ffi requires Ruby version < 2.5, >= 2.0. The
current ruby version is 2.5.0.
An error occurred while installing ffi (1.9.17), and Bundler cannot continue.
Make sure that `gem install ffi -v '1.9.17'` succeeds before bundling.
Then I followed the instruction
gem install ffi -v 1.9.17
The Error log is
ERROR: Error installing ffi:
The last version of ffi (= 1.9.17) to support your Ruby & RubyGems was 1.9.17. Try installing it with `gem install ffi -v 1.9.17`
ffi requires Ruby version < 2.5, >= 2.0. The current ruby version is 2.5.0.
Also I have tried to followed the solution by vbortone.
gem install ffi -f
It also didn't work.
ERROR: Error installing ffi:
The last version of ffi (= 1.9.17) to support your Ruby & RubyGems was 1.9.17. Try installing it with `gem install ffi -v 1.9.17`
ffi requires Ruby version < 2.5, >= 2.0. The current ruby version is 2.5.0.
The recent versions of ffi installs fine on Ruby 2.5. Bundler automatically requests for the latest version, unless there's a Gemfile.lock file, or a constraint has been specified in a Gemfile file or a dependency's gemspec.
You can first try running bundle update.
If that doesn't work, you can edit the Gemfile file (if available), and add gem 'ffi', '~> 1.9' before running bundle install. You can also manually install the gem with gem install ffi.

Error installing Sass (Ruby 2.5.0.1, MSYS2 20161025.0.0)

I tried to install Sass. I installed Ruby and MSYS2 prior to that, the latest from all with Chocolatey:
choco install ruby
choco install msys2
Seemingly they were properly installed. ruby -v results in:
ruby 2.5.0p0 (2017-12-25 revision 61468) [x64-mingw32]
When I tried to run gem install sass I received the following error message:
ERROR: Error installing sass:
The last version of ffi (< 2, >= 0.5.0) to support your Ruby & RubyGems was 1.9.18. Try installing it with `gem install ffi -v 1.9.18` and then running the current command again
ffi requires Ruby version < 2.5, >= 2.0. The current ruby version is 2.5.0.
Ok, so I attempted to run gem install ffi -v 1.9.18.
I received this error message:
ERROR: Error installing ffi:
The last version of ffi (= 1.9.18) to support your Ruby & RubyGems was 1.9.18. Try installing it with `gem install ffi -v 1.9.18`
ffi requires Ruby version < 2.5, >= 2.0. The current ruby version is 2.5.0.
I tried to reinstall Ruby with proper installer, restarted computer, but the same error appears.
How can I make Sass to get installed?
To install the Ruby version before 2.5 (as mentioned in the comments):
choco install ruby --version 2.4.3.1

Trouble Installing Gitlabhq on Centos but getting rb-fsevent error

I need to install Gitlabhq on Centos by assisting this page https://github.com/mattias-ohlsson/gitlab-installer/blob/master/gitlab-install-el6.sh but i am getting rb-fsevent error.
I already installed the latest version of rb-fsevent gem said but i can not execute bundle install
$gem install fr-fsevent
Successfully installed rb-fsevent-0.9.3
Done installing documentation for rb-fsevent (0 sec).
1 gem installed
But when i run bundle install i am getting this:
An error occurred while installing rb-fsevent (0.9.2), and Bundler cannot continue.
Make sure that `gem install rb-fsevent -v '0.9.2'` succeeds before bundling.
I searched too many things but could not find a good solution.

Error installing ruby-debug/ruby-debug-base with Ruby Enterprise v1.8.7

I got problems when trying to install gem ruby-debug-ide. Then, I try to install gem ruby-debug-base first. However, I got an error:
Error installing ruby-debug-base:
rb-threadframe requires Ruby version ~> 1.9.2frame.
The same error occured when installing ruby-debug.
I'm using Ubuntu v10.4, Ruby Enterprise v1.8.7, Rubygems v1.8.15.
Thanks for your help!
The problem is in new version (0.0.6) of rbx-require-relative that requires rb-threadframe >= 0
Try this:
gem install rbx-require-relative -v 0.0.5
gem install linecache ruby-debug-base --ignore-dependencies
Seems pretty self explanatory.
You need a Ruby version greater than 1.9.2 and you have v1.8.7, will need to get a newer version.

bcrypt-ruby won't install with bundler but works fine with gem install

I just recently began having trouble with bundler - bcrypt-ruby will not install when doing a bundle install or sudo bundle install and exits with the following error:
Installing bcrypt-ruby (2.1.4) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/usr/bin/ruby1.8 extconf.rb
Gem files will remain installed in /home/deploy/vendor/bundle/ruby/1.8/gems/bcrypt-ruby-2.1.4 for inspection.
Results logged to /home/deploy/vendor/bundle/ruby/1.8/gems/bcrypt-ruby-2.1.4/ext/mri/gem_make.out
An error occured while installing bcrypt-ruby (2.1.4), and Bundler cannot continue.
Make sure that `gem install bcrypt-ruby -v '2.1.4'` succeeds before bundling.
However, gem install bcrypt-ruby -v '2.1.4' runs just fine (and in fact has already been run on this box). Running /usr/bin/ruby1.8 extconf.rb manually works just fine, and the resulting Makefile also runs with make just fine.
I'm using Ruby 1.8.7 and bundler 1.0.21 on Ubuntu 10.04.1 LTS. Other gems seem to be working fine through bundler. Though this is probably obvious, I've confirmed that the ruby-dev, gcc, etc packages are installed. I've tried using the --deployment option with bundler with no different behavior. The only thing I can think that has changed recently is I did a bundle update a couple days ago, so bundle got a minor version change (1.0.10 -> 1.0.21) and bcrypt appears to have gotten a major version change (2.1.4 -> 3.0.1).
Any help is appreciated!
Have you upgraded to Lion since you installed Ruby 1.9.2? If so it is probably linked to the wrong gcc.
Try uninstalling and reinstalling 1.9.2, I would suggest using rvm
rvm uninstall 1.9.2
rvm install 1.9.2
If that does not work you might have to implode rvm
rvm implode
bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
source ~/.bash_profile
rvm install 1.9.2
try:
sudo apt-get install build-essential

Resources