Mapgen.pl/Installation

From OpenStreetMap Wiki
Jump to: navigation, search
Help
Available languages
English Русский

Contents

New installation guide by g0ldfish

Debian Squeeze (minimal installation, only standard system tools)

Login as root

For CPAN configuration: Debian packages sudo, build-essential

$ apt-get install sudo build-essential

Use visudo to grant sudo rights, e.g. full sudo rights for group:

$ visudo

Add new line containing

%groupname ALL=(ALL) ALL

save with Ctrl-o, quit visudo with Ctrl-x

Login as user

Set up CPAN to use as non-root user: Start CPAN, let it configure automatically, then choose appropriate download servers. After that change make_install_make_command and mbuild_install_build_command manually so that the commands are executed with sudo.

$ cpan
cpan [x]> o conf make_install_make_command 'sudo /usr/bin/make'
cpan [x]> o conf mbuild_install_build_command 'sudo ./Build'
cpan [x]> o conf commit

(see also http://learnperl.scratchcomputing.com/tutorials/configuration/)

Quit CPAN

cpan [x]> q

Use local::lib to create module tree in home directory (version # may differ)

$ wget http://search.cpan.org/CPAN/authors/id/A/AP/APEIRON/local-lib-1.008004.tar.gz
$ tar xfz local-lib-1.008004.tar.gz
$ cd local-lib-1.008004/
$ perl Makefile.PL --bootstrap=~/.perl
$ make test && sudo make install
$ echo 'eval $(perl -I$HOME/.perl/lib/perl5 -Mlocal::lib=$HOME/.perl)' >> ~/.bashrc

(see also [1])

Login in again

For Mapgen: Debian packages: libcompress-bzip2-perl, libgd-graph3d-perl, proj

$ sudo apt-get install libcompress-bzip2-perl libgd-graph3d-perl proj
$ cpan
cpan [x]> install Math::Polygon 
cpan [x]> install Geo::Proj4 
cpan [x]> install DBI
cpan [x]> install LWP::Simple

Old information gathered by many users

Easiest way is to set up SVN access!

Following programs only needed if directory PDFs will be created

Files

Topo Style

Install on GNU/Linux

Download the files above and


Use the Perl cpan software to download additional modules needed:


Check that BZ2 and GD support is installed on your computer:


Now there are some optional software needed depending on what you want to do.


If you want to have the Street directory in PDF format, you'll also need the following:

Personal tools
Namespaces
Variants
Actions
site
Toolbox