# Webrick will not start on OSX 10.6.4. Snow Leopard

**URL:** <https://www.ruby-forum.com/t/webrick-will-not-start-on-osx-10-6-4-snow-leopard/190417>\
**Category:** Rails\
**Created:** [June 19, 2010, 6:06pm UTC](https://www.ruby-forum.com/t/webrick-will-not-start-on-osx-10-6-4-snow-leopard/190417 "2010-06-19T18:06:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rhand-on-ruby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e19adc/32.png) [@rhand-on-ruby](https://www.ruby-forum.com/u/rhand-on-ruby)\
**Post date:** [June 19, 2010, 6:06pm UTC](https://www.ruby-forum.com/t/webrick-will-not-start-on-osx-10-6-4-snow-leopard/190417/1 "2010-06-19T18:06:51Z")

</div>

I cannot get Rails to play nice with my MacPorts installed MySQL5:

$ script/server  
=\> Booting WEBrick  
=\> Rails 2.3.8 application starting on [http://0.0.0.0:3000](http://0.0.0.0:3000)  
/opt/local/lib/ruby/1.8/yaml.rb:133:in `load': syntax error on line 24, col 2: ` socket: /opt/local/var/run/mysql5/  
mysqld.sock’ (ArgumentError)  
from /opt/local/lib/ruby/1.8/yaml.rb:133:in `load' from /opt/local/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb: 902:in `database\_configuration’  
from /opt/local/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb:  
437:in `initialize_database' from /opt/local/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb: 141:in `process’  
from /opt/local/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb:  
113:in `send' from /opt/local/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb: 113:in `run’  
from /Users/jasper/rails/rails\_space/config/environment.rb:9  
from /opt/local/lib/ruby/vendor\_ruby/1.8/rubygems/custom\_require.rb:  
31:in `gem_original_require' from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb: 31:in `require’  
from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/  
active\_support/dependencies.rb:156:in `require' from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/ active_support/dependencies.rb:521:in `new\_constants\_in’  
from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/  
active\_support/dependencies.rb:156:in `require' from /opt/local/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/commands/ server.rb:84 from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb: 31:in `gem\_original\_require’  
from /opt/local/lib/ruby/vendor\_ruby/1.8/rubygems/custom\_require.rb:  
31:in `require’  
from script/server:3

How to remedy this… The socket is in /opt/local/var/run/mysql5/  
mysqld.sock:

me$ pwd  
/opt/local/var/run/mysql5  
me$ ls  
mysqld.sock

so what is the issue?

---

<div class="post-metadata">

**Author:** ![rhand-on-ruby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e19adc/32.png) [@rhand-on-ruby](https://www.ruby-forum.com/u/rhand-on-ruby)\
**Post date:** [June 19, 2010, 6:09pm UTC](https://www.ruby-forum.com/t/webrick-will-not-start-on-osx-10-6-4-snow-leopard/190417/2 "2010-06-19T18:09:11Z")

</div>

On Jun 19, 1:29 pm, rhand-on-ruby [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I cannot get Rails to play nice with my MacPorts installed MySQL5:
> 
> $ script/server  
> =\> Booting WEBrick  
> =\> Rails 2.3.8 application starting onhttp://0.0.0.0:3000  
> /opt/local/lib/ruby/1.8/yaml.rb:133:in `load': syntax error on line 24, col 2: ` socket: /opt/local/var/run/mysql5/  
> mysqld.sock’ (ArgumentError)

It’s saying that there is a syntax error in your database.yml file

Fred
