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