Ruby Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesRuby Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 21st, 2011, 11:44 AM
GFP63 GFP63 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2010
Posts: 61 GFP63 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 12 h 16 m 28 sec
Reputation Power: 3
RoR: Error Starting WEBrick

Following the tutorial on lynda.com and just completed installing all components and creating the project. When attempting to start up the server I am getting the following error(s?).

I am assuming the 'Reason' highlighted in red is the main problem.

Thank you in advane.

GFP:simple_cms username$ rails server
/usr/local/lib/ruby/gems/1.8/gems/mysql2-0.2.11/lib/mysql2/mysql2.bundle: dlopen(/usr/local/lib/ruby/gems/1.8/gems/mysql2-0.2.11/lib/mysql2/mysql2.bundle, 9): Library not loaded: libmysqlclient.18.dylib (LoadError)
Referenced from: /usr/local/lib/ruby/gems/1.8/gems/mysql2-0.2.11/lib/mysql2/mysql2.bundle
Reason: image not found - /usr/local/lib/ruby/gems/1.8/gems/mysql2-0.2.11/lib/mysql2/mysql2.bundle
from /usr/local/lib/ruby/gems/1.8/gems/mysql2-0.2.11/lib/mysql2.rb:9
from /usr/local/lib/ruby/gems/1.8/gems/bundler-1.0.15/lib/bundler/runtime.rb:68:in `require'
from /usr/local/lib/ruby/gems/1.8/gems/bundler-1.0.15/lib/bundler/runtime.rb:68:in `require'
from /usr/local/lib/ruby/gems/1.8/gems/bundler-1.0.15/lib/bundler/runtime.rb:66:in `each'
from /usr/local/lib/ruby/gems/1.8/gems/bundler-1.0.15/lib/bundler/runtime.rb:66:in `require'
from /usr/local/lib/ruby/gems/1.8/gems/bundler-1.0.15/lib/bundler/runtime.rb:55:in `each'
from /usr/local/lib/ruby/gems/1.8/gems/bundler-1.0.15/lib/bundler/runtime.rb:55:in `require'
from /usr/local/lib/ruby/gems/1.8/gems/bundler-1.0.15/lib/bundler.rb:120:in `require'
from /Users/georgepapini/Sites/simple_cms/config/application.rb:7
from /usr/local/lib/ruby/gems/1.8/gems/railties-3.0.9/lib/rails/commands.rb:28:in `require'
from /usr/local/lib/ruby/gems/1.8/gems/railties-3.0.9/lib/rails/commands.rb:28
from /usr/local/lib/ruby/gems/1.8/gems/railties-3.0.9/lib/rails/commands.rb:27:in `tap'
from /usr/local/lib/ruby/gems/1.8/gems/railties-3.0.9/lib/rails/commands.rb:27
from script/rails:6:in `require'
from script/rails:6

If it matters or helps:

gem list

*** LOCAL GEMS ***

abstract (1.0.0)
actionmailer (3.0.9, 2.3.8, 2.3.5, 2.3.4)
actionpack (3.0.9, 2.3.8, 2.3.5, 2.3.4)
activemodel (3.0.9)
activerecord (3.0.9, 2.3.8, 2.3.5)
activeresource (3.0.9, 2.3.8, 2.3.5, 2.3.4)
activesupport (3.0.9, 2.3.8, 2.3.5)
arel (2.0.10)
builder (2.1.2)
bundler (1.0.15)
erubis (2.6.6)
i18n (0.5.0)
mail (2.2.19)
mime-types (1.16)
mysql (2.8.1 ruby)
mysql2 (0.3.6, 0.2.11)
polyglot (0.3.1)
rack (1.2.3, 1.1.0, 1.0.0)
rack-mount (0.6.14)
rack-test (0.5.7)
rails (3.0.9, 2.3.8, 2.3.5, 2.3.4)
railties (3.0.9)
rake (0.9.2, 0.8.7)
rdoc (3.6.1)
rubydoctest (1.0.0)
rubygems-update (1.8.5, 1.3.7)
thor (0.14.6)
treetop (1.4.9)
tzinfo (0.3.28)

which gem
/usr/local/bin/gem

Reply With Quote
  #2  
Old June 21st, 2011, 02:54 PM
GFP63 GFP63 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2010
Posts: 61 GFP63 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 12 h 16 m 28 sec
Reputation Power: 3
Resolved:

Found the answer (that worked for me) on the stackoverflow board:

sudo env ARCHFLAGS="-arch i386" gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesRuby Programming > RoR: Error Starting WEBrick

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap