quarta-feira, 1 de junho de 2016

Artimanhas para Instalar MapServer no SuSe Linux Enterprise Server (SLES)

Consegui instalar finalmente o MapServer com MapScript no SuSe Linux Enterprise Server 11 SP 3

Apache 2.2
PHP 5.5.16
MapServer 6.2.2

./configure --with-php=yes --with-postgis=yes
make
make install


Em caso de recompilação execute antes do make, o comando:
make clean

Obtive o seguinte erro ao tentar executar o seguinte comando: php /dados/MDSMapas/MapControlAjax0.php  
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php5/extensions/php_mapscript-6.2.2.so' - libmapserver-6.2.2.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Fatal error:  Call to undefined function ms_newMapObj() in /dados/wwwroot/MDSMapas/MapControlAjax0.php on line 93

Ao efetuar a seguinte busca no google: https://www.google.com.br/search?q=libmapserver++cannot+open+shared+object+file

Encontrei o link: http://osgeo-org.1560.x6.nabble.com/ERROR-WORKING-WITH-MAPSERVER-td5037405.html

Executei o comando:
ldconfig

ldconfig creates the necessary links and cache to the most recent shared libraries found in the directories specified on the command line

E tudo passou a funcionar.