Home > front end >  On rails installation and sqlite3 installation problems
On rails installation and sqlite3 installation problems

Time:02-09

Everybody is good! I was following this site learning rails, met with such an error, I have put the rails and sqlite3 is installed, but the error says sqlite3. H is missing, could you tell me how to give the error to the correction? (I've tried in the project directory inside the gem 'sqlite3' into the gem 'sqlite3', '~ & gt; 1.3 ', '& lt; 1.4 ', and then run the bundle install. But the same error still appears)
 Microsoft Windows [Version 10.0.17763.914] 
(c) 2018 Microsoft Corporation. All rights reserved.

C: \ Users \ Xu Zeng> CD blog

C: \ Users \ Xu Zeng \ blog> Rails server
Could not find the gem 'rails (~ & gt; 5.1.7) x64 - mingw32 'in any of the gem sources listed in your Gemfile.
The Run ` bundle install ` to install missing gems.

C: \ Users \ Xu Zeng \ blog> The bundle install
Fetching the gem metadata from https://rubygems.org/...
Fetching the gem metadata from https://rubygems.org/..
Resolving dependencies...
Using rake 13.0.1
Using concurrent - ruby 1.1.5
Using i18n 1.7.0
Using minitest 5.13.0
Using thread_safe 0.3.6
Using tzinfo 1.2.6
Using activesupport 5.1.7
Using builder 3.2.4
Using erubi 1.9.0
Using mini_portile2 2.4.0
Using nokogiri 1.10.7 (x64 - mingw32)
Using the rails - the dom - testing the 2.0.3
Using crass 1.0.5
Using loofah 2.4.0
Using the rails - HTML - sanitizer 1.3.0
Using actionview 5.1.7
Using rack mid-atlantic moved
Using rack - test 1.1.0
Using actionpack 5.1.7
Using nio4r 2.5.2
Using the websocket - extensions 0.1.4
Using the websocket - driver 0.6.5
Using actioncable 5.1.7
Using globalid 0.4.2
Using activejob 5.1.7
Using mini_mime 1.0.2
Using mail 2.7.1
Using actionmailer 5.1.7
Using activemodel 5.1.7
Using arel 8.0.0
Using the activerecord 5.1.7
Using public_suffix 4.0.2
Using addressable 2.7.0
Using bindex 0.8.1
Using bundler 1.17.2
Using byebug 11.0.1
Using regexp_parser 1.6.0
Using the xpath 3.2.0
Using capybara 3.30.0
Using childprocess 3.0.0
Using coffee - script - source 1.12.2
Using execjs 2.7.0
Using coffee - script against 2.4.1
Using method_source 0.9.2
The Using of thor 1.0.1
Fetching railties 5.1.7
Installing railties 5.1.7
Fetching coffee - rails 4.2.2
Installing coffee - rails 4.2.2
Fetching ffi 1.11.3 (x64 - mingw32)
Installing ffi 1.11.3 (x64 - mingw32)
Fetching jbuilder 2.9.1
Installing jbuilder 2.9.1
Fetching puma 3.12.2
Installing puma 3.12.2 with native extensions
Fetching sprockets 3.7.2
Installing sprockets 3.7.2
Using sprockets - rails 3.2.1
Fetching rails 5.1.7
Installing rails 5.1.7
Fetching rb - fsevent 0.10.3
Installing rb - fsevent 0.10.3
Fetching rb - way 0.10.1
Installing rb - way 0.10.1
Fetching rubyzip 2.0.0
Installing rubyzip 2.0.0
Fetching sass - listen 4.0.0
Installing sass - listen 4.0.0
Fetching sass 3.7.4
Installing sass 3.7.4
Fetching tilt 2.0.10
Installing tilt 2.0.10
Fetching sass - rails 5.0.7
Installing sass - rails 5.0.7
Fetching the selenium and webdriver 3.142.7
Installing the selenium - webdriver 3.142.7
Fetching sqlite3 1.4.2
Installing sqlite3 1.4.2 with native extensions
Gem: : Ext: : BuildError: ERROR: Failed to build the Gem native extension.

The current directory:
C:/Ruby26 - x64/lib/ruby/gems/server/gems/sqlite3-1.4.2/ext/sqlite3
C:/Ruby26 - x64/bin/ruby. Exe - I C:/Ruby26 - x64/lib/ruby/server - r
./eyuunw siteconf20191229-3908-1. Rb extconf. Rb
Checking for sqlite3. H... No
Sqlite3. H is missing. Install sqlite3 from http://www.sqlite.org/first.
* * * * * * extconf in rb failed
Could not create a Makefile due to some reason, probably lack of necessary
Libraries and/or headers. Check the MKMF. The log file for more details. You may
Need the configuration options.

Provided the configuration options:
- with opt - dir
- without - opt - dir
- with opt - include
- without - opt - include=${opt - dir}/include
- with opt - lib
- without - opt - lib=${opt - dir}/lib
- with - the make - prog
- without - make - prog
-- srcdir=.
- curdir
- ruby=C:/Ruby26 - x64/bin/$(RUBY_BASE_NAME)
- with - sqlcipher
- without - sqlcipher
- with sqlite3 - config
- without - sqlite3 - config
- with - PKG - config
- without - PKG - config
- with - sqlcipher
- without - sqlcipher
- with sqlite3 - dir
- without - sqlite3 - dir
- with sqlite3 - include
- without - sqlite3 - include=${sqlite3 - dir}/include
- with sqlite3 - lib
- without - sqlite3 - lib=${sqlite3 - dir}/lib

To see according To this extension failed To compile, do check the MKMF. Log which can
Be found here:

C:/Ruby26 - x64/lib/ruby/gems/server/extensions/x64 - mingw32/server/sqlite3-1.4.2/MKMF. Log

Extconf failed, the exit code 1

Gem files will remain installed in
C:/Ruby26 - x64/lib/ruby/gems/server/gems/sqlite3-1.4.2 for inspection.
Results logged to
nullnullnullnullnullnullnullnull
  • Related