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

Fenoy Gerald gerald.fenoy at geolabs.fr
Tue Feb 3 15:13:05 PST 2015


Hi Karsten,
thanks for your feedbacks.

I fixed the typo and order issue you mentioned.

About your specific issue, you should make sure that the apache user, which should be www-data if you are using Ubuntu, is allowed to access the 3 directories mapmint-services, mapmint-ui and public_map (run chown o+rx on the directories from root). To test this, you may simply run the following:

 cd $SRC/mapmint
 sudo -u www-data ls mapmint-services mapmint-ui publica_map

If this works then you should try to see in the apache error log file to see if more informations are available for understanding what is happening.

I hope this helps you to solve the issue,
Best regards,

> Le 3 févr. 2015 à 18:55, karsten <karsten at terragis.net> a écrit :
> 
> Hi Gerald et all,
> 
> It seems I went through the updated installation procedure but my MapMint
> web page but it still has a hick-up when I try to access it. For
> http://terra3.terragis.net/ui/public/ it says e.g. "The requested URL
> /ui/public/ was not found on this server" when I try to navigate to the /ui
> or the /ui/Dashboard directory. /ui is forwarded to
> http://terra3.terragis.net/ui/public/ but it seems that some setting for
> apache or the symbolic links are not yet correct.
> 
> I got all these 3 symb links set:
> sudo ln -s $SRC/mapmint/mapmint-ui/ /var/www/html/ui
> sudo ln -s $SRC/mapmint/public_map/ /var/www/html/pm
> sudo ln -s $SRC/mapmint/mapmint-services/ /usr/lib/cgi-bin/mm
> And also the apache.conf web bloc as noted in the install notees 
> Also did : Edit the file /etc/apache2/conf-available/serve-cgi-bin.conf,
> then replace +SymLinksIfOwnerMatch by +FollowSymLinks.
> 
> Is there any symb link missing or what will I need to look for to make it
> work ?
> 
> Below are some additional notes on the installation notes:
> 
> In the installation instructions
> https://github.com/mapmint/mapmint/blob/master/INSTALL.md it seem to me that
> step (2)  needs to de done before (1) , sequence might need to be updated to
> avoid user confusion
> 
> (2)
> sudo ln -s $SRC/mapmint/mapmint-services/ /usr/lib/cgi-bin/mm
> (1)
> sudo cp cgi-env/* /usr/lib/cgi-bin/mm/
> 
> There seems to be a typo for the ghostscript 
> sudo apt-get install .... ghistscript 
> Should be "ghostscript" 
> 
> Cheers
> Karsten
> 
> -----Original Message-----
> From: Fenoy Gerald [mailto:gerald.fenoy at geolabs.fr] 
> Sent: Wednesday, January 21, 2015 6:05
> To: karsten at terragis.net
> Cc: ZOO-discuss
> Subject: Re: during compilation - fatal error: cgic.h: No such file or
> directory
> 
> Hello Karsten,
> sorry for late reply.
> 
> My responses inline bellow.
> 
>> Le 16 janv. 2015 à 18:33, karsten <karsten at terragis.net> a écrit :
>> 
>> Oh yes I must have missed the cd command to go there , now it worked.
>> 
>> I still cant seem o start the system but while troubleshooting seem to 
>> be down to the "Final tweaks" section to get this wrapped up , there a 
>> couple of things did not work out form the description on my system
>> 
>> To create symbolic links the first two work:
>> sudo ln -s /home/src/mapmint/mapmint-ui/ /var/www/html/ui sudo ln -s 
>> /home/src/mapmint/public_map/ /var/www/html/pm
>> 
>> The third one does not
>> sudo ln -s /home/src/mapmint/mapmint-services/ /usr/lib/cgi-bin/mm 
>> Gives me
>> ln: failed to create symbolic link '/usr/lib/cgi-bin/mm/mapmint-services':
>> File exists
>> And sure enough the dir /usr/lib/cgi-bin/mm physically exists as we 
>> did some lines above a copy to cerate it
>> ( Install QREncode service    .....    sudo cp cgi-env/*
>> /usr/lib/cgi-bin/mm/ )
>> 
>> Is that ok to get the system up and running ? What should I do about 
>> it - just ignore ?
>> 
> 
> When you run the copy to deploy the QREncode service, you should have the mm
> directory available already.
> What is important here is that /usr/lib/cgi-bin/mm should point (be a link
> to) $SRC/mapmint/mapmint-services.
> In other case it will fail.
> 
>> 
>> The other things I noticed is that in the "Create required 
>> directories" section two commands fail
>> 
>> 1. works:  sudo chown -R www-data:www-data /var/data
>> 
>> 2. fails: sudo chown www-data:www-data /usr/lib/cgi-bin/main.cfg
>> chown: cannot access '/usr/lib/cgi-bin/main.cfg': No such file or 
>> directory
> 
> You are right, the correct location should be /usr/lib/cgi-bin/mm/main.cfg.
> 
>> 
>> 3. also works:  sudo chown www-data:www-data 
>> /usr/lib/cgi-bin/mapcache.xml
>> 
>> 4. fails: sudo chown -R www-data:www-data /var/www/html/pm/styles
>> chown: cannot access '/var/www/html/pm/styles': No such file or 
>> directory
> 
> This was created few lines before with the command:
> 
> sudo mkdir -p /var/www/html/pm/styles
> 
> So there is no reason that the chown command failed.
> 
>> 
>> What do I need to do to fix this - items 2 and 3 above  ?
>> (as I can't  access my MapMint installation so far)
>> 
>> 
>> Also wondering when I looked at $SRC/mapmint/mapmint-services/main.cfg
>> What settings I need to change. For example do I need to install 
>> libreoffice , as it lists :
>> [oo]
>> path=/opt/libreoffice-4.1/program/python
>> ghostscript=/usr/local/bin/gs
>> 
> 
> For the main.cfg file, you can now read [1] for more informations about what
> values you should change to make it working.
> 
> Indeed you need to install libreoffice, xvfb and ghostscript to have access
> to the print capabilities. This was added the INSTALL.md file too [2].
> 
>> Thanks
>> Karsten
>> 
>> 
> 
> Thanks to you for trying it out !
> 
> Best regards,
> 
> [1] https://github.com/mapmint/mapmint/blob/master/Main_cfg.md
> [2] https://github.com/mapmint/mapmint/blob/master/INSTALL.md
> 
> 
> Gérald Fenoy
> http://wiki.osgeo.org/wiki/User:Djay
> 
> 



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



More information about the Zoo-discuss mailing list