Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install the Mapnik toolkit in Ubuntu to develop Gis applications

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

How to install the Mapnik toolkit in Ubuntu in order to develop Gis applications, this article introduces the corresponding analysis and solutions in detail, hoping to help more partners who want to solve this problem to find a more simple and easy way.

Ubuntu system operation, because of the need to develop Gis applications, to install the Mapnik toolkit in the Ubuntu system, so how to install the Mapnik toolkit?

Uninstall the old:

Sudo apt-get purge libmapnik* mapnik-utils python-mapnik

Set up:

Sudo apt-get install /

Libboost-filesystem-dev /

Libboost-program-options-dev /

Libboost-python-dev libboost-regex-dev /

Libboost-system-dev libboost-thread-dev /

# get a build environment going. . .

Sudo apt-get install /

Libicu-dev /

Python-dev libxml2 libxml2-dev /

Libfreetype6 libfreetype6-dev /

Libjpeg-dev /

Libpng-dev /

Libproj-dev /

Libtiff-dev /

Libcairo2 libcairo2-dev python-cairo python-cairo-dev /

Libcairomm-1.0- 1 libcairomm-1.0-dev /

Ttf-unifont ttf-dejavu ttf-dejavu-core ttf-dejavu-extra /

Git build-essential python-nose /

Libgdal1-dev python-gdal /

Postgresql-9.3 postgresql-server-dev-9.3 postgresql-contrib-9.3 postgresql-9.3-postgis-2.1 /

Libsqlite3-dev

Note above: since ubuntu 14.04 is used, the postgresql-related version becomes 9.3

It's going to be.

Configuration, compilation links, installation:

# For the development branch:

Git clone https://github.com/mapnik/mapnik mapnik-2.3.x-b 2.3.x

Cd mapnik-2.3.x

. / configure & & make & & sudo make install

Among them, the process of make takes a long time, about 40 minutes.

An error of ternal compiler error: killed (program cc1plus) was encountered before.

After checking on the Internet, some people said that there was not enough memory. At that time, my memory configuration was 512m, which was changed to 2g.

Run make again, resulting in an error:

Vitrual memory exhausted cannot allocate memory

See this error, more or less feel that there is not enough memory can be added. But instead of adding it, I ran make again, and make ran it all the way. There is no problem with the rest of the make install.

Type in the command to see if the installation is successful:

Mapnik-config-v

Output my version number: 2.3.0-pre

This is the answer to the question about how to install the Mapnik toolkit in Ubuntu in order to develop Gis applications. I hope the above content can be of some help to you. If you still have a lot of doubts to solve, you can follow the industry information channel for more related knowledge.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report