Problems installing mysql 5.5.20 with homebrew

I installed homebrew and Xcode 4.3.2 with command line tools on Mac Osx Lion, and when I now try to install mysql using

brew install mysql -v

I get an error message:

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 will find the full magazine:

https://gist.github.com/2421381

I checked the logs, but there is nothing that could help me at the moment. Brew Doctor is also clean and error free.

+3
source share
1 answer

Found a solution thanks to visoft's answer to my mail table. This solution worked for me. The problem comes from Cmake, I need version 2.8.7 instead of 2.8.8, run this code to make it work:

cd /usr/local
brew uninstall cmake
git checkout 948c2769 Library/Formula/cmake.rb
brew install mysql

After that, mysql was successfully installed.

+1
source

All Articles