I downloaded ruby on rails using railsInstaller and created my first project using "rails new temp" command. Then when I run "bundle install" command, I get the following error:
Fetching gem metadata from https://rubygems.org/...........
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Resolving dependencies...
Using rake 12.3.1
Using concurrent-ruby 1.0.5
Using minitest 5.11.3
Using thread_safe 0.3.6
Using builder 3.2.3
Using erubis 2.7.0
Using mini_portile2 2.3.0
Using crass 1.0.4
Using rack 2.0.5
Using nio4r 2.3.1
Using websocket-extensions 0.1.3
Using mini_mime 1.0.0
Using arel 7.1.4
Installing bindex 0.5.0 with native extensions
Using bundler 1.13.6
Using coffee-script-source 1.12.2
Using execjs 2.7.0
Using method_source 0.9.0
Using thor 0.20.0
Using ffi 1.9.25
Using multi_json 1.13.1
Installing puma 3.11.4 with native extensions
Using rb-fsevent 0.10.3
Using tilt 2.0.8
Using sqlite3 1.3.13
Using turbolinks-source 5.1.0
Using i18n 1.0.1
Using tzinfo 1.2.5
Using nokogiri 1.8.2
Using rack-test 0.6.3
Using sprockets 3.7.1
Installing websocket-driver 0.6.5 with native extensions
Using mail 2.7.0
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
"D:/Program Files/Ruby on Rails/RailsInstaller/Ruby2.2.0/bin/ruby.exe" -r
./siteconf20180615-6548-5cjjdl.rb extconf.rb
creating Makefile
make "DESTDIR=" clean
Makefile:263: *** multiple target patterns. Stop.
make "DESTDIR="
Makefile:263: *** multiple target patterns. Stop.
make failed, exit code 2
Gem files will remain installed in D:/Program Files/Ruby on
Rails/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/bindex-0.5.0 for
inspection.
Results logged to D:/Program Files/Ruby on
Rails/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/extensions/x86-mingw32/2.2.0/bindex-0.5.0/gem_make.out
An error occurred while installing bindex (0.5.0), and Bundler cannot continue.
Make sure that `gem install bindex -v '0.5.0'` succeeds before bundling.
Could someone help me with this problem. I couldn't find any solution elsewhere.
Edit I'm using Windows 10.
Ruby on Railsfolder to something that does not contain spaces, likeRoRfor instance. Would love to her response from you.