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-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:>
> 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
>
>
>
> >
>
--
_______________
Jimmie Elvenmark
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---