RoR Error When Doing: rake db:schema:load

Hey, I am new to this and I thought I had finally set up everything
perfectly after three days of trying to configure it. However I run this
command:

rake db:schema:load

and I get an error “syntax error on line 23, col 11: `’”. The error
however is now with the schema it’s with the ruby install itself as you
can see with the trace I ran:

chris-campbells-computer:~/Sites/beast Chris$ rake db:schema:load
–trace
(in /Users/Chris/Sites/beast)
** Invoke db:schema:load (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
syntax error on line 23, col 11: ' /usr/local/lib/ruby/1.8/yaml.rb:133:inload’
/usr/local/lib/ruby/1.8/yaml.rb:133:in load' /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:459:indatabase_configuration’
/usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:181:in
initialize_database' /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:84:inprocess’
/usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:42:in
run' /Users/Chris/Sites/beast/config/../config/environment.rb:13 /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:inrequire’
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in
require' /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/tasks/misc.rake:3 /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:392:inexecute’
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:392:in
execute' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:362:ininvoke’
/usr/local/lib/ruby/1.8/thread.rb:135:in synchronize' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:355:ininvoke’
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:369:in
invoke_prerequisites' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1003:ineach’
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:368:in
invoke_prerequisites' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:361:ininvoke’
/usr/local/lib/ruby/1.8/thread.rb:135:in synchronize' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:355:ininvoke’
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1739:in
top_level' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1739:intop_level’
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1761:in
standard_exception_handling' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1733:intop_level’
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1711:in run' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1761:instandard_exception_handling’
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1708:in `run’
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/bin/rake:7
/usr/local/bin/rake:18

Any ideas? Im getting really frustrated!

The problem is likely in your database.yml file and not in your Ruby
install, so I’d start there.

Chris Campbell wrote:

rake db:schema:load

and I get an error “syntax error on line 23, col 11: `’”. The error
however is now with the schema it’s with the ruby install itself as you
can see with the trace I ran:

chris-campbells-computer:~/Sites/beast Chris$ rake db:schema:load
–trace
(in /Users/Chris/Sites/beast)
** Invoke db:schema:load (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
syntax error on line 23, col 11: ' /usr/local/lib/ruby/1.8/yaml.rb:133:inload’
/usr/local/lib/ruby/1.8/yaml.rb:133:in load' /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:459:indatabase_configuration’

Gabriel Gironda wrote:

The problem is likely in your database.yml file and not in your Ruby
install, so I’d start there.

Chris Campbell wrote:

rake db:schema:load

and I get an error “syntax error on line 23, col 11: `’”. The error
however is now with the schema it’s with the ruby install itself as you
can see with the trace I ran:

chris-campbells-computer:~/Sites/beast Chris$ rake db:schema:load
–trace
(in /Users/Chris/Sites/beast)
** Invoke db:schema:load (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
syntax error on line 23, col 11: ' /usr/local/lib/ruby/1.8/yaml.rb:133:inload’
/usr/local/lib/ruby/1.8/yaml.rb:133:in load' /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:459:indatabase_configuration’

Yes, that is what I thought at first, but the referenced lines and
surrounding areas is fine. The database.yml is actually from the ruby
forum called “Beast”. I got it from the SNV.
http://svn.techno-weenie.net/projects/beast/branches/stable-1.0/README

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs