[OSM-dev] Suggestion about how to setup a local osm development platform
Tom Hughes
tom at compton.nu
Mon Jul 30 09:29:29 BST 2007
In message <84751.28455.qm at web35104.mail.mud.yahoo.com>
Chien Nguyen Khac <threesearch at yahoo.com> wrote:
> Steps to setup a local osm development platform
> 1. install linux (debian or ubuntu linux?)
I don't think linux is essential.
> 2. install MySQL (which version?) user need to change Mysql setting
> according osm's mysql wiki
Pretty much any vaguely recent version of MySQL should be fine, and
there is no need to change any settings as far as I know.
> 3. install PHP (which version?)
> 4. install java (which version?)
Why would you need PHP or Java? Neither is used by the OSM site...
> 5. install Ruby, python, perl...
> 6. download planet.osm (2 hours download, 1 hour unzip)
> 7. find the script to create latest osm schema and run it
> 8. import planet.osm into local mysql (I have not try so I dont know
> how long it take to import 5 GB of planet.osm into database)
For most development work on the site you don't really need to
import all the data.
> 9. start to investigate and write code to query and/or use osm data
> from local mysql
Ah, so you're talking about using the data rather than working on
the site itself. In which case most of your steps are irrelevant as
there is no need to load all the data into a clone of the live
database just to work with it.
In fact it probably generally makes more sense to parse the planet
dump yourself and load it into some sort of database that is designed
for whatever task it is you want to do with it.
> I feel that to setup a local osm development server it took so much
> time. So I suggest to make thing easy for new users/developers:
>
> 1. osm expert create a VMWare machine
> 2. install linux (same version that osm production server is using)
> 3. install mysql (same version that osm production server is using),
> mysql's settings are also same with mysql running in osm
> production server
> 4. install PHP (same version that osm production server is using)
> 5. install java (same version that osm production server is using)
> 6. install Ruby, python, perl or whatever language you are using in
> osm production server
> 7. create osm database schema in mysql of VMWare machine
> 8. import the latest osm data from osm production server
> 9. shutdown the VMWare machine
> 10. zip the VMWare machine's data files
> 11. publish the VMWare machine image at the same place as planet.osm
> file
You know there is already an live CD image for OSM that you can
boot in VMWare I take it? You can find it at:
http://artem.dev.openstreetmap.org/files/osm-linux.iso
> Regardless which way osm choose (VMWare or XAMPP), it will save a lot
> of time for new users/developers and it will speed up the code
> contribution from users/developers to osm.
I think the real question here is, are you talking about developing
OSM itself, or just developing applications that happen to use our
data...
Tom
--
Tom Hughes (tom at compton.nu)
http://www.compton.nu/
More information about the dev
mailing list