Forum: Ruby on Rails Error when starting WEBBrick

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
8a8f26706e23c97bc83828fa25421684?d=identicon&s=25 Felipe Sodré Silva (Guest)
on 2007-02-14 03:11
(Received via mailing list)
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:in
`database_configuration'
        from
./script/../config/../vendor/rails/railties/lib/initializer.rb:181:in
`initialize_database'
        from
./script/../config/../vendor/rails/railties/lib/initializer.rb:84:in
`process'
        from
./script/../config/../vendor/rails/railties/lib/initializer.rb:42:in
`send'
        from
./script/../config/../vendor/rails/railties/lib/initializer.rb:42:in
`run'
        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:in
`require'
        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:in
`gem_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:in
`require'
        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
7a38d376941c70271435634ae45a3288?d=identicon&s=25 Jimmie Elvenmark (Guest)
on 2007-02-14 13:54
(Received via mailing list)
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 <fsodre@gmail.com> 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
This topic is locked and can not be replied to.