F
F
fapchat2019-06-03 02:48:42
Ruby on Rails
fapchat, 2019-06-03 02:48:42

How to fix an error when building a Rails app?

I'm trying to install rails according to these two guides:
installfest.railsbridge.org/installfest/windows ;
installfest.railsbridge.org/installfest/create_a_r...
In guide 2, I got stuck at step 4: I enter the command 'rails new test_app' into the terminal and I get this error:

bootsnap.o: In function `atomic_write_cache_file':
C:\RailsInstaller\Ruby2.3.3\lib\ruby\gems\2.3.0\gems\bootsnap-1.4.4\ext\bootsnap/bootsnap.c:484:
undefined reference to `mkstemp'
collect2.exe: error: ld returned 1 exit status
make: *** [bootsnap.so] Error 1

make failed, exit code 2

Gem files will remain installed in
C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/bootsnap-1.4.4 for
inspection.
Results logged to
C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/extensions/x86-mingw32/2.3.0/bootsnap-1.4.4/gem_make.out

An error occurred while installing bootsnap (1.4.4), and Bundler cannot
continue.
Make sure that `gem install bootsnap -v '1.4.4' --source
'https://rubygems.org/'` succeeds before bundling.

In Gemfile:
  bootsnap

PS I already read that rails 5.2 only stacks with ruby ​​versions
2.2.10
2.3.7
2.4.4
2.5.1
I downloaded 2.5.1, put it in the railsInstaller folder or in the folder with ruby ​​itself, replaced the files - to no purpose, like ruby ​​2.3 was .3 - and remained so. How to update ruby ​​and fix the error?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Andreev, 2019-06-03
@b0nn1e

The very first thing a young rubist should do is install Ubuntu. Maybe on VM.

U
Undo Redo, 2019-06-05
@derek2

It’s enough just to write gem install rails, since everything is a little crooked through the rails installer

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question