How to install Rails

  • administrators
    | 131291 points

    With Laragon 3.1, working with Rails is a pleasure. Just install the Laragon - RubyOnRails edition, then open Terminal (Menu > Laragon > Termial) and type:

    gem install rails

    If you want to install a specific version of Rails, type:

    gem install rails -v 5.0.3

    Working with Rails:

    1. Create an app:
    rails new coolapp
    1. Start it:
    cd coolapp
    rails s

    That's all fork!

    Note: with Laragon, you can work with different version of Rails - just add another ruby version:
    How to add another Ruby version

  • | 967 points

    No, that's not all. Win7 Laragon Rails version fails on Rails install

    An error occurred while installing bootsnap (1.4.4), and Bundler cannot
    Make sure that gem install bootsnap -v '1.4.4' --source '' succeeds before bundling.

    Did the gem install for missing gem and errors got WORSE! Cant find an answer anywhere.

    λ gem install bootsnap -v '1.4.4' --source ''
    Building native extensions. This could take a while...
    ERROR: Error installing bootsnap:
    ERROR: Failed to build gem native extension.

    current directory: C:/laragon/bin/ruby/ruby-2.3.3/lib/ruby/gems/2.3.0/gems/bootsnap-1.4.4/ext/bootsnap

    C:/laragon/bin/ruby/ruby-2.3.3/bin/ruby.exe -r ./siteconf20190504-3228-3edaxv.rb extconf.rb
    creating Makefile

    current directory: C:/laragon/bin/ruby/ruby-2.3.3/lib/ruby/gems/2.3.0/gems/bootsnap-1.4.4/ext/bootsnap
    make "DESTDIR=" clean

    current directory: C:/laragon/bin/ruby/ruby-2.3.3/lib/ruby/gems/2.3.0/gems/bootsnap-1.4.4/ext/bootsnap
    make "DESTDIR="
    generating bootsnap-x64-mingw32.def
    compiling bootsnap.c
    bootsnap.c: In function 'bs_cache_path':
    bootsnap.c:245:3: warning: unknown conversion type character 'l' in format [-Wformat]
    bootsnap.c:245:3: warning: too many arguments for format [-Wformat-extra-args]
    bootsnap.c: In function 'bs_rb_fetch':
    bootsnap.c:286:3: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
    bootsnap.c: In function 'atomic_write_cache_file':
    bootsnap.c:484:3: warning: implicit declaration of function 'mkstemp' [-Wimplicit-function-declaration]
    bootsnap.c: In function 'bs_rb_fetch':
    bootsnap.c:632:13: warning: 'output_data' may be used uninitialized in this function [-Wmaybe-uninitialized]
    bootsnap.c:603:9: note: 'output_data' was declared here
    linking shared-object bootsnap/
    bootsnap.o: In function atomic_write_cache_file': C:\laragon\bin\ruby\ruby-2.3.3\lib\ruby\gems\2.3.0\gems\bootsnap-1.4.4\ext\bootsnap/bootsnap.c:484: undefined reference tomkstemp'
    collect2.exe: error: ld returned 1 exit status
    make: *** [] Error 1

    make failed, exit code 2

    Gem files will remain installed in C:/laragon/bin/ruby/ruby-2.3.3/lib/ruby/gems/2.3.0/gems/bootsnap-1.4.4 for inspection.
    Results logged to C:/laragon/bin/ruby/ruby-2.3.3/lib/ruby/gems/2.3.0/extensions/x64-mingw32/2.3.0/bootsnap-1.4.4/gem_make.out

  • administrators
    | 131291 points

Log in to reply

Looks like your connection to Laragon was lost, please wait while we try to reconnect.