我使用我們在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