Error raising Server in Ruby on Rails

0

After starting my project from the specified path and executing the rails s command, I get the following error:

Could not find gem 'tzinfo-data (>= 0) x86-mins machine.
Run 'bundle install' to install missing gems.

I modified the Gemfile , but still have the same error.

Work with Windows. The versions of Ruby, Rails, Git and GEM are already verified

    
asked by Kevin Martinez 15.11.2016 в 22:33
source

2 answers

3

It seems to be a problem with tzinfo-data , you could check if it is installed with the following command:

gem list

If not installed, you should run

gem install tzinfo-data

And once installed, the problem should be fixed.

    
answered by 15.11.2016 / 22:49
source
0

One of the first things that needs to be done once a new project is defined in Ruby, whether creating a gem or developing an application in Ruby on Rails, is to install the necessary dependencies. Typically, there is a text file called Gemfile in the root directory of the project, which describes all the necessary dependencies.

Bundler is a gem that is responsible for installing or updating the gems required by a project. Basically reads the content of Gemfile and installs all those gems that are not installed in the system without installing each gem one by one. To install it you only need to do the following:

gem install bundler

Once installed, it would be enough to run from the root of the project:

bundle install
    
answered by 15.11.2016 в 23:08