From OpenStreetMap Wiki
Jump to: navigation, search


To contact me please use my OSM page.


  • Berlin (mostly from the center to the west) and wherever I might be...
    • adding missing streets, POI's, relations, buildings etc...
  • Debugging
  • Running t@h client

t@h on MacOS 10.5.4

This is a complete rewrite based on the outdated section running t@h on MacOS in the wiki.
As soon as it is finished it will be moved the the appropriate wiki section.
Any comments are welcome.

Be sure to have the Apple developer tools installed and updated (version 3.1 at the time of writing). You will also need MacPorts to download and build most of the software needed from source. Otherwise you will have to compile them by hand or find pre compiled packages. Finally cpan will be used to install all missing perl libraries.

Check your PATH environment for /opt/local/bin and /opt/local/sbin. If both directories are not in the PATH add them in your .profile in your home or if it not exists create ist with

echo PATH=/opt/local/bin:/opt/local/sbin:$PATH >.profile

to set the PATH for MacPorts.

After installing MacPorts and setting the PATH open a terminal and type in:

sudo port install inkscape 

This will keep your computer busy for at least 2 hours and ends in an error anyway. Just start it again and again ... until it is finished without error.

After that install the remaining ports with:

sudo port install xmlstarlet pngcrush p5-gd p5-appconfig p5-libwww-perl p5-libxml-perl p5-xml-writer p5-xml-xpath p5-set-object

After installing the ports you need to install a missing perl library using cpan. Select a download mirror near to you and leave all other settings at their default values (just hit enter at all questions...). Compared to the ports installation this is pretty fast.

sudo cpan
install Bundle::CPAN
reload cpan
install Math::Vec

The library will most likely fail to build, but this is no problem. You can do this manually. If you didn't changed the default settings the tarball is downloaded to:


Unzip and untar it and change in the now created source directory and run the build scripts.

sudo perl Build.PL
./Build test
sudo ./Build install

All the other needed libraries are already installed with the ports.

Now you need the DejaVu fonts. The installation is straight forward. Download the font from DejaVu unzip it and install it with the Font Book Application.

Finally you need pngnq. I didn't manage to compile pngnq from source properly. The original Makefile results in an build error and after modifying the PATH for PNGINC and PNGLIB the build process is OK but the result is a not properly working binary. Invoked without options it seems to work but 'pngnq -e .tmp.png -s1 -n256 <put_your_tile_name_here>.png', which is necessary for t@h, results in a Bus error. Any help is welcome here.
Running the binary from sourceforge works with a simple workaround. It looks for libpng12.0.dylib in /usr/local/lib but it is in /opt/local/lib. Just create the directory and symlink with

sudo mkdir /usr/local/lib
sudo ln -s /opt/local/lib/libpng12.0.dylib /usr/local/lib/libpng12.0.dylib
sudo cp pngnq /opt/local/bin

and it should work.