I got this error also when setting up the API on the dev server, I had to make the patch below. I've copied dev@ into the mail to try and get the attention of somebody who knows why this is required.
Index: config/initializers/libxml.rb =================================================================== --- config/initializers/libxml.rb (revision 12314) +++ config/initializers/libxml.rb (working copy) @@ -2,6 +2,6 @@ gem 'libxml-ruby', '>= 0.8.3' require 'libxml' -LibXML::XML::Parser.register_error_handler do |message| +LibXML::XML::Error.set_handler do |message| raise message end 2008/12/14 Bernardo Elayda <[email protected]>: > Hi, > > I'm running into an error problem when I'm trying to setup OSM. > > (1) > I've reached the point where I'm supposed to run: > > rake db:migrate > > which I'm running from inside the top-level directory of my OSM rails > installation. When I run the command, I get the following: > > ~/Projects/rails_port$ rake db:migrate > (in /home/captain/Projects/rails_port) > rake aborted! > wrong number of arguments (0 for 1) > > (2) > If I turn on --trace, I get the following additional info: > > ~/Projects/rails_port$ rake db:migrate --trace > (in /home/captain/Projects/rails_port) > ** Invoke db:migrate (first_time) > ** Invoke environment (first_time) > ** Execute environment > rake aborted! > wrong number of arguments (0 for 1) > /home/captain/Projects/rails_port/config/initializers/libxml.rb:5:in > `register_error_handler' > > (3) > If I run the instructions in libxml.rb in irb, things fail at: > LibXML::XML::Parser.register_error_handler > > > What am I doing wrong? Have I skipped a step? > > My environment is as follows: > > Ubuntu 8.04 > Ruby v1.8.7 > RoR 2.0.2 > mysql 5.0.51a > OSM Rails port was checked out by: svn co > http://svn.openstreetmap.org/sites/rails_port > > tia, > Bernie > > _______________________________________________ > newbies mailing list > [email protected] > http://lists.openstreetmap.org/listinfo/newbies > > -- Regards, Thomas Wood (Edgemaster) _______________________________________________ dev mailing list [email protected] http://lists.openstreetmap.org/listinfo/dev

