关于rails installation 和 sqlite3 installation的问题
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 gem 'rails (~> 5.1.7) x64-mingw32' in any of the gem sources listed in your Gemfile.
Run `bundle install` to install missing gems.
C:\Users\Xu Zeng\blog>bundle install
Fetching gem metadata from https://rubygems.org/..............
Fetching 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 rails-dom-testing 2.0.3
Using crass 1.0.5
Using loofah 2.4.0
Using rails-html-sanitizer 1.3.0
Using actionview 5.1.7
Using rack 2.0.8
Using rack-test 1.1.0
Using actionpack 5.1.7
Using nio4r 2.5.2
Using websocket-extensions 0.1.4
Using 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 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 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 2.4.1
Using method_source 0.9.2
Using 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-inotify 0.10.1
Installing rb-inotify 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 selenium-webdriver 3.142.7
Installing 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 gem native extension.
current directory:
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/sqlite3-1.4.2/ext/sqlite3
C:/Ruby26-x64/bin/ruby.exe -I C:/Ruby26-x64/lib/ruby/2.6.0 -r
./siteconf20191229-3908-1eyuunw.rb extconf.rb
checking for sqlite3.h... no
sqlite3.h is missing. Install SQLite3 from http://www.sqlite.org/ first.
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
Provided 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-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 why this extension failed to compile, please check the mkmf.log which can
be found here:
C:/Ruby26-x64/lib/ruby/gems/2.6.0/extensions/x64-mingw32/2.6.0/sqlite3-1.4.2/mkmf.log
extconf failed, exit code 1
Gem files will remain installed in
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/sqlite3-1.4.2 for inspection.
Results logged to
C:/Ruby26-x64/lib/ruby/gems/2.6.0/extensions/x64-mingw32/2.6.0/sqlite3-1.4.2/gem_make.out
An error occurred while installing sqlite3 (1.4.2), and Bundler cannot continue.
Make sure that `gem install sqlite3 -v '1.4.2' --source 'https://rubygems.org/'`
succeeds before bundling.
In Gemfile:
sqlite3相关推荐
RVM_Ruby1.9.3_Rails3(2-Ruby on Rails3安装配置)
Windows7_Cygwin_Git_RVM_Ruby1.9.3_Rails3_MongoD B_Nginx_Unicorn_Rspec_Guard_Spork(2-Ruby on Rails3 安装配置
Agile Web Development with Rails Final
Ruby on Rails is a framework that makes it easier to develop, deploy, and<br/>maintain web applications.<br/>Of course, all web frameworks make the same claim. What makes Rails<br/>different? We can answer that question a number of ways.
Ruby on Rails生产环境部署:Apache+Passenger+MySQL深度配置指南
Ruby on Rails 是典型的服务器端 Web 应用框架,其生产部署依赖于 Ruby 运行时、Web 服务器(如 Apache)与应用服务器(如 Passenger)的精密协同。理解 Passenger 作为 Ruby 和 Apache 之间的运行时桥梁机制,是解决 'App could not be started' 等静默失败的关键;而 MySQL 的 sql_mode、lower_case_table_names 等底层参数,则直接决定 ActiveRecord 行为一致性与数据完整性。本文面向
CodeGraph:本地代码知识图谱引擎,提升AI编程助手理解大型项目能力
代码静态分析是理解软件项目结构和依赖关系的基础技术,它通过解析源代码构建抽象语法树(AST)来提取符号和关系。其核心原理在于将代码转换为结构化数据模型,从而支持高效的查询和遍历。这一技术价值在于显著提升开发工具对代码库的认知深度,减少人工探索成本。在AI辅助编程场景中,代码知识图谱能够将传统的线性文件遍历转变为精准的语义查询,直接服务于代码理解、影响分析和重构规划等任务。本文聚焦的CodeGraph正是这样一个100%本地运行的代码知识图谱引擎,它预先为项目建立完整的符号、调用边和依赖关系索引。当AI助手需
企业级漏洞扫描器Vuls部署实战:从架构设计到DevSecOps集成
漏洞扫描是网络安全主动防御体系的核心环节,其原理是通过自动化工具对系统资产进行持续检测,识别已知的安全漏洞。这项技术的核心价值在于将传统的被动响应转变为主动风险管理,为企业提供持续、可度量的安全可见性。在工程实践中,基于CVE(公共漏洞和暴露)数据库进行版本比对的扫描方式,因其对生产环境侵入性低、资源占用少,成为企业级部署的主流选择。通过精准的漏洞匹配与风险评估,企业能够有效发现操作系统、中间件及应用程序中的安全隐患。在实际应用场景中,一个设计良好的漏洞扫描方案需要无缝融入现有的运维与开发流程,实现从资产发


