[OSM-dev] Suggestion about how to setup a local osm development platform

Chien Nguyen Khac threesearch at yahoo.com
Mon Jul 30 09:10:59 BST 2007


Hi all,

I have read osm's wiki on how to setup development platform for osm. I have some questions and I also
have some suggestions to make the setup local osm development platform more easy for new users/developers:

Steps to setup a local osm development platform
1. install linux (debian or ubuntu linux?)
2. install MySQL (which version?) user need to change Mysql setting according osm's mysql wiki
3. install PHP (which version?)
4. install java (which version?)
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)
9. start to investigate and write code to query and/or use osm data from local mysql

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

So new users/developers just need to download the VMWare machine image and they can use VMWare player to run a local osm developement server immediately.
They can start to develop software for osm without spending so much time to setup a sever (windows user also can use VMWare player to work with the image)



If you think the above tasks are to much then you can give users osm data in another way:

1. download XAMPP(Apache, mySQL, PHP and Perl) portable from here: http://portableapps.com/apps/development/xampp
2. unzip it on a windows PC. no need to install it, just run it you will have a web apache, mwsql, php, and pearl running in your windows PC
3. create osm database schema in mysql of XAMPP
4. import the latest osm data from osm production server to XAMPP
5. stop XAMPP, zip its folder
6. public XAMPP's zip file (which contains osm data) at the same place as planet.osm file

So new users/developers just need to download the XAMPP's zip file. Without installation and importing, they just need to unzip the file and run it on their windows PC and they already have osm data in a local mysql to work with it.

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.


Regards,


      ____________________________________________________________________________________
Fussy? Opinionated? Impossible to please? Perfect.  Join Yahoo!'s user panel and lay it on us. http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 





More information about the dev mailing list