Last login: Wed Aug 17 13:13:31 on ttys000
kevindeMacBook-Pro:~ kevin$ gem sources
*** CURRENT SOURCES ***
https://rubygems.org/
kevindeMacBook-Pro:~ kevin$ ruby -v
ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-darwin12.0]
kevindeMacBook-Pro:~ kevin$ rvm gemset list
gemsets for ruby-2.1.1 (found in /Users/kevin/.rvm/gems/ruby-2.1.1)
(default)
global
=> rails420
kevindeMacBook-Pro:~ kevin$ rails -v
Rails 4.2.0
kevindeMacBook-Pro:~ kevin$ raisl server
-bash: raisl: command not found
kevindeMacBook-Pro:~ kevin$ rvm use 2.1,1@rails420
ruby-2.1,1 is not installed.
To install do: 'rvm install ruby-2.1,1'
kevindeMacBook-Pro:~ kevin$ rvm use 2.1.1@rails420
Using /Users/kevin/.rvm/gems/ruby-2.1.1 with gemset rails420
kevindeMacBook-Pro:~ kevin$ rails server
Usage:
rails new APP_PATH [options]
Options:
-r, [--ruby=PATH] # Path to the Ruby binary of your choice
# Default: /Users/kevin/.rvm/rubies/ruby-2.1.1/bin/ruby
-m, [--template=TEMPLATE] # Path to some application template (can be a filesystem path or URL)
[--skip-gemfile], [--no-skip-gemfile] # Don't create a Gemfile
-B, [--skip-bundle], [--no-skip-bundle] # Don't run bundle install
-G, [--skip-git], [--no-skip-git] # Skip .gitignore file
[--skip-keeps], [--no-skip-keeps] # Skip source control .keep files
-O, [--skip-active-record], [--no-skip-active-record] # Skip Active Record files
-S, [--skip-sprockets], [--no-skip-sprockets] # Skip Sprockets files
[--skip-spring], [--no-skip-spring] # Don't install Spring application preloader
-d, [--database=DATABASE] # Preconfigure for selected database (options: mysql/oracle/postgresql/sqlite3/frontbase/ibm_db/sqlserver/jdbcmysql/jdbcsqlite3/jdbcpostgresql/jdbc)
# Default: sqlite3
-j, [--javascript=JAVASCRIPT] # Preconfigure for selected JavaScript library
# Default: jquery
-J, [--skip-javascript], [--no-skip-javascript] # Skip JavaScript files
[--dev], [--no-dev] # Setup the application with Gemfile pointing to your Rails checkout
[--edge], [--no-edge] # Setup the application with Gemfile pointing to Rails repository
[--skip-turbolinks], [--no-skip-turbolinks] # Skip turbolinks gem
-T, [--skip-test-unit], [--no-skip-test-unit] # Skip Test::Unit files
[--rc=RC] # Path to file containing extra configuration options for rails command
[--no-rc], [--no-no-rc] # Skip loading of extra configuration options from .railsrc file
Runtime options:
-f, [--force] # Overwrite files that already exist
-p, [--pretend], [--no-pretend] # Run but do not make any changes
-q, [--quiet], [--no-quiet] # Suppress status output
-s, [--skip], [--no-skip] # Skip files that already exist
Rails options:
-h, [--help], [--no-help] # Show this help message and quit
-v, [--version], [--no-version] # Show Rails version number and quit
Description:
The 'rails new' command creates a new Rails application with a default
directory structure and configuration at the path you specify.
You can specify extra command-line arguments to be used every time
'rails new' runs in the .railsrc configuration file in your home directory.
Note that the arguments specified in the .railsrc file don't affect the
defaults values shown above in this help message.
Example:
rails new ~/Code/Ruby/weblog
This generates a skeletal Rails installation in ~/Code/Ruby/weblog.
See the README in the newly created application to get going.
kevindeMacBook-Pro:~ kevin$ bundle install
Could not locate Gemfile or .bundle/ directory
kevindeMacBook-Pro:~ kevin$ gem update
Updating installed gems
Updating actionmailer
Fetching: activesupport-5.0.0.1.gem (100%)
ERROR: Error installing actionmailer:
activesupport requires Ruby version >= 2.2.2.
Updating actionpack
ERROR: Error installing actionpack:
activesupport requires Ruby version >= 2.2.2.
Updating actionview
ERROR: Error installing actionview:
activesupport requires Ruby version >= 2.2.2.
Updating activejob
ERROR: Error installing activejob:
activesupport requires Ruby version >= 2.2.2.
Updating activemodel
ERROR: Error installing activemodel:
activesupport requires Ruby version >= 2.2.2.
Updating activerecord
ERROR: Error installing activerecord:
activesupport requires Ruby version >= 2.2.2.
Updating bigdecimal
Fetching: bigdecimal-1.2.7.gem (100%)
Building native extensions. This could take a while...
Successfully installed bigdecimal-1.2.7
Parsing documentation for bigdecimal-1.2.7
Installing ri documentation for bigdecimal-1.2.7
Installing darkfish documentation for bigdecimal-1.2.7
Done installing documentation for bigdecimal after 1 seconds
Updating executable-hooks
Fetching: executable-hooks-1.3.2.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing executable-hooks:
ERROR: Failed to build gem native extension.
/Users/kevin/.rvm/rubies/ruby-2.1.1/bin/ruby extconf.rb
/Users/kevin/.rvm/gems/ruby-2.1.1@rails420/gems/executable-hooks-1.3.2/lib/executable-hooks/regenerate_binstubs_command.rb:71:in `initialize': Permission denied @ rb_sysopen - /Users/kevin/.rvm/rubies/ruby-2.1.1/bin/fuzzy_match (Errno::EACCES)
from /Users/kevin/.rvm/gems/ruby-2.1.1@rails420/gems/executable-hooks-1.3.2/lib/executable-hooks/regenerate_binstubs_command.rb:71:in `open'
from /Users/kevin/.rvm/gems/ruby-2.1.1@rails420/gems/executable-hooks-1.3.2/lib/executable-hooks/regenerate_binstubs_command.rb:71:in `block in try_to_fix_binstubs'
from /Users/kevin/.rvm/gems/ruby-2.1.1@rails420/gems/executable-hooks-1.3.2/lib/executable-hooks/regenerate_binstubs_command.rb:69:in `map'
from /Users/kevin/.rvm/gems/ruby-2.1.1@rails420/gems/executable-hooks-1.3.2/lib/executable-hooks/regenerate_binstubs_command.rb:69:in `try_to_fix_binstubs'
from /Users/kevin/.rvm/gems/ruby-2.1.1@rails420/gems/executable-hooks-1.3.2/lib/executable-hooks/regenerate_binstubs_command.rb:46:in `block in execute_no_wrapper'
from /Users/kevin/.rvm/gems/ruby-2.1.1@rails420/gems/executable-hooks-1.3.2/lib/executable-hooks/regenerate_binstubs_command.rb:44:in `each'
from /Users/kevin/.rvm/gems/ruby-2.1.1@rails420/gems/executable-hooks-1.3.2/lib/executable-hooks/regenerate_binstubs_command.rb:44:in `execute_no_wrapper'
from extconf.rb:19:in `<main>'
bundler 1.12.5
bundler 1.6.1
byebug 9.0.5
erubis 2.7.0
executable-hooks 1.3.1
fuzzy_match 2.0.4
extconf failed, exit code 1
Gem files will remain installed in /Users/kevin/.rvm/gems/ruby-2.1.1@rails420/gems/executable-hooks-1.3.2 for inspection.
Results logged to /Users/kevin/.rvm/gems/ruby-2.1.1@rails420/extensions/x86_64-darwin-12/2.1.0-static/executable-hooks-1.3.2/gem_make.out
Updating fuzzy_match
Fetching: fuzzy_match-2.1.0.gem (100%)
Successfully installed fuzzy_match-2.1.0
Parsing documentation for fuzzy_match-2.1.0
Installing ri documentation for fuzzy_match-2.1.0
Installing darkfish documentation for fuzzy_match-2.1.0
Done installing documentation for fuzzy_match after 0 seconds
Updating io-console
Fetching: io-console-0.4.6.gem (100%)
Building native extensions. This could take a while...
Successfully installed io-console-0.4.6
Parsing documentation for io-console-0.4.6
Installing ri documentation for io-console-0.4.6
Installing darkfish documentation for io-console-0.4.6
Done installing documentation for io-console after 0 seconds
Updating json
Fetching: json-2.0.2.gem (100%)
Building native extensions. This could take a while...
Successfully installed json-2.0.2
Parsing documentation for json-2.0.2
Installing ri documentation for json-2.0.2
Installing darkfish documentation for json-2.0.2
Done installing documentation for json after 1 seconds
Updating psych
Fetching: psych-2.1.0.gem (100%)
Building native extensions. This could take a while...
Successfully installed psych-2.1.0
Parsing documentation for psych-2.1.0
Installing ri documentation for psych-2.1.0
Installing darkfish documentation for psych-2.1.0
Done installing documentation for psych after 1 seconds
Updating rack
ERROR: Error installing rack:
rack requires Ruby version >= 2.2.2.
Updating rails
ERROR: Error installing rails:
activesupport requires Ruby version >= 2.2.2.
Updating rails-dom-testing
Fetching: rails-dom-testing-2.0.1.gem (100%)
Successfully installed rails-dom-testing-2.0.1
Parsing documentation for rails-dom-testing-2.0.1
Installing ri documentation for rails-dom-testing-2.0.1
Installing darkfish documentation for rails-dom-testing-2.0.1
Done installing documentation for rails-dom-testing after 0 seconds
Updating railties
ERROR: Error installing railties:
activesupport requires Ruby version >= 2.2.2.
Updating rdoc
Fetching: rdoc-4.2.2.gem (100%)
Depending on your version of ruby, you may need to install ruby rdoc/ri data:
<= 1.8.6 : unsupported
= 1.8.7 : gem install rdoc-data; rdoc-data --install
= 1.9.1 : gem install rdoc-data; rdoc-data --install
>= 1.9.2 : nothing to do! Yay!
Successfully installed rdoc-4.2.2
Parsing documentation for rdoc-4.2.2
Installing ri documentation for rdoc-4.2.2
Installing darkfish documentation for rdoc-4.2.2
Done installing documentation for rdoc after 13 seconds
Updating rubygems-bundler
Building native extensions. This could take a while...
# In case of problems run the following command to update binstubs:
gem regenerate_binstubs
Successfully installed executable-hooks-1.3.2
Fetching: rubygems-bundler-1.4.4.gem (100%)
Successfully installed rubygems-bundler-1.4.4
Parsing documentation for executable-hooks-1.3.2
Installing ri documentation for executable-hooks-1.3.2
Installing darkfish documentation for executable-hooks-1.3.2
Parsing documentation for rubygems-bundler-1.4.4
Installing ri documentation for rubygems-bundler-1.4.4
Installing darkfish documentation for rubygems-bundler-1.4.4
Done installing documentation for executable-hooks, rubygems-bundler after 0 seconds
Updating test-unit
Fetching: power_assert-0.3.0.gem (100%)
Successfully installed power_assert-0.3.0
Fetching: test-unit-3.2.1.gem (100%)
Successfully installed test-unit-3.2.1
Parsing documentation for power_assert-0.3.0
Installing ri documentation for power_assert-0.3.0
Installing darkfish documentation for power_assert-0.3.0
Parsing documentation for test-unit-3.2.1
Installing ri documentation for test-unit-3.2.1
Installing darkfish documentation for test-unit-3.2.1
Done installing documentation for power_assert, test-unit after 3 seconds
Gems updated: activesupport activesupport activesupport activesupport activesupport activesupport bigdecimal executable-hooks fuzzy_match io-console json psych rack activesupport rails-dom-testing activesupport rdoc executable-hooks rubygems-bundler power_assert test-unit
kevindeMacBook-Pro:~ kevin$ rails -v
Rails 4.2.0
kevindeMacBook-Pro:~ kevin$ ruby -v
ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-darwin12.0]
kevindeMacBook-Pro:~ kevin$ cd /Volumes/WORK/CodingNetHeiPis/dangqi
kevindeMacBook-Pro:dangqi kevin$ rails sever
Rails is not currently installed on this system. To get the latest version, simply type:
$ sudo gem install rails
You can then rerun your "rails" command.
kevindeMacBook-Pro:dangqi kevin$ ruby -v
ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-darwin12.0]
kevindeMacBook-Pro:dangqi kevin$ rvm use 2.1.1@rails420
Using /Users/kevin/.rvm/gems/ruby-2.1.1 with gemset rails420
kevindeMacBook-Pro:dangqi kevin$ rails server
Could not find nokogiri-1.6.6.2 in any of the sources
Run `bundle install` to install missing gems.
kevindeMacBook-Pro:dangqi kevin$ bundle install
Fetching source index from https://ruby.taobao.org/
Could not verify the SSL certificate for
https://ruby.taobao.org/quick/Marshal.4.8/nokogiri-1.6.6.2.gemspec.rz.
There is a chance you are experiencing a man-in-the-middle attack, but most
likely your system doesn't have the CA certificates needed for verification. For
information about OpenSSL certificates, see http://bit.ly/ruby-ssl. To connect
without using SSL, edit your Gemfile sources and change 'https' to 'http'.
kevindeMacBook-Pro:dangqi kevin$ gem sources
*** CURRENT SOURCES ***
https://rubygems.org/
kevindeMacBook-Pro:dangqi kevin$ gemfile sources
-bash: gemfile: command not found
kevindeMacBook-Pro:dangqi kevin$ Gemfile sources
-bash: Gemfile: command not found
kevindeMacBook-Pro:dangqi kevin$ sudo gem sources
Password:
*** CURRENT SOURCES ***
https://rubygems.org/
kevindeMacBook-Pro:dangqi kevin$ sudo gem sources -r https://rubygems.org/
https://rubygems.org/ removed from sources
kevindeMacBook-Pro:dangqi kevin$ sudo gem sources -a https://ruby.ruby-china.org/
Error fetching https://ruby.ruby-china.org/:
no such name (https://ruby.ruby-china.org/specs.4.8.gz)
kevindeMacBook-Pro:dangqi kevin$ sudo gem sources -a https://gems.ruby-china.org/
https://gems.ruby-china.org/ added to sources
kevindeMacBook-Pro:dangqi kevin$ sudo gem sources
*** CURRENT SOURCES ***
https://gems.ruby-china.org/
kevindeMacBook-Pro:dangqi kevin$ gem sources
*** CURRENT SOURCES ***
https://gems.ruby-china.org/
kevindeMacBook-Pro:dangqi kevin$ bundle install
Fetching source index from https://ruby.taobao.org/
Could not verify the SSL certificate for
https://ruby.taobao.org/quick/Marshal.4.8/nokogiri-1.6.6.2.gemspec.rz.
There is a chance you are experiencing a man-in-the-middle attack, but most
likely your system doesn't have the CA certificates needed for verification. For
information about OpenSSL certificates, see http://bit.ly/ruby-ssl. To connect
without using SSL, edit your Gemfile sources and change 'https' to 'http'.
kevindeMacBook-Pro:dangqi kevin$ rails server
Could not find nokogiri-1.6.6.2 in any of the sources
Run `bundle install` to install missing gems.
kevindeMacBook-Pro:dangqi kevin$ curcurl http://curl.haxx.se/ca/cacert.pem -o /usr/local/etc/openssl/cert.pem
-bash: curcurl: command not found
kevindeMacBook-Pro:dangqi kevin$ curl http://curl.haxx.se/ca/cacert.pem -o /usr/local/etc/openssl/cert.pem
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 304 100 304 0 0 203 0 0:00:01 0:00:01 --:--:-- 203
kevindeMacBook-Pro:dangqi kevin$ bundle install
Fetching source index from https://ruby.taobao.org/
Could not verify the SSL certificate for
https://ruby.taobao.org/quick/Marshal.4.8/nokogiri-1.6.6.2.gemspec.rz.
There is a chance you are experiencing a man-in-the-middle attack, but most
likely your system doesn't have the CA certificates needed for verification. For
information about OpenSSL certificates, see http://bit.ly/ruby-ssl. To connect
without using SSL, edit your Gemfile sources and change 'https' to 'http'.
kevindeMacBook-Pro:dangqi kevin$ gem sources
*** CURRENT SOURCES ***
https://gems.ruby-china.org/
kevindeMacBook-Pro:dangqi kevin$ sudo gem sources
Password:
*** CURRENT SOURCES ***
https://gems.ruby-china.org/
kevindeMacBook-Pro:dangqi kevin$ bundle install
Fetching source index from https://ruby.taobao.org/
Could not verify the SSL certificate for
https://ruby.taobao.org/quick/Marshal.4.8/nokogiri-1.6.6.2.gemspec.rz.
There is a chance you are experiencing a man-in-the-middle attack, but most
likely your system doesn't have the CA certificates needed for verification. For
information about OpenSSL certificates, see http://bit.ly/ruby-ssl. To connect
without using SSL, edit your Gemfile sources and change 'https' to 'http'.
kevindeMacBook-Pro:dangqi kevin$ open .rvm
The file /Volumes/WORK/CodingNetHeiPis/dangqi/.rvm does not exist.
kevindeMacBook-Pro:dangqi kevin$ open ./rvm
The file /Volumes/WORK/CodingNetHeiPis/dangqi/rvm does not exist.
kevindeMacBook-Pro:dangqi kevin$ open /usr/bin/
kevindeMacBook-Pro:dangqi kevin$ rvm pkg install openssl
Beware, 'rvm pkg ...' is deprecated, read about the new autolibs feature: 'rvm help autolibs'.
Checking requirements for osx.
Certificates in '/usr/local/etc/openssl/cert.pem' are already up to date.
Requirements installation successful.
Fetching openssl-1.0.1i.tar.gz to /Users/kevin/.rvm/archives
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 4318k 100 4318k 0 0 545k 0 0:00:07 0:00:07 --:--:-- 955k
Extracting openssl to /Users/kevin/.rvm/src/openssl-1.0.1i....
Configuring openssl in /Users/kevin/.rvm/src/openssl-1.0.1i....................-
Compiling openssl in /Users/kevin/.rvm/src/openssl-1.0.1i......................-
Installing openssl to /Users/kevin/.rvm/usr....................................|
Please note that it's required to reinstall all rubies:
rvm reinstall all --force
Updating openssl certificates....
kevindeMacBook-Pro:dangqi kevin$ rails server
Could not find nokogiri-1.6.6.2 in any of the sources
Run `bundle install` to install missing gems.
kevindeMacBook-Pro:dangqi kevin$ bundle install
Fetching source index from https://ruby.taobao.org/
^Z
[1]+ Stopped bundle install
kevindeMacBook-Pro:dangqi kevin$ where gemfile
-bash: where: command not found
kevindeMacBook-Pro:dangqi kevin$ gemfile -h
-bash: gemfile: command not found
kevindeMacBook-Pro:dangqi kevin$ gem sources
*** CURRENT SOURCES ***
https://gems.ruby-china.org/
kevindeMacBook-Pro:dangqi kevin$ bundle install
Fetching source index from https://ruby.taobao.org/
Could not verify the SSL certificate for
https://ruby.taobao.org/quick/Marshal.4.8/nokogiri-1.6.6.2.gemspec.rz.
There is a chance you are experiencing a man-in-the-middle attack, but most
likely your system doesn't have the CA certificates needed for verification. For
information about OpenSSL certificates, see http://bit.ly/ruby-ssl. To connect
without using SSL, edit your Gemfile sources and change 'https' to 'http'.
kevindeMacBook-Pro:dangqi kevin$ bundle install
Fetching gem metadata from https://gems.ruby-china.org/............
Fetching version metadata from https://gems.ruby-china.org/..
Resolving dependencies...
Using rake 10.4.2
Using i18n 0.7.0
Using json 1.8.3
Using minitest 5.8.2
Using thread_safe 0.3.5
Using builder 3.2.2
Using erubis 2.7.0
Using mini_portile 0.6.2
Using rack 1.6.4
Installing mime-types 2.4.3
Using arel 6.0.3
Installing awesome_print 1.6.1
Installing bcrypt 3.1.10 with native extensions
Installing coderay 1.1.0
Using debug_inspector 0.0.2
Using bundler 1.12.5
Installing cancancan 1.13.1
Installing hitimes 1.2.3 with native extensions
Installing chinese_pinyin 1.0.0
Using thor 0.19.1
Installing connection_pool 2.2.0
Installing dotenv 2.0.2
Installing request_store 1.2.0
Installing multipart-post 2.0.0
Installing multi_xml 0.5.5
Installing jwt 1.5.2
Installing open4 1.3.4
Installing mina-scp 0.1.2
Installing multi_json 1.11.2
Installing mysql2 0.3.20 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/Users/kevin/.rvm/rubies/ruby-2.1.1/bin/ruby extconf.rb
checking for ruby/thread.h... yes
checking for rb_thread_call_without_gvl() in ruby/thread.h... yes
checking for rb_thread_blocking_region()... yes
checking for rb_wait_for_single_fd()... yes
checking for rb_hash_dup()... yes
checking for rb_intern3()... yes
checking for mysql_query() in -lmysqlclient... no
-----
libmysqlclient is missing. Trying again with extra runtime libraries...
-----
checking for main() in -lm... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lz... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lsocket... no
checking for main() in -lnsl... no
checking for main() in -lmygcc... no
-----
libmysqlclient is missing. You may need to 'brew install mysql' or 'port install mysql', and try again.
-----
*** 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=/Users/kevin/.rvm/rubies/ruby-2.1.1/bin/ruby
--with-mysql-dir
--without-mysql-dir
--with-mysql-include
--without-mysql-include=${mysql-dir}/include
--with-mysql-lib
--without-mysql-lib=${mysql-dir}/lib
--with-mysql-config
--without-mysql-config
--with-mysql-dir
--without-mysql-dir
--with-mysql-include
--without-mysql-include=${mysql-dir}/include
--with-mysql-lib
--without-mysql-lib=${mysql-dir}/lib
--with-mysqlclientlib
--without-mysqlclientlib
--with-mlib
--without-mlib
--with-mysqlclientlib
--without-mysqlclientlib
--with-zlib
--without-zlib
--with-mysqlclientlib
--without-mysqlclientlib
--with-socketlib
--without-socketlib
--with-nsllib
--without-nsllib
--with-mygcclib
--without-mygcclib
extconf failed, exit code 1
Gem files will remain installed in /Users/kevin/.rvm/gems/ruby-2.1.1@rails420/gems/mysql2-0.3.20 for inspection.
Results logged to /Users/kevin/.rvm/gems/ruby-2.1.1@rails420/extensions/x86_64-darwin-12/2.1.0-static/mysql2-0.3.20/gem_make.out
Installing netrc 0.11.0
Installing oauth 0.4.7
Installing puma 2.15.3 with native extensions
Installing ruby-hmac 0.4.0
Installing rails_param 0.9.0
Installing redis 3.2.1
Installing rufus-scheduler 3.1.8
Installing settingslogic 2.0.9
Installing faker 1.5.0
Using tzinfo 1.2.2
Installing nokogiri 1.6.6.2 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/Users/kevin/.rvm/rubies/ruby-2.1.1/bin/ruby extconf.rb
checking if the C compiler accepts ... yes
checking if the C compiler accepts -Wno-error=unused-command-line-argument-hard-error-in-future... no
Building nokogiri using packaged libraries.
-----
The file "/usr/include/iconv.h" is missing in your build environment,
which means you haven't installed Xcode Command Line Tools properly.
To install Command Line Tools, try running `xcode-select --install` on
terminal and follow the instructions. If it fails, open Xcode.app,
select from the menu "Xcode" - "Open Developer Tool" - "More Developer
Tools" to open the developer site, download the installer for your OS
version and run it.
-----
*** 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=/Users/kevin/.rvm/rubies/ruby-2.1.1/bin/ruby
--help
--clean
--use-system-libraries
--enable-static
--disable-static
--with-zlib-dir
--without-zlib-dir
--with-zlib-include
--without-zlib-include=${zlib-dir}/include
--with-zlib-lib
--without-zlib-lib=${zlib-dir}/lib
--enable-cross-build
--disable-cross-build
extconf failed, exit code 1
Gem files will remain installed in /Users/kevin/.rvm/gems/ruby-2.1.1@rails420/gems/nokogiri-1.6.6.2 for inspection.
Results logged to /Users/kevin/.rvm/gems/ruby-2.1.1@rails420/extensions/x86_64-darwin-12/2.1.0-static/nokogiri-1.6.6.2/gem_make.out
Using rack-test 0.6.3
Installing sprockets 3.4.0
Installing mail 2.6.3
Installing better_errors 2.1.1
Installing binding_of_caller 0.7.2 with native extensions
Installing timers 4.1.1
Installing faraday 0.9.2
Installing httparty 0.13.7
Installing mina 0.3.7
An error occurred while installing mysql2 (0.3.20), and Bundler cannot continue.
Make sure that `gem install mysql2 -v '0.3.20'` succeeds before bundling.
kevindeMacBook-Pro:dangqi kevin$ gem list
*** LOCAL GEMS ***
actionmailer (4.2.0)
actionpack (4.2.0)
actionview (4.2.0)
activejob (4.2.0)
activemodel (4.2.0)
activerecord (4.2.0)
activesupport (4.2.6, 4.2.0)
arel (7.1.1, 6.0.3)
awesome_print (1.6.1)
bcrypt (3.1.10)
better_errors (2.1.1)
bigdecimal (1.2.7, 1.2.4)
binding_of_caller (0.7.2)
builder (3.2.2)
bundler (1.12.5, 1.6.1)
bundler-unload (1.0.2)
byebug (9.0.5)
cancancan (1.13.1)
chinese_pinyin (1.0.0)
coderay (1.1.0)
coffee-script-source (1.10.0)
concurrent-ruby (1.0.3.pre3, 1.0.2)
connection_pool (2.2.0)
crass (1.0.2)
debug_inspector (0.0.2)
dotenv (2.0.2)
erubis (2.7.0)
execjs (2.7.0)
executable-hooks (1.3.2, 1.3.1)
faker (1.5.0)
faraday (0.9.2)
ffi (1.9.14)
fuzzy_match (2.1.0, 2.0.4)
gem-wrappers (1.2.7, 1.2.4)
globalid (0.3.7)
hitimes (1.2.3)
httparty (0.13.7)
i18n (0.7.0)
io-console (0.4.6, 0.4.2)
json (2.0.2, 1.8.3, 1.8.1)
jwt (1.5.2)
loofah (2.1.0.rc2)
mail (2.6.4, 2.6.3)
method_source (0.8.2)
mime-types (3.1, 2.4.3)
mime-types-data (3.2016.0521)
mina (0.3.7)
mina-scp (0.1.2)
mini_portile (0.6.2)
mini_portile2 (2.1.0)
minitest (5.9.0, 5.8.2, 4.7.5)
multi_json (1.12.1, 1.11.2)
multi_xml (0.5.5)
multipart-post (2.0.0)
nap (1.1.0)
netrc (0.11.0)
nio4r (1.2.1)
nokogiri (1.6.8)
oauth (0.4.7)
open4 (1.3.4)
pkg-config (1.1.7)
power_assert (0.3.0)
psych (2.1.0, 2.0.3)
puma (3.6.0, 2.15.3)
rack (1.6.4)
rack-test (0.6.3)
rails (4.2.0)
rails-deprecated_sanitizer (1.0.3)
rails-dom-testing (2.0.1, 1.0.7)
rails-html-sanitizer (1.0.3)
rails_param (0.9.0)
railties (4.2.0)
rake (11.2.2, 10.4.2, 10.1.0)
rb-fsevent (0.9.7)
rdoc (4.2.2, 4.1.0)
redis (3.2.1)
request_store (1.2.0)
ruby-hmac (0.4.0)
rubygems-bundler (1.4.4, 1.4.3)
rufus-scheduler (3.1.8)
rvm (1.11.3.9)
sass (3.4.22)
settingslogic (2.0.9)
spring (1.7.2)
sprockets (4.0.0.beta2, 3.4.0)
sprockets-rails (3.1.1)
sqlite3 (1.3.11)
test-unit (3.2.1, 2.1.1.0)
thor (0.19.1)
thread_safe (0.3.5)
tilt (2.0.5)
timers (4.1.1)
turbolinks-source (5.0.0)
tzinfo (1.2.2)
websocket-extensions (0.1.2)
kevindeMacBook-Pro:dangqi kevin$ rails server
Could not find nokogiri-1.6.6.2 in any of the sources
Run `bundle install` to install missing gems.
kevindeMacBook-Pro:dangqi kevin$ bundle install
Fetching gem metadata from https://gems.ruby-china.org/............
Fetching version metadata from https://gems.ruby-china.org/..
Resolving dependencies...
Using rake 10.4.2
Using i18n 0.7.0
Using json 1.8.3
Using minitest 5.8.2
Using thread_safe 0.3.5
Using builder 3.2.2
Using erubis 2.7.0
Using mini_portile 0.6.2
Using rack 1.6.4
Using mime-types 2.4.3
Using arel 6.0.3
Using awesome_print 1.6.1
Using bcrypt 3.1.10
Using coderay 1.1.0
Using debug_inspector 0.0.2
Using bundler 1.12.5
Using cancancan 1.13.1
Using hitimes 1.2.3
Using chinese_pinyin 1.0.0
Using thor 0.19.1
Using connection_pool 2.2.0
Using dotenv 2.0.2
Using request_store 1.2.0
Using multipart-post 2.0.0
Using multi_xml 0.5.5
Using jwt 1.5.2
Using open4 1.3.4
Using mina-scp 0.1.2
Using multi_json 1.11.2
Installing mysql2 0.3.20 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/Users/kevin/.rvm/rubies/ruby-2.1.1/bin/ruby extconf.rb
checking for ruby/thread.h... yes
checking for rb_thread_call_without_gvl() in ruby/thread.h... yes
checking for rb_thread_blocking_region()... yes
checking for rb_wait_for_single_fd()... yes
checking for rb_hash_dup()... yes
checking for rb_intern3()... yes
checking for mysql_query() in -lmysqlclient... no
-----
libmysqlclient is missing. Trying again with extra runtime libraries...
-----
checking for main() in -lm... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lz... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lsocket... no
checking for main() in -lnsl... no
checking for main() in -lmygcc... no
-----
libmysqlclient is missing. You may need to 'brew install mysql' or 'port install mysql', and try again.
-----
*** 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=/Users/kevin/.rvm/rubies/ruby-2.1.1/bin/ruby
--with-mysql-dir
--without-mysql-dir
--with-mysql-include
--without-mysql-include=${mysql-dir}/include
--with-mysql-lib
--without-mysql-lib=${mysql-dir}/lib
--with-mysql-config
--without-mysql-config
--with-mysql-dir
--without-mysql-dir
--with-mysql-include
--without-mysql-include=${mysql-dir}/include
--with-mysql-lib
--without-mysql-lib=${mysql-dir}/lib
--with-mysqlclientlib
--without-mysqlclientlib
--with-mlib
--without-mlib
--with-mysqlclientlib
--without-mysqlclientlib
--with-zlib
--without-zlib
--with-mysqlclientlib
--without-mysqlclientlib
--with-socketlib
--without-socketlib
--with-nsllib
--without-nsllib
--with-mygcclib
--without-mygcclib
extconf failed, exit code 1
Gem files will remain installed in /Users/kevin/.rvm/gems/ruby-2.1.1@rails420/gems/mysql2-0.3.20 for inspection.
Results logged to /Users/kevin/.rvm/gems/ruby-2.1.1@rails420/extensions/x86_64-darwin-12/2.1.0-static/mysql2-0.3.20/gem_make.out
Using netrc 0.11.0
Using oauth 0.4.7
Using puma 2.15.3
Using ruby-hmac 0.4.0
Using rails_param 0.9.0
Using redis 3.2.1
Using rufus-scheduler 3.1.8
Using settingslogic 2.0.9
Using faker 1.5.0
Using tzinfo 1.2.2
Installing nokogiri 1.6.6.2 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/Users/kevin/.rvm/rubies/ruby-2.1.1/bin/ruby extconf.rb
checking if the C compiler accepts ... yes
checking if the C compiler accepts -Wno-error=unused-command-line-argument-hard-error-in-future... no
Building nokogiri using packaged libraries.
-----
The file "/usr/include/iconv.h" is missing in your build environment,
which means you haven't installed Xcode Command Line Tools properly.
To install Command Line Tools, try running `xcode-select --install` on
terminal and follow the instructions. If it fails, open Xcode.app,
select from the menu "Xcode" - "Open Developer Tool" - "More Developer
Tools" to open the developer site, download the installer for your OS
version and run it.
-----
*** 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=/Users/kevin/.rvm/rubies/ruby-2.1.1/bin/ruby
--help
--clean
--use-system-libraries
--enable-static
--disable-static
--with-zlib-dir
--without-zlib-dir
--with-zlib-include
--without-zlib-include=${zlib-dir}/include
--with-zlib-lib
--without-zlib-lib=${zlib-dir}/lib
--enable-cross-build
--disable-cross-build
extconf failed, exit code 1
Gem files will remain installed in /Users/kevin/.rvm/gems/ruby-2.1.1@rails420/gems/nokogiri-1.6.6.2 for inspection.
Results logged to /Users/kevin/.rvm/gems/ruby-2.1.1@rails420/extensions/x86_64-darwin-12/2.1.0-static/nokogiri-1.6.6.2/gem_make.out
Using rack-test 0.6.3
Using sprockets 3.4.0
Using mail 2.6.3
Using better_errors 2.1.1
Using binding_of_caller 0.7.2
Using timers 4.1.1
Using faraday 0.9.2
Using httparty 0.13.7
Using mina 0.3.7
An error occurred while installing mysql2 (0.3.20), and Bundler cannot continue.
Make sure that `gem install mysql2 -v '0.3.20'` succeeds before bundling.
kevindeMacBook-Pro:dangqi kevin$ gem install mysql2 -v 0.3.20
Building native extensions. This could take a while...
ERROR: Error installing mysql2:
ERROR: Failed to build gem native extension.
/Users/kevin/.rvm/rubies/ruby-2.1.1/bin/ruby extconf.rb
checking for ruby/thread.h... yes
checking for rb_thread_call_without_gvl() in ruby/thread.h... yes
checking for rb_thread_blocking_region()... yes
checking for rb_wait_for_single_fd()... yes
checking for rb_hash_dup()... yes
checking for rb_intern3()... yes
checking for mysql_query() in -lmysqlclient... no
-----
libmysqlclient is missing. Trying again with extra runtime libraries...
-----
checking for main() in -lm... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lz... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lsocket... no
checking for main() in -lnsl... no
checking for main() in -lmygcc... no
-----
libmysqlclient is missing. You may need to 'brew install mysql' or 'port install mysql', and try again.
-----
*** 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=/Users/kevin/.rvm/rubies/ruby-2.1.1/bin/ruby
--with-mysql-dir
--without-mysql-dir
--with-mysql-include
--without-mysql-include=${mysql-dir}/include
--with-mysql-lib
--without-mysql-lib=${mysql-dir}/lib
--with-mysql-config
--without-mysql-config
--with-mysql-dir
--without-mysql-dir
--with-mysql-include
--without-mysql-include=${mysql-dir}/include
--with-mysql-lib
--without-mysql-lib=${mysql-dir}/lib
--with-mysqlclientlib
--without-mysqlclientlib
--with-mlib
--without-mlib
--with-mysqlclientlib
--without-mysqlclientlib
--with-zlib
--without-zlib
--with-mysqlclientlib
--without-mysqlclientlib
--with-socketlib
--without-socketlib
--with-nsllib
--without-nsllib
--with-mygcclib
--without-mygcclib
extconf failed, exit code 1
Gem files will remain installed in /Users/kevin/.rvm/gems/ruby-2.1.1@rails420/gems/mysql2-0.3.20 for inspection.
Results logged to /Users/kevin/.rvm/gems/ruby-2.1.1@rails420/extensions/x86_64-darwin-12/2.1.0-static/mysql2-0.3.20/gem_make.out
kevindeMacBook-Pro:dangqi kevin$ brew install mysql
==> Downloading https://homebrew.bintray.com/bottles/mysql-5.7.14.el_capitan.bot
######################################################################## 100.0%
==> Pouring mysql-5.7.14.el_capitan.bottle.tar.gz
==> /usr/local/Cellar/mysql/5.7.14/bin/mysqld --initialize-insecure --user=kevin
==> Caveats
We've installed your MySQL database without a root password. To secure it run:
mysql_secure_installation
To connect run:
mysql -uroot
To have launchd start mysql now and restart at login:
brew services start mysql
Or, if you don't want/need a background service you can just run:
mysql.server start
==> Summary
Category Archives: How to Fix
Android studio compile and run report: AAPT2 error: check logs for details
AAPT2 error: check logs for details Most issues are resource files or code errors, but Android Studio does not prompt that file to report an error
com.android.build.gradle.tasks.ResourceException: Error: java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: AAPT2 error: check logs for details
at com.android.build.gradle.tasks.MergeResources.doFullTaskAction(MergeResources.java:296)
at com.android.build.gradle.internal.tasks.IncrementalTask.taskAction(IncrementalTask.java:106)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73)
at org.gradle.api.internal.project.taskfactory.IncrementalTaskAction.doExecute(IncrementalTaskAction.java:46)
at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:39)
at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:26)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$1.run(ExecuteActionsTaskExecuter.java:121)
at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)
at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:199)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:110)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:110)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:92)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:70)
at org.gradle.api.internal.tasks.execution.OutputDirectoryCreatingTaskExecuter.execute(OutputDirectoryCreatingTaskExecuter.java:51)
at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:62)
at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54)
at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:60)
at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:97)
at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:87)
at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:52)
at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54)
at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34)
at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker$1.run(DefaultTaskGraphExecuter.java:248)
at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)
at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:199)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:110)
at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:241)
at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:230)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.processTask(DefaultTaskPlanExecutor.java:123)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.access$200(DefaultTaskPlanExecutor.java:79)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:104)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:98)
at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.execute(DefaultTaskExecutionPlan.java:626)
at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.executeWithTask(DefaultTaskExecutionPlan.java:581)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.run(DefaultTaskPlanExecutor.java:98)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
at java.lang.Thread.run(Thread.java:745)
Caused by: Error: java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: AAPT2 error: check logs for details
at com.android.ide.common.res2.MergedResourceWriter.end(MergedResourceWriter.java:332)
at com.android.ide.common.res2.DataMerger.mergeData(DataMerger.java:301)
at com.android.ide.common.res2.ResourceMerger.mergeData(ResourceMerger.java:412)
at com.android.build.gradle.tasks.MergeResources.doFullTaskAction(MergeResources.java:285)
... 48 more
Suppressed: java.lang.RuntimeException: Some file processing failed, see logs for details
at com.android.builder.internal.aapt.QueuedResourceProcessor.waitForAll(QueuedResourceProcessor.java:121)
at com.android.builder.internal.aapt.QueuedResourceProcessor.end(QueuedResourceProcessor.java:141)
at com.android.builder.internal.aapt.v2.QueueableAapt2.close(QueueableAapt2.java:104)
at com.android.build.gradle.tasks.MergeResources.doFullTaskAction(MergeResources.java:293)
... 48 more
Caused by: java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: AAPT2 error: check logs for details
at com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:503)
at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:462)
at com.google.common.util.concurrent.AbstractFuture$TrustedFuture.get(AbstractFuture.java:79)
at com.android.ide.common.res2.MergedResourceWriter.end(MergedResourceWriter.java:327)
... 51 more
Caused by: java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: AAPT2 error: check logs for details
at com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:503)
at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:462)
at com.google.common.util.concurrent.AbstractFuture$TrustedFuture.get(AbstractFuture.java:79)
at com.android.builder.internal.aapt.v2.QueueableAapt2.lambda$compile$0(QueueableAapt2.java:136)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
... 1 more
Caused by: com.android.builder.internal.aapt.v2.Aapt2Exception: AAPT2 error: check logs for details
at com.android.builder.png.AaptProcess$NotifierProcessOutput.handleOutput(AaptProcess.java:443)
at com.android.builder.png.AaptProcess$NotifierProcessOutput.err(AaptProcess.java:395)
at com.android.builder.png.AaptProcess$ProcessOutputFacade.err(AaptProcess.java:312)
at com.android.utils.GrabProcessOutput$1.run(GrabProcessOutput.java:104)
We can’t find the specific error at all from this error!
Print error message
Directly operate in the Terminal of Android Studio and type a command:
gradlew compileDebugSources --stacktrace -info

originally was a layout file reporting a resource error!
VBoxManage.exe: error: Resize hard disk operation for this format is not implemented yet!
VirtualBox is running out of virtual disk space. Default is 10gb. Want to expand, the graphical interface did not find an actionable menu. Google solved it with VBoxManage, the command tool that comes with Vbox.
C:\Program Files\Oracle\VirtualBox> VBoxManage modifyhd e:\ Vbox \Ubuntu12.04\ ubuntu1204-201302-disk1.vmdk –resize 30000
0%…
Progress state: VBOX_E_NOT_SUPPORTED
VBoxManage.exe: error: Resize hard disk operation for this format is not implemented yet!
the original virtual machine used VMDK format, this command can only support vdi format.
found that you can use VBoxManager to convert virtual hard disk storage file format
C:\Program Files\Oracle\VirtualBox> VBoxManage clonehd e:\ Vbox \Ubuntu12.04\ ubuntu1204-201302-disk1.vmdk e:\ Vbox \ ubuntu1204-201310-disk1.vdi –format vdi
0%… 10%… 20%… 30%… 40%… 50%… 60%… 70%… 80%… 90%… Clone hard disk created in format ‘VDI’. UUID: 455b7aa4-d776-8353-d9b5b3fa1
09b
C:\Program Files\Oracle\VirtualBox> Clone hard disk created in format ‘VDI’. VBoxManage modifyhd e:\ Vbox \Ubuntu12.04\Ubunt
u1204-201310-disk1.vdi –resize 30000
0%… 10%… 20%… 30%… 40%… 50%… 60%… 70%… 80%… 90%… 100%
No more reporting that mistake.
This article from: http://blog.sina.com.cn/s/blog_484d87770101olzr.html
When linux installs rpm, it prompts: can’t create transaction lock on /var/lib/rpm/.rpm.lock error
[hadoop@hadoop186 rpm]$ rpm -ivh libconfuse-2.5-4.el5.x86_64.rpm
Warning: libconfuse-2.5-4.el5.x86_64.rpm: ヘッダ V3 DSA/SHA1 Signature, key ID 217521f6: NOKEY
エラー: can't create transaction lock on /var/lib/rpm/.rpm.lock (許可がありません)
Error reason: Permission problem
[hadoop@hadoop186 sbin]$ ll /var/lib/rpm/
Totally 95584
-rw-r--r--. 1 root root 10678272 7月 10 11:41 2014 Basenames
-rw-r--r--. 1 root root 12288 5月 4 11:58 2014 Conflictname
-rw-r--r--. 1 root root 2170880 7月 10 11:41 2014 Dirnames
-rw-r--r--. 1 root root 10604544 7月 10 11:41 2014 Filedigests
-rw-r--r--. 1 root root 36864 7月 10 11:41 2014 Group
-rw-r--r--. 1 root root 24576 7月 10 11:41 2014 Installtid
-rw-r--r--. 1 root root 86016 7月 10 11:41 2014 Name
-rw-r--r--. 1 root root 24576 5月 5 15:29 2014 Obsoletename
-rw-r--r--. 1 root root 73293824 7月 10 11:41 2014 Packages
-rw-r--r--. 1 root root 1331200 7月 10 11:41 2014 Providename
-rw-r--r--. 1 root root 667648 7月 10 11:41 2014 Provideversion
-rw-r--r--. 1 root root 12288 3月 27 14:11 2014 Pubkeys
-rw-r--r--. 1 root root 512000 7月 10 11:41 2014 Requirename
-rw-r--r--. 1 root root 323584 7月 10 11:41 2014 Requireversion
-rw-r--r--. 1 root root 163840 7月 10 11:41 2014 Sha1header
-rw-r--r--. 1 root root 77824 7月 10 11:41 2014 Sigmd5
-rw-r--r--. 1 root root 12288 3月 27 14:46 2014 Triggername
-rw-r--r-- 1 root root 24576 7月 10 11:41 2014 __db.001
-rw-r--r-- 1 root root 229376 7月 10 11:41 2014 __db.002
-rw-r--r-- 1 root root 1318912 7月 10 11:41 2014 __db.003
-rw-r--r-- 1 root root 753664 7月 10 11:41 2014 __db.004
solution:
Enter “su” and password at the terminal, log in root, and log in as root will not be prompted
[hadoop@hadoop186 rpm]$ su - root
パスワード:
[root@hadoop186 ~]# pwd
/root
[root@hadoop186 ~]# cd /home/hadoop/rpm/
[root@hadoop186 rpm]# ll
合計 164
-rw-rw-r--. 1 hadoop hadoop 31792 6月 20 17:00 2014 argtable-2.13-2.el6.x86_64.rpm
-rw-rw-r-- 1 hadoop hadoop 87025 7月 10 11:38 2014 libconfuse-2.5-4.el5.x86_64.rpm
-rw-rw-r-- 1 hadoop hadoop 15013 7月 10 11:38 2014 libconfuse-devel-2.5-4.el5.x86_64.rpm
-rw-rw-r--. 1 hadoop hadoop 26256 6月 20 17:00 2014 log4c-devel-1.2.4-1.el6.x86_64.rpm
[root@hadoop186 rpm]# rpm -ivh libconfuse-2.5-4.el5.x86_64.rpm
警告: libconfuse-2.5-4.el5.x86_64.rpm: ヘッダ V3 DSA/SHA1 Signature, key ID 217521f6: NOKEY
準備中... ########################################### [100%]
1:libconfuse ########################################### [100%]
[root@hadoop186 rpm]# rpm -ivh libconfuse-devel-2.5-4.el5.x86_64.rpm
警告: libconfuse-devel-2.5-4.el5.x86_64.rpm: ヘッダ V3 DSA/SHA1 Signature, key ID 217521f6: NOKEY
準備中... ########################################### [100%]
1:libconfuse-devel ########################################### [100%]
[root@hadoop186 rpm]#
Unhandled rejection Error: EACCES: permission denied, open ‘/Users
Unhandled rejection Error: EACCES: permission denied, open ‘/Users

Reason: Insufficient permissions
Solutions:
sudo chown -R $(whoami) ~/.npm

Re-Create
Win10 install Android Studio error Unable to elevate [error: 1812] solution
spyder an error ocurred while starting the kernel (How to Fix)
The first method:
The problem is solved by typing Spyder — Reset in the terminal and resetting the Spyder configuration.
I tried this method and found that the problem was not solved. You can try it. Maybe yours can work out.
The second way
conda update spyder ipykernel tornado pyzmq
After running a bunch of libraries, I found that my problem was still unresolved.
The above two methods are more commonly used on the Internet. But in my case the problem has not been solved. I don’t know what’s going on. Finally, I thought to myself, why didn’t this happen before?Now it does. Comparison one is that the data set has changed. I used a 0.2 scale of data set in the program to perform the validation operation. Now 20% of the data set is not an integer. And Then I changed it. The kernel crash problem found above was resolved.
Maybe I’m doing this as an example, but I’ll put it up here for you to look at.
Raspberry Pi USB drive-free camera error libv4l2: error setting pixformat: Device or resource busy, etc.
The article directories
Learn to record the causes of errors and their solutions
Learning record
I have searched many times on the Internet before, but I haven’t found a solution yet. Suddenly, I came up with a solution.
error
libv4l2: error setting pixformat: Device or resource busy
VIDEOIO ERROR: libv4l unable to ioctl S_FMT
libv4l2: error setting pixformat: Device or resource busy
libv4l1: error setting pixformat: Device or resource busy
VIDEOIO ERROR: libv4l unable to ioctl VIDIOCSPICT
What you see: Sometimes the camera doesn’t work, so you have to plug it in.
Reasons and solutions
I didn’t know why there was such an error. Recently, I read some relevant books and found that I was missing a key line of code.
int main( int argc, const char** argv )
{
VideoCapture cap;
cap.open(0);
if(!cap.isOpened())
return -1;
while(1)
{
Mat frame;
cap >> frame;
imshow("Video", frame);
if(waitKey(30) >= 0)
break;
}
cap.release();
return 0;
}
Where, the key sentence cap.release(); is used to release the cap of the camera.
will cause the above error if it is not released.
Vue Error-Error message: Syntax Error: Assigning to rvalue.
Then I continued to search for information, so I found the problem on CSDN blogger: Rabbit Gone away [click to open link].
In the HTML tag, one v-model bound property value is not declared .
So the problem was solved instantly, and I read back the wrong information afterwards, which actually gave me a very clear wrong position. As shown in figure:

It seems that we still need more observation, careful deBug ah…
ERROR 1044 (42000): Access denied for user ”@’localhost’ to database ‘mysql’
ERROR 1044 (42000): Access denied for user ”@’localhost’ to database ‘mysql’
2018-01-30 11:22:06,667 [main] INFO [com.zheng.upms.rpc.ZhengUpmsRpcServiceApplication] - >>>>> zheng-upms-rpc-service running <<<<<
2018-01-30 11:22:06,999 [main] INFO [com.alibaba.dubbo.common.logger.LoggerFactory] - using logger: com.alibaba.dubbo.common.logger.log4j.Log4jLoggerAdapter
2018-01-30 11:22:12,815 [main] ERROR [com.alibaba.druid.pool.DruidDataSource] - init datasource error, url: jdbc:mysql://192.168.1.6:3316/zheng?useUnicode=true&characterEncoding=utf-8&autoReconnect=true
com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:377)
at com.mysql.jdbc.Util.getInstance(Util.java:360)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:935)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:924)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:870)
at com.mysql.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:2144)
at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2069)
at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:790)
at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:44)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:377)
at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:395)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:325)
at com.alibaba.druid.filter.FilterChainImpl.connection_connect(FilterChainImpl.java:148)
at com.alibaba.druid.filter.stat.StatFilter.connection_connect(StatFilter.java:211)
at com.alibaba.druid.filter.FilterChainImpl.connection_connect(FilterChainImpl.java:142)
at com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java:1377)
at com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java:1431)
at com.alibaba.druid.pool.DruidDataSource.init(DruidDataSource.java:632)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1758)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1695)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1624)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedMap(BeanDefinitionValueResolver.java:407)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:165)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1531)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1276)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1531)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1276)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1531)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1276)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:208)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1138)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1066)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:585)
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:366)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1264)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:866)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:542)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83)
at com.zheng.upms.rpc.ZhengUpmsRpcServiceApplication.main(ZhengUpmsRpcServiceApplication.java:17)
Caused by: java.sql.SQLException: Access denied for user 'root'@'BCWQMPEKEKG1O0P' (using password: YES)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:996)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3887)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3823)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:870)
at com.mysql.jdbc.MysqlIO.proceedHandshakeWithPluggableAuthentication(MysqlIO.java:1659)
at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1206)
at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2234)
at com.mysql.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:2085)
... 80 more
2018-01-30 11:22:12,829 [main] ERROR [com.alibaba.druid.pool.DruidDataSource] - dataSource init error
com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:377)
at com.mysql.jdbc.Util.getInstance(Util.java:360)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:935)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:924)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:870)
at com.mysql.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:2144)
at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2069)
at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:790)
at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:44)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:377)
at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:395)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:325)
at com.alibaba.druid.filter.FilterChainImpl.connection_connect(FilterChainImpl.java:148)
at com.alibaba.druid.filter.stat.StatFilter.connection_connect(StatFilter.java:211)
at com.alibaba.druid.filter.FilterChainImpl.connection_connect(FilterChainImpl.java:142)
at com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java:1377)
at com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java:1431)
at com.alibaba.druid.pool.DruidDataSource.init(DruidDataSource.java:632)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1758)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1695)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1624)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedMap(BeanDefinitionValueResolver.java:407)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:165)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1531)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1276)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1531)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1276)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1531)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1276)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:208)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1138)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1066)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:585)
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:366)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1264)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:866)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:542)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83)
at com.zheng.upms.rpc.ZhengUpmsRpcServiceApplication.main(ZhengUpmsRpcServiceApplication.java:17)
Caused by: java.sql.SQLException: Access denied for user 'root'@'BCWQMPEKEKG1O0P' (using password: YES)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:996)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3887)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3823)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:870)
at com.mysql.jdbc.MysqlIO.proceedHandshakeWithPluggableAuthentication(MysqlIO.java:1659)
at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1206)
at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2234)
at com.mysql.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:2085)
... 80 more
2018-01-30 11:22:12,831 [main] INFO [com.alibaba.druid.pool.DruidDataSource] - {dataSource-1} inited
2018-01-30 11:22:12,832 [main] WARN [org.springframework.context.support.ClassPathXmlApplicationContext] - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'upmsSystemService': Unsatisfied dependency expressed through field 'upmsSystemMapper'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'upmsSystemMapper' defined in file [D:\file_manager_workspace\zheng\zheng\zheng-upms\zheng-upms-dao\target\classes\com\zheng\upms\dao\mapper\UpmsSystemMapper.class]: Cannot resolve reference to bean 'sqlSessionFactory' while setting bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [D:\file_manager_workspace\zheng\zheng\zheng-upms\zheng-upms-rpc-service\target\classes\META-INF\spring\applicationContext-jdbc.xml]: Cannot resolve reference to bean 'dataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in file [D:\file_manager_workspace\zheng\zheng\zheng-upms\zheng-upms-rpc-service\target\classes\META-INF\spring\applicationContext-jdbc.xml]: Cannot resolve reference to bean 'masterDataSource' while setting bean property 'targetDataSources' with key [TypedStringValue: value [masterDataSource], target type [class java.lang.String]]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'masterDataSource' defined in file [D:\file_manager_workspace\zheng\zheng\zheng-upms\zheng-upms-rpc-service\target\classes\META-INF\spring\applicationContext-jdbc.xml]: Invocation of init method failed; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.
Exception in thread "main" org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'upmsSystemService': Unsatisfied dependency expressed through field 'upmsSystemMapper'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'upmsSystemMapper' defined in file [D:\file_manager_workspace\zheng\zheng\zheng-upms\zheng-upms-dao\target\classes\com\zheng\upms\dao\mapper\UpmsSystemMapper.class]: Cannot resolve reference to bean 'sqlSessionFactory' while setting bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [D:\file_manager_workspace\zheng\zheng\zheng-upms\zheng-upms-rpc-service\target\classes\META-INF\spring\applicationContext-jdbc.xml]: Cannot resolve reference to bean 'dataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in file [D:\file_manager_workspace\zheng\zheng\zheng-upms\zheng-upms-rpc-service\target\classes\META-INF\spring\applicationContext-jdbc.xml]: Cannot resolve reference to bean 'masterDataSource' while setting bean property 'targetDataSources' with key [TypedStringValue: value [masterDataSource], target type [class java.lang.String]]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'masterDataSource' defined in file [D:\file_manager_workspace\zheng\zheng\zheng-upms\zheng-upms-rpc-service\target\classes\META-INF\spring\applicationContext-jdbc.xml]: Invocation of init method failed; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:588)
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:366)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1264)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:866)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:542)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83)
at com.zheng.upms.rpc.ZhengUpmsRpcServiceApplication.main(ZhengUpmsRpcServiceApplication.java:17)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'upmsSystemMapper' defined in file [D:\file_manager_workspace\zheng\zheng\zheng-upms\zheng-upms-dao\target\classes\com\zheng\upms\dao\mapper\UpmsSystemMapper.class]: Cannot resolve reference to bean 'sqlSessionFactory' while setting bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [D:\file_manager_workspace\zheng\zheng\zheng-upms\zheng-upms-rpc-service\target\classes\META-INF\spring\applicationContext-jdbc.xml]: Cannot resolve reference to bean 'dataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in file [D:\file_manager_workspace\zheng\zheng\zheng-upms\zheng-upms-rpc-service\target\classes\META-INF\spring\applicationContext-jdbc.xml]: Cannot resolve reference to bean 'masterDataSource' while setting bean property 'targetDataSources' with key [TypedStringValue: value [masterDataSource], target type [class java.lang.String]]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'masterDataSource' defined in file [D:\file_manager_workspace\zheng\zheng\zheng-upms\zheng-upms-rpc-service\target\classes\META-INF\spring\applicationContext-jdbc.xml]: Invocation of init method failed; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1531)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1276)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:208)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1138)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1066)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:585)
... 15 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [D:\file_manager_workspace\zheng\zheng\zheng-upms\zheng-upms-rpc-service\target\classes\META-INF\spring\applicationContext-jdbc.xml]: Cannot resolve reference to bean 'dataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in file [D:\file_manager_workspace\zheng\zheng\zheng-upms\zheng-upms-rpc-service\target\classes\META-INF\spring\applicationContext-jdbc.xml]: Cannot resolve reference to bean 'masterDataSource' while setting bean property 'targetDataSources' with key [TypedStringValue: value [masterDataSource], target type [class java.lang.String]]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'masterDataSource' defined in file [D:\file_manager_workspace\zheng\zheng\zheng-upms\zheng-upms-rpc-service\target\classes\META-INF\spring\applicationContext-jdbc.xml]: Invocation of init method failed; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1531)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1276)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351)
... 28 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in file [D:\file_manager_workspace\zheng\zheng\zheng-upms\zheng-upms-rpc-service\target\classes\META-INF\spring\applicationContext-jdbc.xml]: Cannot resolve reference to bean 'masterDataSource' while setting bean property 'targetDataSources' with key [TypedStringValue: value [masterDataSource], target type [class java.lang.String]]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'masterDataSource' defined in file [D:\file_manager_workspace\zheng\zheng\zheng-upms\zheng-upms-rpc-service\target\classes\META-INF\spring\applicationContext-jdbc.xml]: Invocation of init method failed; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedMap(BeanDefinitionValueResolver.java:407)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:165)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1531)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1276)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351)
... 38 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'masterDataSource' defined in file [D:\file_manager_workspace\zheng\zheng\zheng-upms\zheng-upms-rpc-service\target\classes\META-INF\spring\applicationContext-jdbc.xml]: Invocation of init method failed; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1628)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351)
... 50 more
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:377)
at com.mysql.jdbc.Util.getInstance(Util.java:360)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:935)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:924)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:870)
at com.mysql.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:2144)
at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2069)
at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:790)
at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:44)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:377)
at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:395)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:325)
at com.alibaba.druid.filter.FilterChainImpl.connection_connect(FilterChainImpl.java:148)
at com.alibaba.druid.filter.stat.StatFilter.connection_connect(StatFilter.java:211)
at com.alibaba.druid.filter.FilterChainImpl.connection_connect(FilterChainImpl.java:142)
at com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java:1377)
at com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java:1431)
at com.alibaba.druid.pool.DruidDataSource.init(DruidDataSource.java:632)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1758)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1695)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1624)
... 57 more
Caused by: java.sql.SQLException: Access denied for user 'root'@'BCWQMPEKEKG1O0P' (using password: YES)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:996)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3887)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3823)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:870)
at com.mysql.jdbc.MysqlIO.proceedHandshakeWithPluggableAuthentication(MysqlIO.java:1659)
at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1206)
at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2234)
at com.mysql.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:2085)
... 80 more
2018-01-30 11:23:09,857 [DubboShutdownHook] INFO [com.alibaba.dubbo.config.AbstractConfig] - [DUBBO] Run shutdown hook now., dubbo version: 2.5.6, current host: 127.0.0.1
2018-01-30 11:23:09,858 [DubboShutdownHook] INFO [com.alibaba.dubbo.registry.support.AbstractRegistryFactory] - [DUBBO] Close all registries [], dubbo version: 2.5.6, current host: 127.0.0.1
solution: go to the mysql console of the server and execute the following statement
UPDATE USER SET HOST = ‘%’ WHERE USER = ‘root’;
“FLUSH PRIVILEGES” is accessible to any host. Refresh permissions
GRANT ALL PRIVILEGES ON *.* TO ‘root’@’localhost’ IDENTIFIED BY ‘lifeng’;
UPDATE USER SET HOST = ‘%’ WHERE USER = ‘root’;
DELETE USER WHERE HOST = ‘localhost’ AND USER=root
SELECT HOST, USER FROM USER;
DELETE FROM mysql.user WHERE USER=’root’ AND HOST=’localhost’; Remove unwanted user root
FLUSH PRIVILEGES;
Install homebrew xcode-select error invalid developer directory ‘/Library/Developer/CommandLineTools’
I’ve never opened Xcode on my computer, so if I open Xcode and I create an empty project, there’s no error
Error resolution-“Error in configuration process, project files may be invalid” appears when Cmake compiles openCV

error occurs when cmake compiles opencv

error paste as follows:
` `
A wrong
Can’t detect runtime and/or arch
FP16: Compiler support is available
CMake Warning at cmake/OpenCVUtils.cmake:1020 (message):
Download: Local copy of opencv_ffmpeg.dll has invalid MD5 hash:
6048172a1d2ebdc53194abc93c0e7c4a (expected:
f081abd9d6ca7e425d340ce586f9c090)
Call Stack (most recent call first):
3rdparty/ffmpeg/ffmpeg.cmake:10 (ocv_download)
cmake/OpenCVFindLibsVideo.cmake:219 (include)
CMakeLists.txt:557 (include)
Downloading opencv_ffmpeg. DLL…
CMake Error at cmake/OpenCVUtils.cmake:1043 (file):
file DOWNLOAD HASH mismatch
for file: [E:/Files/openCV/opencv/sources/3rdparty/ffmpeg/downloads/f081abd9d6ca7e425d340ce586f9c090/opencv_ffmpeg.dll]
expected hash: [f081abd9d6ca7e425d340ce586f9c090]
actual hash: D97fa2ee09c8ee442db07b6367ca [3108]
the status: [28; “Timeout was reached”] font>
Call Stack (most recent call first):
3rdparty/ffmpeg/ffmpeg.cmake:10 (ocv_download)
cmake/OpenCVFindLibsVideo.cmake:219 (include)
CMakeLists.txt:557 (include)
CMake Error at cmake/OpenCVUtils.cmake:1047 (message):
Failed to download opencv_ffmpeg.dll. Status=28; “The Timeout was reached”
the Call Stack (the most recent Call first) :
3 rdparty/ffmpeg/ffmpeg. Cmake: 10 (ocv_download)
cmake/OpenCVFindLibsVideo cmake: 219 (include)
CMakeLists. TXT: 557 (include)
Configuring incomplete, errors occurred!
See also “E:/Files/openCV/openCV/newbuild CMakeFiles/CMakeOutput log”.
See also “E:/Files/openCV/openCV/newbuild/CMakeFiles/CMakeError log”.
This is because FFMpeg did not download successfully
Open path E: \ Files \ openCV, openCV, sources, 3 rdparty \ ffmpeg \ ffmpeg cmake code> in the download address (openCV download address before half save position may be different)
here it is important to note that the download address to converted (yellow parts are replaced with another yellow box) box last green added to the end of the
as a convenience to see clearly, my download address as follows, slightly more than once to see:
https://raw.githubusercontent.com/opencv/opencv_3rdparty/2a19d0006415955c79431116e4634f04d5eb5a74/ffmpeg/opencv_ffmpeg.dll
https://raw.githubusercontent.com/opencv/opencv_3rdparty/2a19d0006415955c79431116e4634f04d5eb5a74/ffmpeg/opencv_ffmpeg_64.dll
https://raw.githubusercontent.com/opencv/opencv_3rdparty/2a19d0006415955c79431116e4634f04d5eb5a74/ffmpeg/opencv_ffmpeg_64.dll
In addition also need to know what the hash value of the three files downloaded: query tool https://download.csdn.net/download/xubuhui/12032166
tool to use: click the exe after installation to find need query file right click -> properties can see the corresponding MD5
opencv_ffmpeg. DLL MD5: F081ABD9D6CA7E425D340CE586F9C090
MD5 opencv_ffmpeg_64. DLL: A423363A6EB76D362CA6C406C96C8DB6
A44febe61bd47e404aacd746ff ffmpeg_version. Cmake MD5:216942
Place the downloaded file into the appropriate folder
E:\Files\openCV\opencv\sources\3rdparty\ffmpeg\downloads\F081ABD9D6CA7E425D340CE586F9C090
1
E:\Files\openCV\opencv\sources\3rdparty\ffmpeg\downloads\A423363A6EB76D362CA6C406C96C8DB6
1
E:\Files\openCV\opencv\sources\3rdparty\ffmpeg\downloads\216942A44FEBE61BD47E404AACD746FF
1
Configure
. Configure
. Configure
.
Can't detect runtime and/or arch
FP16: Compiler support is available
Downloading ffmpeg_version.cmake...
Downloading ffmpeg_version.cmake... Done
ICV: Downloading ippicv_windows_20151201.zip...
CMake Error at 3rdparty/ippicv/downloader.cmake:73 (file):
file DOWNLOAD HASH mismatch
for file: [E:/Files/openCV/opencv/sources/3rdparty/ippicv/downloads/windows-04e81ce5d0e329c3fbc606ae32cad44d/ippicv_windows_20151201.zip]
expected hash: [04 e81ce5d0e329c3fbc606ae32cad44d]
actual hash: e31e3fa2b51979a82c654e0b05c376 [72]
the status: [28; "Timeout was reached"]
Call Stack (most recent call first):
3rdparty/ippicv/downloader.cmake:110 (_icv_downloader)
cmake/OpenCVFindIPP.cmake:243 (include)
cmake/OpenCVFindLibsPerf.cmake:37 (include)
CMakeLists.txt:558 (include)
CMake Error at 3rdparty/ippicv/downloader.cmake:77 (message):
ICV: Failed to download ICV package: ippicv_windows_20151201.zip.
Status=28; "The Timeout was reached"
the Call Stack (the most recent Call first) :
3 rdparty/ippicv/downloader. Cmake: 110 (_icv_downloader)
cmake/OpenCVFindIPP cmake: 243 (include)
cmake/OpenCVFindLibsPerf.cmake:37 (include)
CMakeLists.txt:558 (include)
Configuring incomplete, errors occurred!
See also "E:/Files/openCV/openCV/newbuild CMakeFiles/CMakeOutput log".
See also "E:/Files/openCV/openCV/newbuild/CMakeFiles/CMakeError log".
1234567891011121314151617181920212223242526272829
Ippicv did not download successfully
E:\Files\openCV\ openCV\ sources\3rdparty\ippicv\downloader. Cmake

https://raw.githubusercontent.com/opencv/opencv_3rdparty/81a676001ca8075ada498583e4166079e5744668/ippicv/ippicv_windows_20151201.zip
https://raw.githubusercontent.com/opencv/opencv_3rdparty/81a676001ca8075ada498583e4166079e5744668/ippicv/ippicv_macosx_20151201.tgz
https://raw.githubusercontent.com/opencv/opencv_3rdparty/81a676001ca8075ada498583e4166079e5744668/ippicv/ippicv_linux_20151201.tgz
use MD5 hash query tools inquires at this time
the file save my computer is Windows have to I will not show other
Into the path of the E: \ Files \ openCV, openCV, sources, 3 rdparty \ ippicv \ downloads \ Windows - 04 e81ce5d0e329c3fbc606ae32cad44d code>
cmake returns again after the file into the corresponding directory
Error 2
There is another error
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
CUDA_nppi_LIBRARY (ADVANCED)
linked by target "opencv_cudev" in directory E:/Files/openCV/opencv/sources/modules/cudev
linked by target "opencv_cudev" in directory E:/Files/openCV/opencv/sources/modules/cudev
linked by target "opencv_test_cudev" in directory E:/Files/openCV/opencv/sources/modules/cudev/test
linked by target "opencv_core" in directory E:/Files/openCV/opencv/sources/modules/core
linked by target "opencv_core" in directory E:/Files/openCV/opencv/sources/modules/core
linked by target "opencv_test_core" in directory E:/Files/openCV/opencv/sources/modules/core
linked by target "opencv_perf_core" in directory E:/Files/openCV/opencv/sources/modules/core
linked by target "opencv_test_cudaarithm" in directory E:/Files/openCV/opencv/sources/modules/cudaarithm
linked by target "opencv_cudaarithm" in directory E:/Files/openCV/opencv/sources/modules/cudaarithm
linked by target "opencv_cudaarithm" in directory E:/Files/openCV/opencv/sources/modules/cudaarithm
linked by target "opencv_perf_cudaarithm" in directory E:/Files/openCV/opencv/sources/modules/cudaarithm
linked by target "opencv_flann" in directory E:/Files/openCV/opencv/sources/modules/flann
linked by target "opencv_flann" in directory E:/Files/openCV/opencv/sources/modules/flann
linked by target "opencv_test_flann" in directory E:/Files/openCV/opencv/sources/modules/flann
linked by target "opencv_imgproc" in directory E:/Files/openCV/opencv/sources/modules/imgproc
linked by target "opencv_imgproc" in directory E:/Files/openCV/opencv/sources/modules/imgproc
linked by target "opencv_test_imgproc" in directory E:/Files/openCV/opencv/sources/modules/imgproc
linked by target "opencv_perf_imgproc" in directory E:/Files/openCV/opencv/sources/modules/imgproc
linked by target "opencv_test_ml" in directory E:/Files/openCV/opencv/sources/modules/ml
linked by target "opencv_ml" in directory E:/Files/openCV/opencv/sources/modules/ml
linked by target "opencv_ml" in directory E:/Files/openCV/opencv/sources/modules/ml
linked by target "opencv_test_video" in directory E:/Files/openCV/opencv/sources/modules/video
linked by target "opencv_video" in directory E:/Files/openCV/opencv/sources/modules/video
linked by target "opencv_video" in directory E:/Files/openCV/opencv/sources/modules/video
linked by target "opencv_perf_video" in directory E:/Files/openCV/opencv/sources/modules/video
linked by target "opencv_cudabgsegm" in directory E:/Files/openCV/opencv/sources/modules/cudabgsegm
linked by target "opencv_cudabgsegm" in directory E:/Files/openCV/opencv/sources/modules/cudabgsegm
linked by target "opencv_test_cudabgsegm" in directory E:/Files/openCV/opencv/sources/modules/cudabgsegm
linked by target "opencv_perf_cudabgsegm" in directory E:/Files/openCV/opencv/sources/modules/cudabgsegm
linked by target "opencv_cudafilters" in directory E:/Files/openCV/opencv/sources/modules/cudafilters
linked by target "opencv_cudafilters" in directory E:/Files/openCV/opencv/sources/modules/cudafilters
linked by target "opencv_test_cudafilters" in directory E:/Files/openCV/opencv/sources/modules/cudafilters
linked by target "opencv_perf_cudafilters" in directory E:/Files/openCV/opencv/sources/modules/cudafilters
linked by target "opencv_cudaimgproc" in directory E:/Files/openCV/opencv/sources/modules/cudaimgproc
linked by target "opencv_cudaimgproc" in directory E:/Files/openCV/opencv/sources/modules/cudaimgproc
linked by target "opencv_test_cudaimgproc" in directory E:/Files/openCV/opencv/sources/modules/cudaimgproc
linked by target "opencv_perf_cudaimgproc" in directory E:/Files/openCV/opencv/sources/modules/cudaimgproc
linked by target "opencv_perf_cudawarping" in directory E:/Files/openCV/opencv/sources/modules/cudawarping
linked by target "opencv_cudawarping" in directory E:/Files/openCV/opencv/sources/modules/cudawarping
linked by target "opencv_cudawarping" in directory E:/Files/openCV/opencv/sources/modules/cudawarping
linked by target "opencv_test_cudawarping" in directory E:/Files/openCV/opencv/sources/modules/cudawarping
linked by target "opencv_imgcodecs" in directory E:/Files/openCV/opencv/sources/modules/imgcodecs
linked by target "opencv_imgcodecs" in directory E:/Files/openCV/opencv/sources/modules/imgcodecs
linked by target "opencv_test_imgcodecs" in directory E:/Files/openCV/opencv/sources/modules/imgcodecs
linked by target "opencv_perf_imgcodecs" in directory E:/Files/openCV/opencv/sources/modules/imgcodecs
linked by target "opencv_perf_photo" in directory E:/Files/openCV/opencv/sources/modules/photo
linked by target "opencv_photo" in directory E:/Files/openCV/opencv/sources/modules/photo
linked by target "opencv_photo" in directory E:/Files/openCV/opencv/sources/modules/photo
linked by target "opencv_test_photo" in directory E:/Files/openCV/opencv/sources/modules/photo
linked by target "opencv_test_shape" in directory E:/Files/openCV/opencv/sources/modules/shape
linked by target "opencv_shape" in directory E:/Files/openCV/opencv/sources/modules/shape
linked by target "opencv_shape" in directory E:/Files/openCV/opencv/sources/modules/shape
linked by target "opencv_test_videoio" in directory E:/Files/openCV/opencv/sources/modules/videoio
linked by target "opencv_videoio" in directory E:/Files/openCV/opencv/sources/modules/videoio
linked by target "opencv_videoio" in directory E:/Files/openCV/opencv/sources/modules/videoio
linked by target "opencv_perf_videoio" in directory E:/Files/openCV/opencv/sources/modules/videoio
linked by target "opencv_cudacodec" in directory E:/Files/openCV/opencv/sources/modules/cudacodec
linked by target "opencv_cudacodec" in directory E:/Files/openCV/opencv/sources/modules/cudacodec
linked by target "opencv_perf_cudacodec" in directory E:/Files/openCV/opencv/sources/modules/cudacodec
linked by target "opencv_test_cudacodec" in directory E:/Files/openCV/opencv/sources/modules/cudacodec
linked by target "opencv_highgui" in directory E:/Files/openCV/opencv/sources/modules/highgui
linked by target "opencv_highgui" in directory E:/Files/openCV/opencv/sources/modules/highgui
linked by target "opencv_test_highgui" in directory E:/Files/openCV/opencv/sources/modules/highgui
linked by target "opencv_perf_objdetect" in directory E:/Files/openCV/opencv/sources/modules/objdetect
linked by target "opencv_objdetect" in directory E:/Files/openCV/opencv/sources/modules/objdetect
linked by target "opencv_objdetect" in directory E:/Files/openCV/opencv/sources/modules/objdetect
linked by target "opencv_test_objdetect" in directory E:/Files/openCV/opencv/sources/modules/objdetect
linked by target "opencv_ts" in directory E:/Files/openCV/opencv/sources/modules/ts
linked by target "opencv_ts" in directory E:/Files/openCV/opencv/sources/modules/ts
linked by target "opencv_test_features2d" in directory E:/Files/openCV/opencv/sources/modules/features2d
linked by target "opencv_features2d" in directory E:/Files/openCV/opencv/sources/modules/features2d
linked by target "opencv_features2d" in directory E:/Files/openCV/opencv/sources/modules/features2d
linked by target "opencv_perf_features2d" in directory E:/Files/openCV/opencv/sources/modules/features2d
linked by target "opencv_calib3d" in directory E:/Files/openCV/opencv/sources/modules/calib3d
linked by target "opencv_calib3d" in directory E:/Files/openCV/opencv/sources/modules/calib3d
linked by target "opencv_test_calib3d" in directory E:/Files/openCV/opencv/sources/modules/calib3d
linked by target "opencv_perf_calib3d" in directory E:/Files/openCV/opencv/sources/modules/calib3d
linked by target "opencv_cudafeatures2d" in directory E:/Files/openCV/opencv/sources/modules/cudafeatures2d
linked by target "opencv_cudafeatures2d" in directory E:/Files/openCV/opencv/sources/modules/cudafeatures2d
linked by target "opencv_test_cudafeatures2d" in directory E:/Files/openCV/opencv/sources/modules/cudafeatures2d
linked by target "opencv_perf_cudafeatures2d" in directory E:/Files/openCV/opencv/sources/modules/cudafeatures2d
linked by target "opencv_cudalegacy" in directory E:/Files/openCV/opencv/sources/modules/cudalegacy
linked by target "opencv_cudalegacy" in directory E:/Files/openCV/opencv/sources/modules/cudalegacy
linked by target "opencv_test_cudalegacy" in directory E:/Files/openCV/opencv/sources/modules/cudalegacy
linked by target "opencv_perf_cudalegacy" in directory E:/Files/openCV/opencv/sources/modules/cudalegacy
linked by target "opencv_cudaobjdetect" in directory E:/Files/openCV/opencv/sources/modules/cudaobjdetect
linked by target "opencv_cudaobjdetect" in directory E:/Files/openCV/opencv/sources/modules/cudaobjdetect
linked by target "opencv_perf_cudaobjdetect" in directory E:/Files/openCV/opencv/sources/modules/cudaobjdetect
linked by target "opencv_test_cudaobjdetect" in directory E:/Files/openCV/opencv/sources/modules/cudaobjdetect
linked by target "opencv_cudaoptflow" in directory E:/Files/openCV/opencv/sources/modules/cudaoptflow
linked by target "opencv_cudaoptflow" in directory E:/Files/openCV/opencv/sources/modules/cudaoptflow
linked by target "opencv_test_cudaoptflow" in directory E:/Files/openCV/opencv/sources/modules/cudaoptflow
linked by target "opencv_perf_cudaoptflow" in directory E:/Files/openCV/opencv/sources/modules/cudaoptflow
linked by target "opencv_perf_cudastereo" in directory E:/Files/openCV/opencv/sources/modules/cudastereo
linked by target "opencv_cudastereo" in directory E:/Files/openCV/opencv/sources/modules/cudastereo
linked by target "opencv_cudastereo" in directory E:/Files/openCV/opencv/sources/modules/cudastereo
linked by target "opencv_test_cudastereo" in directory E:/Files/openCV/opencv/sources/modules/cudastereo
linked by target "opencv_test_stitching" in directory E:/Files/openCV/opencv/sources/modules/stitching
linked by target "opencv_stitching" in directory E:/Files/openCV/opencv/sources/modules/stitching
linked by target "opencv_stitching" in directory E:/Files/openCV/opencv/sources/modules/stitching
linked by target "opencv_perf_stitching" in directory E:/Files/openCV/opencv/sources/modules/stitching
linked by target "opencv_superres" in directory E:/Files/openCV/opencv/sources/modules/superres
linked by target "opencv_superres" in directory E:/Files/openCV/opencv/sources/modules/superres
linked by target "opencv_test_superres" in directory E:/Files/openCV/opencv/sources/modules/superres
linked by target "opencv_perf_superres" in directory E:/Files/openCV/opencv/sources/modules/superres
linked by target "opencv_videostab" in directory E:/Files/openCV/opencv/sources/modules/videostab
linked by target "opencv_videostab" in directory E:/Files/openCV/opencv/sources/modules/videostab
linked by target "opencv_traincascade" in directory E:/Files/openCV/opencv/sources/apps/traincascade
linked by target "opencv_createsamples" in directory E:/Files/openCV/opencv/sources/apps/createsamples
linked by target "opencv_annotation" in directory E:/Files/openCV/opencv/sources/apps/annotation
linked by target "opencv_visualisation" in directory E:/Files/openCV/opencv/sources/apps/visualisation
linked by target "opencv_version" in directory E:/Files/openCV/opencv/sources/apps/version
Configuring incomplete, errors occurred!
See also "E:/Files/openCV/opencv/newbuild/CMakeFiles/CMakeOutput.log".
See also "E:/Files/openCV/opencv/newbuild/CMakeFiles/CMakeError.log".
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210 3104105106107108109110111112113114115116117118
Look at this article, it's good, just do it.
https://stackoverflow.com/questions/46584000/cmake-error-variables-are-set-to-notfound
How do I download the Protobuf-CPP file?
Open the path E:\Files\openCV\opencv_contrib-3.2.0\ modules\ DNN \cmake\download_protobuf. Cmake
and open
to put the two together for download: my download is
https://github.com/google/protobuf/releases/download/v3.1.0/protobuf-cpp-3.1.0.tar.gz
Error of three

CMake Error at CMakeLists.txt:98 (project):
No CMAKE_CXX_COMPILER could be found.
CMake Error at CMakeLists.txt:98 (project):
No CMAKE_C_COMPILER could be found.
1234567