Suresh
Suresh

Reputation: 967

Building mapnik 3.0 in raspberry pi

I have the latest version of postgis (2.1.8) in my raspberry pi. I could not use the default mapnik version (2.0) available in raspberry pi packages because the newer postgis does not have the functions that the old mapnik looks for.

So, I tried to compile the latest version of mapnik (3.0) . The configure was successful finding all required dependencies. But when I do make, it fails for insufficient memory. Then I increased the swap to 2GB. It still fails for insufficient memory.

I am wondering if there is a way to compile mapnik at smaller steps that do not require so much memory at once.

Upvotes: 0

Views: 676

Answers (1)

Mike T
Mike T

Reputation: 43702

Legacy PostGIS functions without a ST_ prefix can be loaded on top of any PostGIS database by loading the legacy.sql enabler script that shipped with PostGIS, in the contrib share folder. Run it like this:

psql -d [yourdatabase] -f legacy.sql

Find more on legacy.sql in Chapter 2 of the PostGIS manual.

Upvotes: 2

Related Questions