[OSM-dev] setting up the api was: [Tilesathome] t at h API still turn off...

Shaun McDonald shaun at shaunmcdonald.me.uk
Mon Sep 1 11:03:06 BST 2008


Florian Lohoff wrote:
> On Sat, Aug 30, 2008 at 10:19:38PM +0200, Florian Lohoff wrote:
>   
>> Subject: Re: [OSM-dev] [Tilesathome] t at h API still turn off...
>>
>> Last time it took me 3900 Minutes ~ 2 3/4 days on a 4 Disk Raid0 4Gb Ram
>> Xeon machine ...
>>
>> Now - 6 months and a couple more GBytes later its running again - 2 3/4
>> days are over already - my guess is that tomorrow morning it'll be done.
>>     
>
> Okay - import done and osmosis is keeping it up to date with the minute
> diffs - currently the offset is roughly 5 minutes it seems.
>
> Now i had a look at the API stuff and i need desperatly help here. I
> tried my way through the rails code. Neither i had to deal with ruby not
> rails in the past - i was trying to satisfy dependencies and failed
> there already. Although i installed the composite_keys starting the
> server fails:
>
> flo at tiles-one:~/svn.openstreetmap.org/sites/rails_port$     sudo gem
> install composite_primary_keys
> Successfully installed activesupport-2.1.0
> Successfully installed activerecord-2.1.0
> Successfully installed composite_primary_keys-1.0.8
> 3 gems installed
> [...]
>
> flo at tiles-one:~/svn.openstreetmap.org/sites/rails_port$ COLUMNS=250 script/server
> => Booting WEBrick...
> /usr/local/lib/site_ruby/1.8/rubygems.rb:578:in `report_activate_error': RubyGem version error: composite_primary_keys(1.0.)
>   

You haven't installed the right version of composite_primary_keys, which 
are essential for what you are doing.
sudo gem install composite_primary_keys v=1.0 should work.

When we move to Rails 2.1, it will be easier to install the 
dependencies, because we can specify the dependencies in the rails code, 
so that others just need to run: sudo gems:install to get the gems that 
are required to be installed.

Shaun
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20080901/95bb00e6/attachment.html>


More information about the dev mailing list