私のOSX10.7.3にRails3.2.3とMySQL5.6をインストールしました
「simple_cms」という新しいプロジェクトを作成し、ターミナルで「railsserver」を使用してwebrickを起動しようとしましたが、何も得られませんでした。
Hideyoshis-MacBook-Pro:simple_CMS gregpfeffer $ rails s /Library/Ruby/Gems/1.8/gems/mysql2-0.3.11/lib/mysql2/mysql2.bundle:dlopen(/Library/Ruby/Gems/1.8/gems/mysql2 -0.3.11 / lib / mysql2 / mysql2.bundle、9):ライブラリがロードされていません:libmysqlclient.18.dylib(LoadError)参照元:/Library/Ruby/Gems/1.8/gems/mysql2-0.3.11/lib/ mysql2 / mysql2.bundle理由:イメージが見つかりません-/Library/Ruby/Gems/1.8/gems/mysql2-0.3の/Library/Ruby/Gems/1.8/gems/mysql2-0.3.11/lib/mysql2/mysql2.bundle .11 / lib / mysql2.rb:9 from /Library/Ruby/Gems/1.8/gems/bundler-1.1.3/lib/bundler/runtime.rb:68:in require'from require'
from /Library/Ruby/Gems/1.8/gems/bundler-1.1.3/lib/bundler/runtime.rb:68:in
/Library/Ruby/Gems/1.8 /gems/bundler-1.1.3/lib/bundler/runtime.rb:66:in require'from /Library/Ruby/Gems/1.8/gems/bundler-1.1.3/lib/bundler/runtime.rb:55 each'
from /Library/Ruby/Gems/1.8/gems/bundler-1.1.3/lib/bundler/runtime.rb:66:in
:のeach'
from /Library/Ruby/Gems/1.8/gems/bundler-1.1.3/lib/bundler/runtime.rb:55:in
require'from /Library/Ruby/Gems/1.8/gems/bundler-1.1.3/lib/bundler.rb:119:in require'
from /Users/gregpfeffer/Sites/simple_cms/config/application.rb:7
from /Library/Ruby/Gems/1.8/gems/railties-3.2.3/lib/rails/commands.rb:53:in
require' from /Library/Ruby/Gems/1.8/gems/railties-3.2.3/lib /rails/commands.rb:53 from /Library/Ruby/Gems/1.8/gems/railties-3.2.3/lib/rails/commands.rb:50:in require'from tap'
from /Library/Ruby/Gems/1.8/gems/railties-3.2.3/lib/rails/commands.rb:50
from script/rails:6:in
script / rails:6 Hideyoshis-MacBook-Pro :simple_CMS gregpfeffer $ sudo install_name_tool -change libmysqlclient.16.dylib /usr/local/mysql/lib/libmysqlclient.16.dylib/Library/Ruby/Gems/1.8/gems/mysql2-0.2.4/lib/mysql2/mysql2。 bundle install_name_tool:ファイルを開くことができません:/Library/Ruby/Gems/1.8/gems/mysql2-0.2.4/lib/mysql2/mysql2.bundle(そのようなファイルまたはディレクトリはありません)