这是交易。
$ gem --版本
1.1.0
$ sudo gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config
批量更新 Gem 源索引:http://gems.rubyforge.org/ http://gems.rubyforge.org/错误:
无法在本地或在某个目录中找到 mysql
存储库
$ sudo gem 更新
更新已安装的 gem 批量更新
宝石来源索引为:http://gems.rubyforge.org/ http://gems.rubyforge.org/
更新中
RedCloth 错误:执行 gem 时
...(Gem::GemNotFoundException)
在本地或存储库中找不到 RedCloth
我试过了this http://www.gregbenedict.com/2008/02/21/mysql-ruby-gem-install-issues-solved/, this http://dev.mysql.com/downloads/ruby.html, this http://installingcats.com/2007/12/13/mysql-ruby-gem-install-problem-on-mac-os-x-leopard/, this http://www.docuverse.com/blog/donpark/2007/06/14/os-x-mysql-ruby-gem-install-problem,还有很多其他的。
他们都没有为我工作过。还有其他人遇到这个问题吗?如果是这样,您采取了哪些措施来修复上面未提及的问题?
首先,正如 Orion Edwards 所说,确保您有 rubygems 1.2。很遗憾,
宝石更新--系统
不适合我。
相反,我必须:
- 手动下载rubygems-更新-1.2.0 http://rubyforge.org/frs/download.php/38844/rubygems-update-1.2.0.gem来自 RubyForge。
- $ sudo gem install /path/to/rubygems-update-1.2.0.gem
- $ update_rubygems
现在我有了 rubygems 1.2 我运行了
$ sudo gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config
一切正常。感谢 Orion Edwards 引导我走向正确的方向。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)