I am trying to install MySQL via homebrew and I keep getting an error:
brew install mysql
==> Installing mysql dependency: openssl
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/openssl-1.0
curl: (35) Server aborted the SSL handshake
Error: Failed to download resource "openssl"
Download failed: https://downloads.sf.net/project/machomebrew/Bottles/openssl-1.0.1h.mavericks.bottle.tar.gz
Warning: Bottle installation failed: building from source.
Error: /usr/local/opt/makedepend not present or broken
Please reinstall makedepend. Sorry :(
What might be the problem here?
Thanks in advance.
try to do :
brew install makedepend
Try to do:
brew update
I helped me with SSL dependency.
Related
I'm trying to install mysql using brew, so I'm running the command brew install mysql, but I get this error:
How can I fix this?
MySQL suddenly stopped working after updating from macOS Big Sur to Monterey (naive). Local Laravel dev environment suddenly lost connection to MySQL. Couldn't debug it properly (still learning), so decided to do a fresh MySQL installation via brew. Was installed through brew previously as well.
On the final step, mysql_secure_installation shows this:
Error: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
brew services start mysql
Bootstrap failed: 5: Input/output error
Try re-running the command as root for richer errors.
Error: Failure while executing; `/bin/launchctl bootstrap gui/501 /Users/stranger/Library/LaunchAgents/homebrew.mxcl.mysql.plist` exited with 5.
Am I doing something wrong? Why would it suddenly drop?
Thanks!
Not a solution, but, according to the MySQL documentation, Monterey is not yet a supported platform.
MySQL Supported Platforms
I tried brew uninstall mysql, brew install mysql and then brew services restart mysql and it did the trick for me
I upgraded MySQL (and a slew of other packages) using the ever-so dangerous brew update && brew upgrade
After the upgrade, I started getting a database connection error in the browser and then realized the OpenSSL library is now missing
My initial thought was to force uninstall OpenSSL and re-install the version MySQL is looking for, but there's quite a few packages depending on the current version.
Error
chris$ mysql -v
dyld: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
Referenced from: /usr/local/bin/mysql
Reason: image not found
OpenSSL
Attempt to brew uninstall openssl (with intention of re-reinstalling 1.0)
Try to switch back:
brew switch openssl 1.0.2t
Helped for me.
I tried to install mysql using brew and got the following error:
dyn-160-39-161-214:Cellar Bren$ brew install mysql
==> Downloading http://cdn.mysql.com/Downloads/MySQL-5.6/mysql-5.6.19.tar.gz
curl: (22) The requested URL returned error: 404 Not Found
Error: Failed to download resource "mysql"
Download failed: http://cdn.mysql.com/Downloads/MySQL-5.6/mysql-5.6.19.tar.gz
dyn-160-39-161-214:Cellar Brennan$ brew install mysql
==> Downloading http://cdn.mysql.com/Downloads/MySQL-5.6/mysql-5.6.19.tar.gz
curl: (22) The requested URL returned error: 404 Not Found
Error: Failed to download resource "mysql"
Download failed: http://cdn.mysql.com/Downloads/MySQL-5.6/mysql-5.6.19.tar.gz
I looked around and couldn't find any resources about this. To be frank I'm not sure its a fault on my side. I seem to be able to brew other things ok.
I installed homebrew and Xcode 4.3.2 with command line tools on Mac Osx Lion and when I now try to install mysql with :
brew install mysql -v
I get the error :
Error: #<BuildError: Failed executing: cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/mysql/5.5.20 -DMYSQL_DATADIR=/usr/local/var/mysql -DINSTALL_MANDIR=/usr/local/Cellar/mysql/5.5.20/share/man -DINSTALL_DOCDIR=/usr/local/Cellar/mysql/5.5.20/share/doc/mysql -DINSTALL_INFODIR=/usr/local/Cellar/mysql/5.5.20/share/info -DINSTALL_MYSQLSHAREDIR=share/mysql -DWITH_SSL=yes -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci -DSYSCONFDIR=/usr/local/etc -DWITH_UNIT_TESTS=OFF -DWITH_READLINE=yes>
Here you find the full log :
https://gist.github.com/2421381
I checked the logs but there is nothing that can help me for the moment. Brew doctor is also clean and give no errors.
Found the solution with thanks to a reply of visoft on my gist post. This solution worked for me. The problem is coming from Cmake, I need version 2.8.7 instead of 2.8.8, run this code to get it work :
cd /usr/local
brew uninstall cmake
git checkout 948c2769 Library/Formula/cmake.rb
brew install mysql
After this, mysql was installed successfully.