✘ xiaowei@192 ⮀ ~/newspace/api_exercise ⮀ ⭠ master± ⮀ rails g controller welcome
/Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/bundler-1.16.0/lib/bundler/rubygems_integration.rb:404:in `block (2 levels) in replace_gem': Error loading the 'sqlite3' Active Record adapter. Missing a gem it depends on? can't activate sqlite3 (~> 1.3.6), already activated sqlite3-1.4.0. Make sure all dependencies are added to Gemfile. (LoadError)
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/activerecord-5.2.2/lib/active_record/connection_adapters/sqlite3_adapter.rb:12:in `<main>'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/bootsnap-1.4.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/bootsnap-1.4.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `block in require_with_bootsnap_lfi'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/bootsnap-1.4.1/lib/bootsnap/load_path_cache/loaded_features_index.rb:83:in `register'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/bootsnap-1.4.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:20:in `require_with_bootsnap_lfi'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/bootsnap-1.4.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in `require'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in `block in require'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:257:in `load_dependency'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in `require'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/activerecord-5.2.2/lib/active_record/connection_adapters/connection_specification.rb:191:in `spec'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/activerecord-5.2.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:952:in `establish_connection'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/activerecord-5.2.2/lib/active_record/connection_handling.rb:60:in `establish_connection'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/activerecord-5.2.2/lib/active_record/railtie.rb:136:in `block (2 levels) in <class:Railtie>'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/activesupport-5.2.2/lib/active_support/lazy_load_hooks.rb:71:in `instance_eval'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/activesupport-5.2.2/lib/active_support/lazy_load_hooks.rb:71:in `block in execute_hook'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/activesupport-5.2.2/lib/active_support/lazy_load_hooks.rb:62:in `with_execution_control'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/activesupport-5.2.2/lib/active_support/lazy_load_hooks.rb:67:in `execute_hook'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/activesupport-5.2.2/lib/active_support/lazy_load_hooks.rb:52:in `block in run_load_hooks'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/activesupport-5.2.2/lib/active_support/lazy_load_hooks.rb:51:in `each'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/activesupport-5.2.2/lib/active_support/lazy_load_hooks.rb:51:in `run_load_hooks'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/activerecord-5.2.2/lib/active_record/base.rb:328:in `<module:ActiveRecord>'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/activerecord-5.2.2/lib/active_record/base.rb:27:in `<main>'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/bootsnap-1.4.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/bootsnap-1.4.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `block in require_with_bootsnap_lfi'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/bootsnap-1.4.1/lib/bootsnap/load_path_cache/loaded_features_index.rb:83:in `register'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/bootsnap-1.4.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:20:in `require_with_bootsnap_lfi'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/bootsnap-1.4.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in `require'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in `block in require'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:257:in `load_dependency'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in `require'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/spring-2.0.2/lib/spring/application.rb:356:in `active_record_configured?'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/spring-2.0.2/lib/spring/application.rb:273:in `disconnect_database'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/spring-2.0.2/lib/spring/application.rb:107:in `preload'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/spring-2.0.2/lib/spring/application.rb:153:in `serve'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/spring-2.0.2/lib/spring/application.rb:141:in `block in run'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/spring-2.0.2/lib/spring/application.rb:135:in `loop'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/spring-2.0.2/lib/spring/application.rb:135:in `run'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/spring-2.0.2/lib/spring/application/boot.rb:19:in `<top (required)>'
from /Users/xiaowei/.rvm/rubies/ruby-2.3.1/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/xiaowei/.rvm/rubies/ruby-2.3.1/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from -e:1:in `<main>'
在这个过程中,查看本地的环境:
✘ xiaowei@192 ⮀ ~ ⮀ ⭠ master± ⮀ gem env
RubyGems Environment:
- RUBYGEMS VERSION: 2.6.9
- RUBY VERSION: 2.3.1 (2016-04-26 patchlevel 112) [x86_64-darwin14]
- INSTALLATION DIRECTORY: /Users/xiaowei/.rvm/gems/ruby-2.3.1
- USER INSTALLATION DIRECTORY: /Users/xiaowei/.gem/ruby/2.3.0
- RUBY EXECUTABLE: /Users/xiaowei/.rvm/rubies/ruby-2.3.1/bin/ruby
- EXECUTABLE DIRECTORY: /Users/xiaowei/.rvm/gems/ruby-2.3.1/bin
- SPEC CACHE DIRECTORY: /Users/xiaowei/.gem/specs
- SYSTEM CONFIGURATION DIRECTORY: /Users/xiaowei/.rvm/rubies/ruby-2.3.1/etc
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-darwin-14
- GEM PATHS:
- /Users/xiaowei/.rvm/gems/ruby-2.3.1
- /Users/xiaowei/.rvm/gems/ruby-2.3.1@global
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :backtrace => false
- :bulk_threshold => 1000
- :sources => ["https://ruby.taobao.org/"]
- REMOTE SOURCES:
- https://ruby.taobao.org/
- SHELL PATH:
- /Users/xiaowei/.rbenv/bin
- /Users/xiaowei/.rvm/gems/ruby-2.3.1/bin
- /Users/xiaowei/.rvm/gems/ruby-2.3.1@global/bin
- /Users/xiaowei/.rvm/rubies/ruby-2.3.1/bin
- /usr/local/bin
- /usr/bin
- /bin
- /usr/sbin
- /sbin
- /Users/xiaowei/.rbenv/bin
- /Users/xiaowei/Library/Android/sdk/tools
- /Users/xiaowei/Library/Android/sdk/tools/bin
- /Users/xiaowei/Library/Android/sdk/platform-tools
- /Users/xiaowei/.rvm/bin
xiaowei@192 ⮀ ~ ⮀ ⭠ master± ⮀
xiaowei@192 ⮀ ~ ⮀ ⭠ master± ⮀ sudo gem update --system 2.7.4
Password:
ERROR: SSL verification error at depth 0: certificate has expired (10)
ERROR: Certificate /C=CN/ST=ZheJiang/L=HangZhou/O=Alibaba (China) Technology Co., Ltd./CN=*.taobao.org expired at 2018-12-05T03:16:02Z
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
SSL_connect returned=1 errno=0 state=error: certificate verify failed (https://ruby.taobao.org/specs.4.8.gz)
✘ xiaowei@192 ⮀ ~ ⮀ ⭠ master± ⮀
网友评论