Ruby On Rails: Error Message When Trying To Start WEBrick -


i'm total newbie trying learn rails lynda.com ruby on rails tutorial. i've got rails 3.0 installed , ruby germs 1.8. point in tutorial, have created rails project , access it. tutor says should able type

rails server 

in terminal on mac boot webrick comes installed rails.

however, when it, got error message below (which can't make sense of). **do know can webrick working?

note: have mysql installed locally (/usr/local/mysql/bin/mysql) , running. have mamp installed not running (i use php applications). use mysql , webrick can work along tutorial, if there's alternative solution can think of please let me know...

/library/ruby/gems/1.8/gems/mysql2-0.3.2/lib/mysql2/mysql2.bundle: dlopen(/library/ruby/gems/1.8/gems/mysql2-0.3.2/lib/mysql2/mysql2.bundle, 9): library not loaded: libmysqlclient.18.dylib (loaderror)   referenced from: /library/ruby/gems/1.8/gems/mysql2-0.3.2/lib/mysql2/mysql2.bundle   reason: image not found - /library/ruby/gems/1.8/gems/mysql2-0.3.2/lib/mysql2/mysql2.bundle     /library/ruby/gems/1.8/gems/mysql2-0.3.2/lib/mysql2.rb:8     /library/ruby/gems/1.8/gems/bundler-1.0.14/lib/bundler/runtime.rb:68:in `require'     /library/ruby/gems/1.8/gems/bundler-1.0.14/lib/bundler/runtime.rb:68:in `require'     /library/ruby/gems/1.8/gems/bundler-1.0.14/lib/bundler/runtime.rb:66:in `each'     /library/ruby/gems/1.8/gems/bundler-1.0.14/lib/bundler/runtime.rb:66:in `require'     /library/ruby/gems/1.8/gems/bundler-1.0.14/lib/bundler/runtime.rb:55:in `each'     /library/ruby/gems/1.8/gems/bundler-1.0.14/lib/bundler/runtime.rb:55:in `require'     /library/ruby/gems/1.8/gems/bundler-1.0.14/lib/bundler.rb:120:in `require'     /users/michaelmitchell/sites/simple_cms/config/application.rb:7     /library/ruby/gems/1.8/gems/railties-3.0.7/lib/rails/commands.rb:28:in `require'     /library/ruby/gems/1.8/gems/railties-3.0.7/lib/rails/commands.rb:28     /library/ruby/gems/1.8/gems/railties-3.0.7/lib/rails/commands.rb:27:in `tap'     /library/ruby/gems/1.8/gems/railties-3.0.7/lib/rails/commands.rb:27     script/rails:6:in `require'     script/rails:6 

update tried reinstall of mysql2

sudo gem install mysql2 — –with-mysql-configs=/usr/local/mysql/bin/mysql_config 

error message

building native extensions.  take while... installed mysql2-0.3.6 error:  not find valid gem '—' (>= 0) in repository error:  not find valid gem '–with-mysql-configs=/usr/local/mysql/bin/mysql_config' (>= 0) in repository 1 gem installed installing ri documentation mysql2-0.3.6...  enclosing class/module 'mmysql2' class client not known  enclosing class/module 'mmysql2' class result not known installing rdoc documentation mysql2-0.3.6...  enclosing class/module 'mmysql2' class client not known  enclosing class/module 'mmysql2' class result not known 

i had same problem , comments above doesn't relate mistake. video didn't make cd simple_cms. trying execute rails server command in sites folder (thats video leaves you) impossible. make sure cd back simple_cms , rails server.


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -