brew install mysql
で、MacにMySQLをインストールしようとしたところ、下記のエラーになりインストールできません。
Updating Homebrew...
Error: mysql: /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/mysql.rb:121: no .<digit> floating literal anymore; put 0 before dot
bind-address = 127.0.0.1
^
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/mysql.rb:121: syntax error, unexpected tFLOAT, expecting '('
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/mysql.rb:137: syntax error, unexpected <<
s = <<~EOS
^
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/mysql.rb:183: syntax error, unexpected tIDENTIFIER, expecting keyword_end
...clean dir, which testpath isn't.
... ^
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/mysql.rb:201: syntax error, unexpected keyword_end, expecting end-of-input
Macのバージョン: OS Sierra
10.12.6
MySQLは一度インストールしてあったのですが、動作がおかしくなったので、
brew uninstallで削除。
再度インストールし直そうとして、こちらのエラーになりました。
エラーメッセージからネットで検索してみたのですが、対処を見つけられませんでした。
よろしくお願いいたします。
$ brew update Updated 1 tap (caskroom/cask). No changes to formulae. $ brew doctor Please note that these warnings are just used to help the Homebrew maintainers with debugging if you file an issue. If everything you use Homebrew for is working fine: please don't worry and just ignore them. Thanks! Warning: You have unlinked kegs in your Cellar Leaving kegs unlinked can lead to build-trouble and cause brews that depend on those kegs to fail to run properly once built. Run `brew link` on these: libxml2 nmap openssl openssl@1.1 postgres readline Warning: Homebrew's sbin was not found in your PATH but you have installed formulae that put executables in /usr/local/sbin. Consider setting the PATH for example like so echo 'export PATH="/usr/local/sbin:$PATH"' >> ~/.bash_profile
というワーニングが出ました。
1つめのワーニングに対しては、それぞれbrew link ◯◯を試しました。
postgresだけは解消しきれず。下記のエラーが残りました。
$brew doctor Warning: You have unlinked kegs in your Cellar Leaving kegs unlinked can lead to build-trouble and cause brews that depend on those kegs to fail to run properly once built. Run `brew link` on these: postgres
2つめのワーニングはそのまま、echo 'export PATH="/usr/local/sbin:$PATH"' >> ~/.bash_profileを実行したら、Warningは出なくなりました。
再度、brew install mysqlを実行、状況は変わりませんでした。
回答3件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/10/30 07:13
2017/10/30 07:22
2017/10/30 07:30
2017/10/30 07:40