Thanks for the help everyone. Yes, it was a Ruby on Rails incompatibility issue. Once I used 2.2.2, I started making progress.
On a non-internet enabled machine, users will run into another problem with the rake db:migrate command. There will be an error message saying something like "getaddrinfo temporary failure in name resolution". This is caused by the 031_create_countries.rb script. The problem is that the script is trying to access an external site to download a current list of country information. The easiest solution seems to be this: - On an internet-enabled computer, navigate to: http://ws.geonames.org/countryInfo - Save the webpage (it is an XML file) as a file called countryInfo - On the Linux machine where OpenStreetMap will be installed, make sure Apache is installed and running (service httpd restart). Put the countryInfo file that you downloaded in Apache's web directory (ex: /var/www/html). - In the file rails_port/db/migrate/031_create_countries.rb, edit the line that says: Net::HTTP.start('ws.geonames.org') do |http| to Net::HTTP.start('localhost') do |http| When you run the "rake db:migrate" command, it should complete successfully. "rake test" will generally be successful, but you'll still get several dozen failures due to what appears to be attempts to access the OpenStreetMap server. For the time being, I am ignoring those errors. -----Original Message----- From: Shaun McDonald [mailto:[email protected]] Sent: Monday, June 01, 2009 7:01 PM To: Lucier, Trent Cc: dev Openstreetmap Subject: Re: [OSM-dev] Problem with Linux Install on "rake db:migrate" command On 1 Jun 2009, at 23:20, Andy Allan wrote: > On Mon, Jun 1, 2009 at 10:23 PM, Lucier, Trent > <[email protected]> wrote: >> Hello, > >> I have pasted my error below. I am not sure what is causing the >> problem. > >> /usr/local/lib/ruby/gems/1.9.1/gems/rails-2.3.2/lib/tasks/misc.rake: >> 4:in >> `block in <top (required)>' > > Unless anyone else knows better than me, I think you've got the wrong > version of rails installed. The documentation requires 2.2.2, and you > have 2.3.2 - and a lot of the advanced stuff in OSM is very > version-specific (plugins etc). > > But like I say, someone else might know better than me. > You seem to be using the root user, which should be avoided. You can have multiple versions of rails installed at the same time, so you must have edited one of the source files: config/environment.rb to get it using rails 2.3.2, which we currently don't support. Shaun _______________________________________________ dev mailing list [email protected] http://lists.openstreetmap.org/listinfo/dev

