daimyo-college / riders_meeting_app

riders_meeting_appを開発します。
2 stars 0 forks source link

8/22 作業ログ 諏訪園 ローカル環境のセットアップ #13

Open Suwazono01 opened 5 years ago

Suwazono01 commented 5 years ago

ベタ張りになってしまいますが…


-> % gem install mysql2 -v '0.5.2' --source 'https://rubygems.org/'
Building native extensions. This could take a while...
ERROR:  Error installing mysql2:
        ERROR: Failed to build gem native extension.

    current directory: /Users/suwa/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/mysql2-0.5.2/ext/mysql2
/Users/suwa/.rbenv/versions/2.6.3/bin/ruby -I /Users/suwa/.rbenv/versions/2.6.3/lib/ruby/2.6.0 -r ./siteconf20190820-49845-a3u5q8.rb extconf.rb
checking for rb_absint_size()... yes
checking for rb_absint_singlebit_p()... yes
checking for rb_wait_for_single_fd()... yes
-----                                                                                         Using mysql_config at /usr/local/bin/mysql_config
-----
checking for mysql.h... yes
checking for errmsg.h... yes
checking for SSL_MODE_DISABLED in mysql.h... yes
checking for SSL_MODE_PREFERRED in mysql.h... yes
checking for SSL_MODE_REQUIRED in mysql.h... yes
checking for SSL_MODE_VERIFY_CA in mysql.h... yes
checking for SSL_MODE_VERIFY_IDENTITY in mysql.h... yes
checking for MYSQL.net.vio in mysql.h... yes
checking for MYSQL.net.pvio in mysql.h... no
checking for MYSQL_ENABLE_CLEARTEXT_PLUGIN in mysql.h... yes
checking for SERVER_QUERY_NO_GOOD_INDEX_USED in mysql.h... yes
checking for SERVER_QUERY_NO_INDEX_USED in mysql.h... yes
checking for SERVER_QUERY_WAS_SLOW in mysql.h... yes
checking for MYSQL_OPTION_MULTI_STATEMENTS_ON in mysql.h... yes
checking for MYSQL_OPTION_MULTI_STATEMENTS_OFF in mysql.h... yes
checking for my_bool in mysql.h... no
-----
Don't know how to set rpath on your system, if MySQL libraries are not in path mysql2 may not load                                                                                          -----
-----
Setting libpath to /usr/local/Cellar/mysql/8.0.17/lib
-----
creating Makefile

current directory: /Users/suwa/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/mysql2-0.5.2/ext/mysql2
make "DESTDIR=" clean

current directory: /Users/suwa/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/mysql2-0.5.2/ext/mysql2
make "DESTDIR="
compiling client.c
compiling infile.c
compiling mysql2_ext.c
compiling result.c
compiling statement.c
linking shared-object mysql2/mysql2.bundle
ld: library not found for -lssl
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [mysql2.bundle] Error 1

make failed, exit code 2

Gem files will remain installed in /Users/suwa/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/mysql2-0.5.2 for inspection.
Results logged to /Users/suwa/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/extensions/x86_64-darwin-18/2.6.0-static/mysql2-0.5.2/gem_make.out
suwa@suwaenmaikonoMacBook-Pro [20時32分47秒] [~/riders_meeting_app2/riders_meeting_app] [heddermenu *]
-> % env
TMPDIR=/var/folders/n9/f4zl7zdd34z3dtv9pb46h89h0000gn/T/
__CF_USER_TEXT_ENCODING=0x1F5:0x1:0xE
SHELL=/bin/bash
HOME=/Users/suwa
SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.lyUiZaEeby/Listeners
Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.An7ijjFcm2/Render
LOGNAME=suwa
PATH=/Users/suwa/.rbenv/shims:/usr/local/opt/openssl/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/suwa/.rbenv/shims:/Users/suwa/.rbenv/bin
XPC_SERVICE_NAME=0
COMMAND_MODE=unix2003
USER=suwa
XPC_FLAGS=0x0
PWD=/Users/suwa/riders_meeting_app2/riders_meeting_app
RBENV_SHELL=zsh
SHLVL=2
TERM_PROGRAM=vscode
TERM_PROGRAM_VERSION=1.37.1
LANG=ja_JP.UTF-8
COLORTERM=truecolor
TERM=xterm-256color
OLDPWD=/Users/suwa/riders_meeting_app2/riders_meeting_app
ZSH_THEME=candy
ZSH=/Users/suwa/.oh-my-zsh
PAGER=less
LESS=-R
LC_CTYPE=ja_JP.UTF-8
LSCOLORS=Gxfxcxdxbxegedabagacad
LDFLAGS=-L/usr/local/opt/openssl/lib
CPPFLAGS=-I/usr/local/opt/openssl/include
PKG_CONFIG_PATH=/usr/local/opt/openssl/lib/pkgconfig
_=/usr/bin/env
suwa@suwaenmaikonoMacBook-Pro [20時32分58秒] [~/riders_meeting_app2/riders_meeting_app] [heddermenu *]
-> % gem install mysql2 -v '0.5.2' --source 'https://rubygems.org/'
Building native extensions. This could take a while...
ERROR:  Error installing mysql2:
        ERROR: Failed to build gem native extension.

    current directory: /Users/suwa/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/mysql2-0.5.2/ext/mysql2
