MacOS 上的 Rails Mysql 安装 - CMake 错误
我在 MacOS Snow Leopard 上为 Ruby on Rails 安装 mysql 时遇到问题。 我按照这个网站上的教程 http://michaelfarmer.info/ Preferred-rails-3-and-mysql-installation-on-o。
在mysql安装(brew install mysql)的步骤中,终端暴露了一个错误:
CMake 错误:缓存文件 /tmp/homebrew-cmake-2.8.4-fYTo/cmake-2.8.4/CMakeCache.txt 中解析错误。违规条目:/SDKs/MacOSX10.6.sdk
我发现问题来自于 Xcode 没有安装在默认目录“/Developer”中。正如这里所解释的: https://github.com/mxcl/homebrew/issues/5182
此时我完全迷失了,我现在该怎么办?
这是我的brew --config
HOMEBREW_VERSION:0.8
头:(无)
HOMEBREW_PREFIX:/usr/local
HOMEBREW_CELLAR:/usr/local/Cellar
HOMEBREW_REPOSITORY:/usr/local
HOMEBREW_LIBRARY_PATH:/usr/local/Library/Homebrew
硬件:双核64位core2
操作系统:10.6.7
内核架构:i386
红宝石:1.8.7-174
/ usr / bin / ruby =>; /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
Xcode:3.2.5
GCC-4.0:版本 5494
GCC-4.2:构建 5664
LLVM:版本 2333
MacPorts 还是 Fink?假
X11安装了吗?正确
预先感谢您的帮助。 卡米尔。
I've got an issue with the installation of mysql for Ruby on Rails on MacOS Snow Leopard.
I follow the tutorial on this website http://michaelfarmer.info/preferred-rails-3-and-mysql-installation-on-o.
At the step of mysql installation (brew install mysql), the Terminal exposes an error which is:
CMake Error: Parse error in cache file /tmp/homebrew-cmake-2.8.4-fYTo/cmake-2.8.4/CMakeCache.txt. Offending entry: /SDKs/MacOSX10.6.sdk
I found out that the problem comes from the fact that Xcode is not installed in the default directory "/Developer". As it is explained here : https://github.com/mxcl/homebrew/issues/5182
At this point, I'm completely lost, what am I supposed to do now ?
Here's my brew --config
HOMEBREW_VERSION: 0.8
HEAD: (none)
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_REPOSITORY: /usr/local
HOMEBREW_LIBRARY_PATH: /usr/local/Library/Homebrew
Hardware: dual-core 64-bit core2
OS X: 10.6.7
Kernel Architecture: i386
Ruby: 1.8.7-174
/usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
Xcode: 3.2.5
GCC-4.0: build 5494
GCC-4.2: build 5664
LLVM: build 2333
MacPorts or Fink? false
X11 installed? true
Thanks in advance for any help.
Camille.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果可以的话,您可以从安装 Xcode 的路径到
/Developer
建立一个符号链接:然后 CMake(和 MySQL)将进行编译。 (我将 Xcode 保留在辅助驱动器上,因为我的主驱动器是一个小型 SSD,这对我有用)。
If you're able to, you could make a symbolic link from the path you have Xcode installed at to
/Developer
:And then CMake (and MySQL) will compile. (I keep Xcode on a secondary drive since my primary is a tiny SSD, and this worked for me).