[Zoo-discuss] during compilation - fatal error: cgic.h: No such file or directory

Fenoy Gerald gerald.fenoy at geolabs.fr
Fri Feb 6 04:40:10 PST 2015


Hi Karsten,
thanks again for your effort in trying to setup MapMint on your server.

We are glad to know that you finally succeed.

I answer your question inline below.

> Le 5 févr. 2015 à 20:26, karsten <karsten at terragis.net> a écrit :
> 
> Thanks so much Gerald,
> 
> Wohoo after creating the directory /var/data/public_maps everything seems to
> work , at least I can get to the dashboard and it looks good so far !
> 
> Here are some more notes about the installation process I found while going
> through it on a fresh Ubuntu 14.04 LTS server:
> 
> 1. In order to be able to do the install I also needed to do 
> apt-get install software-properties-common
> (After and initial 
> sudo apt-get update; )

I did not remember doing this but if this is required then we should add it to the documentation.

> 
> 2. When trying to cerate the screen called PaperMint doing 
> Xvfb :11&
> Gives an error that no JRE is found. Thus I installed an Oracle JRE (not
> sure if that is the best option) by adding a 'pseudo' repository as below
> add-apt-repository ppa:webupd8team/java
> apt-get install oracle-java6-installer
> This got the job done and got rid of the error at least. Probably that
> requirement should be noted in the install guide
> 

I guess the error messages came when you tried to run the LibreOffice server not the X server on virtual frame buffer.
I did not install any Java environment on the Ubuntu server I used to test the setup. I cannot see any jre or idk setup on this server.
What is 100% sure is that I did not use other repository than the default ones.

> 3. when working on databases required by MapMint
> Note that we need to switch to postgres Linux user
> su - postgres
> 
> When trying to cerate the database 
> createdb -E utf-8 mmdb
> I get this error (not sure why the template has SQL_ASCIIecoding set :
> 
> createdb: database creation failed: ERROR:  new encoding (UTF8) is
> incompatible with the encoding of the template database (SQL_ASCII)
> HINT:  Use the same encoding as in the template database, or use template0
> as template.
> A work around is to use am specify the tenplate0 as bellow:
> createdb -E utf-8 -T template0 mmdb
> 
> Then after running
> psql mmdb -f mmdb.sql
> Everything seems tom work fine but I get some error messages like the one
> below:
> psql:mmdb.sql:1011: ERROR:  relation "savedpath" does not exist
> In am not sure if that is a issue I need to fix and if so how can it be
> fixed ?

Rather than login as postgres, you may also use the PGUSER environment variable.
So let say that I didn’t want to give too much details on how to setup and configure PostgreSQL as this is over the scope of the installation guide.

The savedpath table is only used when you use the routing module and want your users save their computed shortest paths.
So this should not block you from using the MapMint instance you’ve setup.

> 
> 4. I am still not sure about the libreoffice installation that is required .
> Is there any recommended package to install s prerequisite? 
> I noted that in main.cfg the path has to be set see below
> 
> [oo]
> path=/opt/libreoffice-4.1/program/python
> 
> I have installed so far only 
> apt-get install libreoffice-core
> But that does not give me a similar directory
> Any hints what I need to do ?

For the LibreOffice setup on Ubuntu, I use the following values in the [oo] section:

[oo]
path=/usr/bin/python3
ghostscript=/usr/bin/gs
external=true

Depending on the GNU/Linux distribution you use or the LibreOffice version you use, the setup can be made differently.
Generaly, LibreOffice should come with its own python setup located in the same directory as the soffice binary and with the module PaperMint require which is named Universal Network Object(UNO). Nevertheless, on some distro such as Ubuntu they use another python setup than the original one, on this platform it is the Python 3 available on the system. Note that the PaperMint API was initially created using the Python 2.7.X version then we migrate this version to be used with Python 3.3 then 3.4 and change drastically the way the services for printing and the PaperMint module are used. Nevertheless, the fact is that nowadays, PaperMint is not working anymore with Python-2.7 so you should avoid (when you have choice like on Gentoo distribution) to setup the UNO python module for Python 2.7 but always prefer the 3 version. Nevertheless, on Ubuntu you should be safe using the values given previously.


I hope this helps and you can give us feedbacks about your usage and potential issue you may face.

best regards,


> 
> Cheers
> Karsten
> 



Gérald Fenoy
http://wiki.osgeo.org/wiki/User:Djay



More information about the Zoo-discuss mailing list