/Users/suwa/.rbenv/versions/2.6.3/bin/ruby -I /Users/suwa/.rbenv/versions/2.6.3/lib/ruby/2.6.0 -r ./siteconf20190820-50152-7m0gl3.rb extconf.rb
checking for rb_absint_size()... yes
checking for rb_absint_singlebit_p()... yes
checking for rb_wait_for_single_fd()... yes
-----
Using mysql_config at /usr/local/bin/mysql_config
-----
checking for mysql.h... yes
checking for errmsg.h... yes
checking for SSL_MODE_DISABLED in mysql.h... yes
checking for SSL_MODE_PREFERRED in mysql.h... yes
checking for SSL_MODE_REQUIRED in mysql.h... yes
checking for SSL_MODE_VERIFY_CA in mysql.h... yes
checking for SSL_MODE_VERIFY_IDENTITY in mysql.h... yes
checking for MYSQL.net.vio in mysql.h... yes
checking for MYSQL.net.pvio in mysql.h... no
checking for MYSQL_ENABLE_CLEARTEXT_PLUGIN in mysql.h... yes
checking for SERVER_QUERY_NO_GOOD_INDEX_USED in mysql.h... yes
checking for SERVER_QUERY_NO_INDEX_USED in mysql.h... yes
checking for SERVER_QUERY_WAS_SLOW in mysql.h... yes
checking for MYSQL_OPTION_MULTI_STATEMENTS_ON in mysql.h... yes
checking for MYSQL_OPTION_MULTI_STATEMENTS_OFF in mysql.h... yes
checking for my_bool in mysql.h... no
-----
Don't know how to set rpath on your system, if MySQL libraries are not in path mysql2 may not load
-----
-----
Setting libpath to /usr/local/Cellar/mysql/8.0.17/lib
-----
creating Makefile

current directory: /Users/suwa/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/mysql2-0.5.2/ext/mysql2
make "DESTDIR=" clean

current directory: /Users/suwa/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/mysql2-0.5.2/ext/mysql2
make "DESTDIR="
compiling client.c
compiling infile.c
compiling mysql2_ext.c
compiling result.c
compiling statement.c
linking shared-object mysql2/mysql2.bundle
ld: library not found for -lssl
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [mysql2.bundle] Error 1

make failed, exit code 2

Gem files will remain installed in /Users/suwa/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/mysql2-0.5.2 for inspection.
Results logged to /Users/suwa/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/extensions/x86_64-darwin-18/2.6.0-static/mysql2-0.5.2/gem_make.out
suwa@suwaenmaikonoMacBook-Pro [20時33分21秒] [~/riders_meeting_app2/riders_meeting_app] [heddermenu *]
-> % brew install libmysql                                         
Error: No available formula with the name "libmysql" 
==> Searching for a previously deleted formula (in the last month)...
Warning: homebrew/core is shallow clone. To get complete history run:
  git -C "$(brew --repo homebrew/core)" fetch --unshallow

Error: No previously deleted formula found.
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching taps...
==> Searching taps on GitHub...
Error: No formulae found in taps.
suwa@suwaenmaikonoMacBook-Pro [20時33分56秒] [~/riders_meeting_app2/riders_meeting_app] [heddermenu *]
-> % brew install libmysql
suwa@suwaenmaikonoMacBook-Pro [20時34分37秒] [~/riders_meeting_app2/riders_meeting_app] [heddermenu *]
-> % brew reinstall mysql                                          
==> Reinstalling mysql 
==> Downloading https://homebrew.bintray.com/bottles/mysql-8.0.17.mojave.bottle.tar.gz
Already downloaded: /Users/suwa/Library/Caches/Homebrew/downloads/45d08ca8020b5abe52a5de9fb782dae5f34e6790f9664049b863fd02a404f947--mysql-8.0.17.mojave.bottle.tar.gz
==> Pouring mysql-8.0.17.mojave.bottle.tar.gz
==> Caveats
We've installed your MySQL database without a root password. To secure it run:
    mysql_secure_installation

