brew和mysql55无法安装

时间:2014-03-19 14:14:43

标签: mysql macos homebrew

我必须在我的机器上安装mysql 5.5,但我有时也需要mysql 5.6用于其他项目。我通过brew安装了mysql 5.6,并认为用brew switch mysql 5.5在它们之间切换很容易。

不幸的是,在尝试安装5.5时,我收到以下错误,无法在Google或其他网站上找到任何内容:

$ brew install mysql55
==> Downloading http://downloads.mysql.com/archives/mysql-5.5/mysql-5.5.30.tar.gz
Already downloaded: /Library/Caches/Homebrew/mysql55-5.5.30.tar.gz
==> cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/mysql55/5.5.30 -DMYSQL_DATADIR=/usr/local/var/mysql55 -DINSTALL_MANDIR=/usr/local/Cellar/mysql55/5.5.30/share/man -DINSTALL_DO
==> make
ld: can't write to output file: resolveip, errno=28 for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [extra/resolveip] Error 1
make[1]: *** [extra/CMakeFiles/resolveip.dir/all] Error 2
make: *** [all] Error 2

任何想法,如何解决这个问题?

1 个答案:

答案 0 :(得分:0)

我自己解决了这个问题:

  • 卸载mysql AND mysql55
  • 正在运行brew doctor并解决所有问题
  • 再次安装

我无法确切地说出它是什么,但现在似乎有用了。