ruby on rails rails new error gem install ffi -v - ruby-on-rails

good day
Today starting to study ruby on rails I find this error when creating a new application
/Users/Manux/.rvm/gems/ruby-2.1.1/extensions/x86_64-darwin-14/2.2.0-static/ffi-1.9.17/gem_make.out
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.
I use ruby-2.1.1 and rails 5.0.1

Related

Upgrade ruby to 2.4.0

I have upgraded Ruby to version 2.4.0 in my Rails app, but when I try to bundle install, I face with the following error:
An error occurred while installing json (1.8.3), and Bundler cannot continue.
Make sure that `gem install json -v '1.8.3'` succeeds before
json(1.8.3) is not compatible with ruby 2.4.0. Try using a newer version.
$ bundle update json

I am not able to bundle install my new app in Rails it show me following error message

An error occurred while installing json (1.8.3), and Bundler cannot continue.
Make sure that `gem install json -v '1.8.3'` succeeds before bundling.
My s/w version are:
ruby 2.2.3p173 (2015-08-18 revision 51636) [x64-mingw32]
Rails -v 4.2.5
windows 10
gem -v 2.4.5.1
Bundler 1.5.0 has a bug where it doesn't recognize default gems as referenced here.
The solution was to update to bundler 1.5.1 using gem install bundler -v '= 1.5.1'
I don't know much about Windows but you could try to install this GMP package. As suggested on the json Github issues page, people on linux should install the package below:
sudo apt-get install libgmp3-dev
And what it seems is that package for Windows has a similar dll which could resolve your problem.
There are known issues with the gem json 1.8.3 and ruby 2.2.3 listed in thoses issues #259 and #229

An error occurred while installing json (1.7.6), and Bundler cannot continue.

An error occurred while installing json (1.7.6), and Bundler cannot continue.
Make sure that gem install json -v '1.7.6' succeeds before bundling.
Might be your existing Ruby version does not support the gem. Use the gems that support by your Ruby version. If yours Ruby version is higher than 2.1.0 then degrade it to 2.1.0 then it works fine.
You have to update your ruby installation . Which version it is ?
check it from terminal , try
ruby -v

RubyMine (7.0.4) is failing to install cmdparse because it requires Ruby 2.0.0

The project is using Ruby 1.9.3 and I can't change that. I'm using sauce and sauce-connect. I think they are bringing in cmdparse (3.0.1).
I only get an error when running bundle install from RubyMine. I can run this command from bash (Mac) with no problem. Now I can't run my tests from RubyMine. any advice?
The complete error...
Gem::InstallError: cmdparse requires Ruby version >= 2.0.0.
An error occurred while installing cmdparse (3.0.1), and Bundler cannot
continue.
Make sure that gem install cmdparse -v '3.0.1' succeeds before bundling.
Process finished with exit code 5

An error occurred while installing tzinfo (0.3.33), and Bundler cannot continue

Hello i am running bundle install and receiving the following error message. I am using the rails installer kit # http://railsinstaller.org/
Errno::EINVAL: Invalid argument - C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.
1/cache/tzinfo-0.3.33.gem
An error occurred while installing tzinfo (0.3.33), and Bundler cannot continue.
Make sure that gem install tzinfo -v '0.3.33' succeeds before bundling.
I'm on windows and use PIK for ruby version control. I ran
pik gem install tzinfo
that installed gem on all versions of ruby.
then ran bundle install... Had a few other similar errors that I resolved in the same manner.
Bottom line: install gem per the error description.
if you don't use PIK or RVM just run: gem install tzinfo
good luck

Resources