Error when starting WEBBrick


#1

Hi… I installed Ruby On Rails on ubuntu and when I try to start the
server
I get the following:

felipe@balthazar:~/teste$ ruby script/server
=> Booting WEBrick…
/usr/local/lib/ruby/1.8/yaml.rb:133:in load': syntax error on line 31, col -1:’ (ArgumentError)
from /usr/local/lib/ruby/1.8/yaml.rb:133:in load' from ./script/../config/../vendor/rails/railties/lib/initializer.rb:459:indatabase_configuration’
from
./script/…/config/…/vendor/rails/railties/lib/initializer.rb:181:in
initialize_database' from ./script/../config/../vendor/rails/railties/lib/initializer.rb:84:inprocess’
from
./script/…/config/…/vendor/rails/railties/lib/initializer.rb:42:in
send' from ./script/../config/../vendor/rails/railties/lib/initializer.rb:42:inrun’
from ./script/…/config/…/config/environment.rb:13
from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
gem_original_require' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:inrequire’
from
./script/…/config/…/vendor/rails/activesupport/lib/active_support/dependencies.rb:147:in
require' from ./script/../config/../vendor/rails/railties/lib/commands/servers/webrick.rb:52 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:ingem_original_require’
from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
require' from ./script/../config/../vendor/rails/activesupport/lib/active_support/dependencies.rb:147:inrequire’
from
./script/…/config/…/vendor/rails/railties/lib/commands/server.rb:30
from script/server:3:in `require’
from script/server:3

This error occurs also when I try to create a scaffold.

line 133 of yaml.rb goes like this:

132: def YAML.load( io )
133: yp = parser.load( io )
134: end

I have no ideia of what is going on here, does anyone there has?
I am trying to run a single application since sunday but I had no
success of
making Rails work on linux. On the other hand, I had no problems in
making
it work on Windows XP (althought I still didn’t get how to set a Rails
application up on Apache2). I would like very much to be able to work on
linux, but all these things are driving me to just give up :(.

Thanks for your attention,

Felipe


#2

Hi!
I’m a newbie to this, just installed it; but have u set up your
database
correct in your teste/config/database.yml?

On 2/14/07, Felipe Sodré Silva removed_email_address@domain.invalid wrote:

./script/…/config/…/vendor/rails/railties/lib/initializer.rb:459:in
./script/…/config/…/vendor/rails/railties/lib/initializer.rb:42:in `run’
from
./script/…/config/…/vendor/rails/railties/lib/commands/server.rb:30
134: end
Felipe


Jimmie Elvenmark