我使用我们在WWDC获得的光盘升级到Snow Leopard。Rails,MySQL和Snow Leopard
试图运行我的一些轨的应用程式,现在抱怨SQL
(in /Users/coneybeare/Projects/Ambiance/ambiance-server)
!!! The bundled mysql.rb driver has been removed from Rails 2.2. Please install the mysql gem and try again: gem install mysql.
Importing all sounds in /Users/coneybeare/Projects/Ambiance/ambiance-sounds/Import 32/Compressed/
-- AdirondackPeepers.caf
!!! The bundled mysql.rb driver has been removed from Rails 2.2. Please install the mysql gem and try again: gem install mysql.
rake aborted!
dlopen(/opt/local/lib/ruby/gems/1.8/gems/mysql-2.7/lib/mysql.bundle, 9): Library not loaded: /usr/local/mysql/lib/libmysqlclient.16.dylib
Referenced from: /opt/local/lib/ruby/gems/1.8/gems/mysql-2.7/lib/mysql.bundle
Reason: image not found - /opt/local/lib/ruby/gems/1.8/gems/mysql-2.7/lib/mysql.bundle
(See full trace by running task with --trace)
我可以发誓,我以前曾经解决了这个问题。问题是,
sudo gem install mysql
不工作,并给出了错误:
Building native extensions. This could take a while...
ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.
/opt/local/bin/ruby extconf.rb install mysql
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lm... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lz... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lsocket... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lnsl... no
checking for mysql_query() in -lmysqlclient... no
Gem files will remain installed in /opt/local/lib/ruby/gems/1.8/gems/mysql-2.7 for inspection.
Results logged to /opt/local/lib/ruby/gems/1.8/gems/mysql-2.7/gem_make.out
有没有人得到的MySQL还与雪豹轨工作?如果是这样,你的设置是什么,更好的是,我能做些什么来重现它?
男人,感谢mysql.bundle上的领导。这在我的一台机器上烧毁了我。 – Scott 2009-08-29 22:49:59
这帮了我,谢谢你! – 2010-02-08 15:07:55
“我终于删除了mysql.bundle(我不知道这是干什么用的),它一切正常。”通过相同的逻辑,你可以尝试删除那个大的“mach_kernel”文件或那些“tmp”目录。从Apple安装的系统中删除东西不是一个好主意。要研究为什么首先出现在那里,然后决定是否可以删除。 – 2012-01-02 08:30:54