MySQL is configured to only allow connections from localhost by default

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
🍺  /usr/local/Cellar/mysql/8.0.17: 284 files, 272.5MB
suwa@suwaenmaikonoMacBook-Pro [20時34分56秒] [~/riders_meeting_app2/riders_meeting_app] [heddermenu *]
-> % brew find mysql     
Error: Unknown command: find
suwa@suwaenmaikonoMacBook-Pro [20時35分13秒] [~/riders_meeting_app2/riders_meeting_app] [heddermenu *]
-> % brew ls mysql  
/usr/local/Cellar/mysql/8.0.17/.bottle/etc/my.cnf
/usr/local/Cellar/mysql/8.0.17/bin/ibd2sdi
/usr/local/Cellar/mysql/8.0.17/bin/innochecksum
/usr/local/Cellar/mysql/8.0.17/bin/lz4_decompress
/usr/local/Cellar/mysql/8.0.17/bin/my_print_defaults
/usr/local/Cellar/mysql/8.0.17/bin/myisam_ftdump
/usr/local/Cellar/mysql/8.0.17/bin/myisamchk
/usr/local/Cellar/mysql/8.0.17/bin/myisamlog
/usr/local/Cellar/mysql/8.0.17/bin/myisampack
/usr/local/Cellar/mysql/8.0.17/bin/mysql
/usr/local/Cellar/mysql/8.0.17/bin/mysql.server
/usr/local/Cellar/mysql/8.0.17/bin/mysql_client_test
/usr/local/Cellar/mysql/8.0.17/bin/mysql_config
/usr/local/Cellar/mysql/8.0.17/bin/mysql_config_editor
/usr/local/Cellar/mysql/8.0.17/bin/mysql_secure_installation
/usr/local/Cellar/mysql/8.0.17/bin/mysql_ssl_rsa_setup
/usr/local/Cellar/mysql/8.0.17/bin/mysql_tzinfo_to_sql
/usr/local/Cellar/mysql/8.0.17/bin/mysql_upgrade
/usr/local/Cellar/mysql/8.0.17/bin/mysqladmin
/usr/local/Cellar/mysql/8.0.17/bin/mysqlbinlog
/usr/local/Cellar/mysql/8.0.17/bin/mysqlcheck
/usr/local/Cellar/mysql/8.0.17/bin/mysqld
/usr/local/Cellar/mysql/8.0.17/bin/mysqld_multi
/usr/local/Cellar/mysql/8.0.17/bin/mysqld_safe
/usr/local/Cellar/mysql/8.0.17/bin/mysqldump
/usr/local/Cellar/mysql/8.0.17/bin/mysqldumpslow
/usr/local/Cellar/mysql/8.0.17/bin/mysqlimport
/usr/local/Cellar/mysql/8.0.17/bin/mysqlpump
/usr/local/Cellar/mysql/8.0.17/bin/mysqlrouter
/usr/local/Cellar/mysql/8.0.17/bin/mysqlrouter_passwd
/usr/local/Cellar/mysql/8.0.17/bin/mysqlrouter_plugin_info
/usr/local/Cellar/mysql/8.0.17/bin/mysqlshow
/usr/local/Cellar/mysql/8.0.17/bin/mysqlslap
/usr/local/Cellar/mysql/8.0.17/bin/mysqltest
/usr/local/Cellar/mysql/8.0.17/bin/mysqltest_safe_process
/usr/local/Cellar/mysql/8.0.17/bin/mysqlxtest
/usr/local/Cellar/mysql/8.0.17/bin/perror
/usr/local/Cellar/mysql/8.0.17/bin/zlib_decompress
/usr/local/Cellar/mysql/8.0.17/homebrew.mxcl.mysql.plist
/usr/local/Cellar/mysql/8.0.17/include/mysql/ (15 files)
/usr/local/Cellar/mysql/8.0.17/lib/libmysqlclient.21.dylib
/usr/local/Cellar/mysql/8.0.17/lib/libmysqlharness.1.dylib
/usr/local/Cellar/mysql/8.0.17/lib/libmysqlrouter.1.dylib
/usr/local/Cellar/mysql/8.0.17/lib/libmysqlrouter_http.1.dylib
/usr/local/Cellar/mysql/8.0.17/lib/mysqlrouter/ (11 files)
/usr/local/Cellar/mysql/8.0.17/lib/pkgconfig/mysqlclient.pc
/usr/local/Cellar/mysql/8.0.17/lib/plugin/ (101 files)
/usr/local/Cellar/mysql/8.0.17/lib/ (7 other files)
/usr/local/Cellar/mysql/8.0.17/LICENSE-test
/usr/local/Cellar/mysql/8.0.17/LICENSE.router
/usr/local/Cellar/mysql/8.0.17/README-test
/usr/local/Cellar/mysql/8.0.17/README.router
/usr/local/Cellar/mysql/8.0.17/share/aclocal/mysql.m4
/usr/local/Cellar/mysql/8.0.17/share/doc/ (4 files)
/usr/local/Cellar/mysql/8.0.17/share/man/ (35 files)
/usr/local/Cellar/mysql/8.0.17/share/mysql/ (55 files)
/usr/local/Cellar/mysql/8.0.17/support-files/ (3 files)
suwa@suwaenmaikonoMacBook-Pro [20時35分18秒] [~/riders_meeting_app2/riders_meeting_app] [heddermenu *]
-> % brew link mysql
Warning: Already linked: /usr/local/Cellar/mysql/8.0.17
To relink: brew unlink mysql && brew link mysql
suwa@suwaenmaikonoMacBook-Pro [20時35分47秒] [~/riders_meeting_app2/riders_meeting_app] [heddermenu *]
-> % brew doctor
Your system is ready to brew.
suwa@suwaenmaikonoMacBook-Pro [20時35分56秒] [~/riders_meeting_app2/riders_meeting_app] [heddermenu *]
-> % brew ls mysql | grep ,h
suwa@suwaenmaikonoMacBook-Pro [20時36分13秒] [~/riders_meeting_app2/riders_meeting_app] [heddermenu *]
-> % brew ls mysql | grep .h
/usr/local/Cellar/mysql/8.0.17/homebrew.mxcl.mysql.plist
/usr/local/Cellar/mysql/8.0.17/bin/mysqlcheck
/usr/local/Cellar/mysql/8.0.17/bin/mysqlshow
/usr/local/Cellar/mysql/8.0.17/bin/myisamchk
/usr/local/Cellar/mysql/8.0.17/bin/innochecksum
/usr/local/Cellar/mysql/8.0.17/include/mysql/my_command.h
/usr/local/Cellar/mysql/8.0.17/include/mysql/mysql_version.h
/usr/local/Cellar/mysql/8.0.17/include/mysql/mysql_time.h
/usr/local/Cellar/mysql/8.0.17/include/mysql/my_list.h
/usr/local/Cellar/mysql/8.0.17/include/mysql/mysqlx_version.h
/usr/local/Cellar/mysql/8.0.17/include/mysql/field_types.h
/usr/local/Cellar/mysql/8.0.17/include/mysql/mysql_com.h
/usr/local/Cellar/mysql/8.0.17/include/mysql/mysql/plugin_auth_common.h
/usr/local/Cellar/mysql/8.0.17/include/mysql/mysql/udf_registration_types.h
/usr/local/Cellar/mysql/8.0.17/include/mysql/mysql/client_plugin.h
/usr/local/Cellar/mysql/8.0.17/include/mysql/mysql.h
/usr/local/Cellar/mysql/8.0.17/include/mysql/mysqlx_error.h
/usr/local/Cellar/mysql/8.0.17/include/mysql/mysqlx_ername.h
/usr/local/Cellar/mysql/8.0.17/include/mysql/mysqld_error.h
/usr/local/Cellar/mysql/8.0.17/include/mysql/errmsg.h
/usr/local/Cellar/mysql/8.0.17/lib/libmysqlharness.1.dylib
/usr/local/Cellar/mysql/8.0.17/lib/mysqlrouter/http_auth_realm.so
/usr/local/Cellar/mysql/8.0.17/lib/mysqlrouter/rest_metadata_cache.so
/usr/local/Cellar/mysql/8.0.17/lib/mysqlrouter/http_server.so
/usr/local/Cellar/mysql/8.0.17/lib/mysqlrouter/http_auth_backend.so
/usr/local/Cellar/mysql/8.0.17/lib/mysqlrouter/metadata_cache.so
/usr/local/Cellar/mysql/8.0.17/lib/plugin/qa_auth_interface.so
/usr/local/Cellar/mysql/8.0.17/lib/plugin/ha_example.so
/usr/local/Cellar/mysql/8.0.17/lib/plugin/component_test_mysql_current_thread_reader.so
/usr/local/Cellar/mysql/8.0.17/lib/plugin/qa_auth_client.so
/usr/local/Cellar/mysql/8.0.17/lib/plugin/ha_mock.so
/usr/local/Cellar/mysql/8.0.17/lib/plugin/authentication_ldap_sasl_client.so
/usr/local/Cellar/mysql/8.0.17/lib/plugin/libtest_session_attach.so
/usr/local/Cellar/mysql/8.0.17/lib/plugin/libtest_session_detach.so
/usr/local/Cellar/mysql/8.0.17/lib/plugin/component_test_string_service_charset.so
/usr/local/Cellar/mysql/8.0.17/lib/plugin/qa_auth_server.so
/usr/local/Cellar/mysql/8.0.17/lib/plugin/libtest_sql_shutdown.so
/usr/local/Cellar/mysql/8.0.17/lib/plugin/libtest_services_threaded.so
/usr/local/Cellar/mysql/8.0.17/lib/plugin/component_test_host_application_signal.so
/usr/local/Cellar/mysql/8.0.17/lib/plugin/auth.so
/usr/local/Cellar/mysql/8.0.17/lib/plugin/auth_test_plugin.so
/usr/local/Cellar/mysql/8.0.17/lib/plugin/libtest_session_in_thd.so
/usr/local/Cellar/mysql/8.0.17/lib/plugin/test_services_host_application_signal.so
/usr/local/Cellar/mysql/8.0.17/lib/plugin/libmemcached.so
/usr/local/Cellar/mysql/8.0.17/lib/libmysqlharness.a
/usr/local/Cellar/mysql/8.0.17/lib/libmysqlrouter_http.1.dylib
/usr/local/Cellar/mysql/8.0.17/lib/libmysqlrouter_http.dylib
/usr/local/Cellar/mysql/8.0.17/lib/libmysqlharness.dylib
/usr/local/Cellar/mysql/8.0.17/share/man/man8/mysqld.8
/usr/local/Cellar/mysql/8.0.17/share/man/man1/mysqldumpslow.1
/usr/local/Cellar/mysql/8.0.17/share/man/man1/mysqlslap.1
/usr/local/Cellar/mysql/8.0.17/share/man/man1/mysqlcheck.1
/usr/local/Cellar/mysql/8.0.17/share/man/man1/mysqld_safe.1
/usr/local/Cellar/mysql/8.0.17/share/man/man1/myisam_ftdump.1
/usr/local/Cellar/mysql/8.0.17/share/man/man1/mysqlshow.1
/usr/local/Cellar/mysql/8.0.17/share/man/man1/mysql_upgrade.1
/usr/local/Cellar/mysql/8.0.17/share/man/man1/ibd2sdi.1
/usr/local/Cellar/mysql/8.0.17/share/man/man1/perror.1
/usr/local/Cellar/mysql/8.0.17/share/man/man1/mysqlman.1
/usr/local/Cellar/mysql/8.0.17/share/man/man1/mysqld_multi.1
/usr/local/Cellar/mysql/8.0.17/share/man/man1/mysqladmin.1
/usr/local/Cellar/mysql/8.0.17/share/man/man1/myisamchk.1
/usr/local/Cellar/mysql/8.0.17/share/man/man1/mysql.server.1
/usr/local/Cellar/mysql/8.0.17/share/man/man1/zlib_decompress.1
/usr/local/Cellar/mysql/8.0.17/share/man/man1/mysqlrouter_plugin_info.1
/usr/local/Cellar/mysql/8.0.17/share/man/man1/mysql_config.1
/usr/local/Cellar/mysql/8.0.17/share/man/man1/mysqlpump.1
/usr/local/Cellar/mysql/8.0.17/share/man/man1/mysqlbinlog.1
/usr/local/Cellar/mysql/8.0.17/share/man/man1/lz4_decompress.1
/usr/local/Cellar/mysql/8.0.17/share/man/man1/innochecksum.1
/usr/local/Cellar/mysql/8.0.17/share/man/man1/comp_err.1
/usr/local/Cellar/mysql/8.0.17/share/man/man1/mysql_config_editor.1
/usr/local/Cellar/mysql/8.0.17/share/man/man1/mysqldump.1
/usr/local/Cellar/mysql/8.0.17/share/man/man1/my_print_defaults.1
/usr/local/Cellar/mysql/8.0.17/share/man/man1/mysql_tzinfo_to_sql.1
/usr/local/Cellar/mysql/8.0.17/share/man/man1/mysqlimport.1
/usr/local/Cellar/mysql/8.0.17/share/man/man1/mysqlrouter_passwd.1
/usr/local/Cellar/mysql/8.0.17/share/man/man1/mysql.1
/usr/local/Cellar/mysql/8.0.17/share/man/man1/mysqlrouter.1
/usr/local/Cellar/mysql/8.0.17/share/man/man1/mysql_secure_installation.1
/usr/local/Cellar/mysql/8.0.17/share/man/man1/myisamlog.1
/usr/local/Cellar/mysql/8.0.17/share/man/man1/myisampack.1
/usr/local/Cellar/mysql/8.0.17/share/man/man1/mysql_ssl_rsa_setup.1
/usr/local/Cellar/mysql/8.0.17/share/aclocal/mysql.m4
/usr/local/Cellar/mysql/8.0.17/share/mysql/bulgarian/errmsg.sys
/usr/local/Cellar/mysql/8.0.17/share/mysql/dutch/errmsg.sys
/usr/local/Cellar/mysql/8.0.17/share/mysql/korean/errmsg.sys
/usr/local/Cellar/mysql/8.0.17/share/mysql/czech/errmsg.sys
/usr/local/Cellar/mysql/8.0.17/share/mysql/serbian/errmsg.sys
/usr/local/Cellar/mysql/8.0.17/share/mysql/japanese/errmsg.sys
/usr/local/Cellar/mysql/8.0.17/share/mysql/charsets/cp866.xml
/usr/local/Cellar/mysql/8.0.17/share/mysql/charsets/macroman.xml
/usr/local/Cellar/mysql/8.0.17/share/mysql/charsets/Index.xml
/usr/local/Cellar/mysql/8.0.17/share/mysql/charsets/swe7.xml
/usr/local/Cellar/mysql/8.0.17/share/mysql/charsets/geostd8.xml
/usr/local/Cellar/mysql/8.0.17/share/mysql/charsets/cp1250.xml
/usr/local/Cellar/mysql/8.0.17/share/mysql/charsets/cp1251.xml
/usr/local/Cellar/mysql/8.0.17/share/mysql/charsets/keybcs2.xml
/usr/local/Cellar/mysql/8.0.17/share/mysql/charsets/hp8.xml
/usr/local/Cellar/mysql/8.0.17/share/mysql/charsets/cp1256.xml
/usr/local/Cellar/mysql/8.0.17/share/mysql/charsets/cp1257.xml
/usr/local/Cellar/mysql/8.0.17/share/mysql/charsets/README
/usr/local/Cellar/mysql/8.0.17/share/mysql/charsets/hebrew.xml
/usr/local/Cellar/mysql/8.0.17/share/mysql/charsets/greek.xml
/usr/local/Cellar/mysql/8.0.17/share/mysql/charsets/ascii.xml
/usr/local/Cellar/mysql/8.0.17/share/mysql/charsets/macce.xml
/usr/local/Cellar/mysql/8.0.17/share/mysql/charsets/dec8.xml
/usr/local/Cellar/mysql/8.0.17/share/mysql/charsets/latin2.xml
/usr/local/Cellar/mysql/8.0.17/share/mysql/charsets/cp850.xml
/usr/local/Cellar/mysql/8.0.17/share/mysql/charsets/koi8u.xml
/usr/local/Cellar/mysql/8.0.17/share/mysql/charsets/latin1.xml
/usr/local/Cellar/mysql/8.0.17/share/mysql/charsets/cp852.xml
/usr/local/Cellar/mysql/8.0.17/share/mysql/charsets/latin5.xml
/usr/local/Cellar/mysql/8.0.17/share/mysql/charsets/latin7.xml
/usr/local/Cellar/mysql/8.0.17/share/mysql/charsets/armscii8.xml
/usr/local/Cellar/mysql/8.0.17/share/mysql/charsets/koi8r.xml
/usr/local/Cellar/mysql/8.0.17/share/mysql/german/errmsg.sys
/usr/local/Cellar/mysql/8.0.17/share/mysql/estonian/errmsg.sys
/usr/local/Cellar/mysql/8.0.17/share/mysql/install_rewriter.sql
/usr/local/Cellar/mysql/8.0.17/share/mysql/hungarian/errmsg.sys
/usr/local/Cellar/mysql/8.0.17/share/mysql/slovak/errmsg.sys
/usr/local/Cellar/mysql/8.0.17/share/mysql/romanian/errmsg.sys
/usr/local/Cellar/mysql/8.0.17/share/mysql/norwegian-ny/errmsg.sys
/usr/local/Cellar/mysql/8.0.17/share/mysql/dictionary.txt
/usr/local/Cellar/mysql/8.0.17/share/mysql/innodb_memcached_config.sql
/usr/local/Cellar/mysql/8.0.17/share/mysql/russian/errmsg.sys
/usr/local/Cellar/mysql/8.0.17/share/mysql/italian/errmsg.sys
/usr/local/Cellar/mysql/8.0.17/share/mysql/english/errmsg.sys
/usr/local/Cellar/mysql/8.0.17/share/mysql/greek/errmsg.sys
/usr/local/Cellar/mysql/8.0.17/share/mysql/norwegian/errmsg.sys
/usr/local/Cellar/mysql/8.0.17/share/mysql/errmsg-utf8.txt
/usr/local/Cellar/mysql/8.0.17/share/mysql/portuguese/errmsg.sys
/usr/local/Cellar/mysql/8.0.17/share/mysql/danish/errmsg.sys
/usr/local/Cellar/mysql/8.0.17/share/mysql/polish/errmsg.sys
/usr/local/Cellar/mysql/8.0.17/share/mysql/french/errmsg.sys
/usr/local/Cellar/mysql/8.0.17/share/mysql/swedish/errmsg.sys
/usr/local/Cellar/mysql/8.0.17/share/mysql/spanish/errmsg.sys
/usr/local/Cellar/mysql/8.0.17/share/mysql/uninstall_rewriter.sql
/usr/local/Cellar/mysql/8.0.17/share/mysql/ukrainian/errmsg.sys
/usr/local/Cellar/mysql/8.0.17/share/doc/mysql/ChangeLog
/usr/local/Cellar/mysql/8.0.17/share/doc/mysql/INFO_SRC
/usr/local/Cellar/mysql/8.0.17/share/doc/mysql/INFO_BIN
/usr/local/Cellar/mysql/8.0.17/share/doc/mysql/sample_mysqlrouter.conf
suwa@suwaenmaikonoMacBook-Pro [20時36分16秒] [~/riders_meeting_app2/riders_meeting_app] [heddermenu *]
-> % brew ls mysql | grep '.h$'
/usr/local/Cellar/mysql/8.0.17/include/mysql/my_command.h
/usr/local/Cellar/mysql/8.0.17/include/mysql/mysql_version.h
/usr/local/Cellar/mysql/8.0.17/include/mysql/mysql_time.h
/usr/local/Cellar/mysql/8.0.17/include/mysql/my_list.h
/usr/local/Cellar/mysql/8.0.17/include/mysql/mysqlx_version.h
/usr/local/Cellar/mysql/8.0.17/include/mysql/field_types.h
/usr/local/Cellar/mysql/8.0.17/include/mysql/mysql_com.h
/usr/local/Cellar/mysql/8.0.17/include/mysql/mysql/plugin_auth_common.h
/usr/local/Cellar/mysql/8.0.17/include/mysql/mysql/udf_registration_types.h
/usr/local/Cellar/mysql/8.0.17/include/mysql/mysql/client_plugin.h
/usr/local/Cellar/mysql/8.0.17/include/mysql/mysql.h
/usr/local/Cellar/mysql/8.0.17/include/mysql/mysqlx_error.h
/usr/local/Cellar/mysql/8.0.17/include/mysql/mysqlx_ername.h
/usr/local/Cellar/mysql/8.0.17/include/mysql/mysqld_error.h
/usr/local/Cellar/mysql/8.0.17/include/mysql/errmsg.h
suwa@suwaenmaikonoMacBook-Pro [20時36分21秒] [~/riders_meeting_app2/riders_meeting_app] [heddermenu *]
-> % vim ~/.zshrc                                                  
suwa@suwaenmaikonoMacBook-Pro [20時38分04秒] [~/riders_meeting_app2/riders_meeting_app] [heddermenu *]
-> % gem install mysql2 -v '0.5.2' --source 'https://rubygems.org/'
Building native extensions. This could take a while...
^CERROR:  Interrupted
suwa@suwaenmaikonoMacBook-Pro [20時42分52秒] [~/riders_meeting_app2/riders_meeting_app] [hedde
suwa@suwaenmaikonoMacBook-Pro [20時51分57秒] [~/riders_meeting_app2/riders_meeting_app] [hedde
suwa@suwaenmaikonoMacBook-Pro [20時52分03秒] [~/riders_meeting_app2/riders_meeting_app] [hedde
suwa@suwaenmaikonoMacBook-Pro [22時06分00秒] [~/riders_meeting_app2/riders_meeting_app] [heddermen
suwa@suwaenmaikonoMacBook-Pro [23時21分55秒] [~/riders_meeting_app2/riders_meeting_app] [hedderme
suwa@suwaenmaikonoMacBook-Pro [23時21分55秒] [~/riders_meeting_app2/riders_meeting_app] [heddermen
u *]
-> % gem install mysql2 -v '0.5.2' --source 'https://rubygems.org/'`
 `
==> Tapping homebrew/services
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-services'...
remote: Enumerating objects: 14, done.
remote: Counting objects: 100% (14/14), done.
remote: Compressing objects: 100% (9/9), done.
remote: Total 14 (delta 0), reused 8 (delta 0), pack-reused 0
Unpacking objects: 100% (14/14), done.
Tapped 1 command (43 files, 59.5KB).
==> Successfully started `mysql@5.7` (label: homebrew.mxcl.mysql@5.7)
suwa@suwaenmaikonoMacBook-Pro [20時52分14秒] [~/riders_meeting_app2/riders_meeting_app] [heddermenu *]
-> % mysql.server status                                            SUCCESS! MySQL running (58706)
suwa@suwaenmaikonoMacBook-Pro [20時52分18秒] [~/riders_meeting_app2/riders_meeting_app] [heddermenu *]
-> % mysql -uroot 
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.7.27 Homebrew

Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
| performance_schema |
| sys                |
+--------------------+
4 rows in set (0.00 sec)

mysql> ^DBye
suwa@suwaenmaikonoMacBook-Pro [20時52分28秒] [~/riders_meeting_app2/riders_meeting_app] [heddermenu *]
-> % rake db:migrate:status                                        
rake aborted!
ActiveRecord::NoDatabaseError: Unknown database 'rider_meeting'

Caused by:
Mysql2::Error: Unknown database 'rider_meeting'

Tasks: TOP => db:migrate:status
(See full trace by running task with --trace)
suwa@suwaenmaikonoMacBook-Pro [20時52分54秒] [~/riders_meeting_app2/riders_meeting_app] [heddermenu *]
-> % cat config/database.yml 
# SQLite version 3.x
#   gem install sqlite3
#
#   Ensure the SQLite 3 gem is defined in your Gemfile
#   gem 'sqlite3'
#
default: &default
#  adapter: sqlite3
#  pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
#  timeout: 5000
  adapter: mysql2
  database: rider_meeting
  username: root
  password: 
  host: localhost
  encoding: utf8

development:
  <<: *default
#  database: db/development.sqlite3

# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test:
  <<: *default
#  database: db/test.sqlite3

production:
  <<: *default
#  database: db/production.sqlite3
suwa@suwaenmaikonoMacBook-Pro [20時53分22秒] [~/riders_meeting_app2/riders_meeting_app] [heddermenu *]
-> % mysql -uroot                 
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 4
Server version: 5.7.27 Homebrew

Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql>  create database rider_meeting;
Query OK, 1 row affected (0.00 sec)

mysql> show databses;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'databses' at line 1
mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
| performance_schema |
| rider_meeting      |
| sys                |
+--------------------+
5 rows in set (0.00 sec)

mysql> ^DBye
suwa@suwaenmaikonoMacBook-Pro [20時53分43秒] [~/riders_meeting_app2/riders_meeting_app] [heddermenu *]
-> % rake db:migrate:status 
Schema migrations table does not exist yet.
suwa@suwaenmaikonoMacBook-Pro [20時53分46秒] [~/riders_meeting_app2/riders_meeting_app] [heddermenu *]
-> % rake db:migrate       
== 20190817155929 CreateRiders: migrating =====================================
-- create_table(:riders)
   -> 0.0171s
== 20190817155929 CreateRiders: migrated (0.0172s) ============================

== 20190817155943 CreateTouringRoutes: migrating ==============================
-- create_table(:touring_routes)
   -> 0.0165s
== 20190817155943 CreateTouringRoutes: migrated (0.0166s) =====================

suwa@suwaenmaikonoMacBook-Pro [20時53分52秒] [~/riders_meeting_app2/riders_meeting_app] [heddermenu *]
-> % rake db:migrate:status

database: rider_meeting

 Status   Migration ID    Migration Name
--------------------------------------------------
   up     20190817155929  Create riders
   up     20190817155943  Create touring routes

suwa@suwaenmaikonoMacBook-Pro [20時53分55秒] [~/riders_meeting_app2/riders_meeting_app] [heddermenu *]
-> % rails s               
=> Booting Puma
=> Rails 5.2.3 application starting in development 
=> Run `rails server -h` for more startup options
Puma starting in single mode...
* Version 3.12.1 (ruby 2.6.3-p62), codename: Llamas in Pajamas
* Min threads: 5, max threads: 5
* Environment: development
* Listening on tcp://localhost:3000
Use Ctrl-C to stop
Started GET "/touring_routs" for ::1 at 2019-08-20 20:55:23 +0900
   (0.3ms)  SET NAMES utf8,  @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'),  @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483
  ↳ /Users/suwa/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98
   (0.2ms)  SELECT `schema_migrations`.`version` FROM `schema_migrations` ORDER BY `schema_migrations`.`version` ASC
  ↳ /Users/suwa/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98

ActionController::RoutingError (No route matches [GET] "/touring_routs"):

actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call'
web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app'
web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call'
web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch'
web-console (3.7.0) lib/web_console/middleware.rb:20:in `call'
actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'
railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app'
railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call'
activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged'
activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged'
activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged'
railties (5.2.3) lib/rails/rack/logger.rb:26:in `call'
sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call'
actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call'
actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call'
rack (2.0.7) lib/rack/method_override.rb:22:in `call'
rack (2.0.7) lib/rack/runtime.rb:22:in `call'
activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'
actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call'
actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call'
rack (2.0.7) lib/rack/sendfile.rb:111:in `call'
railties (5.2.3) lib/rails/engine.rb:524:in `call'
puma (3.12.1) lib/puma/configuration.rb:227:in `call'
puma (3.12.1) lib/puma/server.rb:660:in `handle_request'
puma (3.12.1) lib/puma/server.rb:474:in `process_client'
puma (3.12.1) lib/puma/server.rb:334:in `block in run'
puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread'
Started GET "/touring_routes" for ::1 at 2019-08-20 20:55:35 +0900
Processing by TouringRoutesController#index as HTML
  Rendering touring_routes/index.html.erb within layouts/application
  TouringRoute Load (1.4ms)  SELECT `touring_routes`.* FROM `touring_routes`
  ↳ app/views/touring_routes/index.html.erb:29
  Rendered touring_routes/index.html.erb within layouts/application (12.2ms)
Completed 200 OK in 558ms (Views: 543.1ms | ActiveRecord: 9.0ms)

Started GET "/riders" for ::1 at 2019-08-20 20:55:59 +0900
Processing by RidersController#index as HTML
  Rendering riders/index.html.erb within layouts/application
  Rider Load (0.3ms)  SELECT `riders`.* FROM `riders`
  ↳ app/views/riders/index.html.erb:19
  Rendered riders/index.html.erb within layouts/application (3.1ms)
Completed 200 OK in 24ms (Views: 19.9ms | ActiveRecord: 0.7ms)

Started GET "/riders/new" for ::1 at 2019-08-20 20:56:02 +0900
Processing by RidersController#new as HTML
  Rendering riders/new.html.erb within layouts/application
  Rendered riders/_form.html.erb (26.3ms)
  Rendered riders/new.html.erb within layouts/application (28.2ms)
Completed 200 OK in 54ms (Views: 41.4ms | ActiveRecord: 3.6ms)

Started GET "/riders" for ::1 at 2019-08-20 20:56:06 +0900
Processing by RidersController#index as HTML
  Rendering riders/index.html.erb within layouts/application
  Rider Load (0.3ms)  SELECT `riders`.* FROM `riders`
  ↳ app/views/riders/index.html.erb:19
  Rendered riders/index.html.erb within layouts/application (2.0ms)
Completed 200 OK in 20ms (Views: 18.8ms | ActiveRecord: 0.3ms)

^C- Gracefully stopping, waiting for requests to finish
=== puma shutdown: 2019-08-21 22:03:54 +0900 ===
- Goodbye!
Exiting```
mochi5o commented 5 years ago

ありがとうございます!私のローカルでのセットアップ失敗は同じことが原因のような気がするので、時間が取れる時にログを読み解きながら一度やってみたいです!!