[mapserver-users] Error compiling 7.4.4 and 7.4.0

Stephane Poissant spoissantca at gmail.com
Wed Nov 25 06:39:18 PST 2020


Thanks Jeff,

I consider your suggestion.
Tried Proj-7.2.0. it involves compiling too many packages. I want to avoid compiling everything!

```
checking for mutexes... checking for pthread_create in -lpthread... yes
checking for pthread_mutexattr_settype in -lpthread... yes
checking whether PTHREAD_MUTEX_RECURSIVE is declared... yes
enabled, pthread
checking for SQLITE3... configure: error: Package requirements (sqlite3 >= 3.11) were not met:

Requested 'sqlite3 >= 3.11' but version of SQLite is 3.7.17
```


Stéphane Poissant  
Portable: 514-793-3506
spoissantca at gmail.com <mailto:spoissantca at gmail.com>


> On Nov 25, 2020, at 9:02 AM, Jeff McKenna <jmckenna at gatewaygeomatics.com> wrote:
> 
> Hi Stéphane,
> 
> As you are using newer GDAL/PROJ, can you try with MapServer 7.6.1 ?
> 
> 
> Also, as background, here are the recommended versions currently:
> 
> PROJ 7.2.0 + GDAL 3.2.0 + MapServer 7.6.1  (GDAL 3 series)
> PROJ 5.2.0 + GDAL 2.4.4 + MapServer 7.6.1  (GDAL 2 series)
> 
> 
> -jeff
> 
> 
> 
> 
> -- 
> Jeff McKenna
> MapServer Consulting and Training Services
> co-founder of FOSS4G
> http://gatewaygeo.com/ <http://gatewaygeo.com/>
> 
> 
> 
> 
> On 2020-11-25 9:32 a.m., Stéphane Poissant wrote:
>> Hello everyone,
>> I am upgrading an old installation that runs 7.0,7
>> It used to run on amazon linux 1. (CentOS 6)
>> I am compiling the 7.4.x version for Amazon linux 2 (CentOS 7).
>> I configure the cmake flags and I am able to "make" successfully.
>> I get the bottom described error while doing "make install". Looks like 90% goes through but it fails when it comes to Java or Perl or both (if flagged ON).
>> Environment:
>>  * Amazon linux 2 virtual server (CentOS 7)
>>  * Proj 6.1.1 compiled
>>  * Gdal 3.2.0 compiled
>> (perl-devel and other perl-*devel installed too..)
>> Makefile option set as follow:
>> ...//...
>> CMAKEFLAGS=-DCMAKE_C_FLAGS="--coverage ${CMAKE_C_FLAGS}" -DCMAKE_CXX_FLAGS="--coverage ${CMAKE_CXX_FLAGS}"
>> -DCMAKE_SHARED_LINKER_FLAGS="-lgcov"
>> -DWITH_CLIENT_WMS=1
>> -DWITH_CLIENT_WFS=1
>> -DWITH_KML=1
>> -DWITH_SOS=1
>> -DWITH_CSHARP=1
>> -DWITH_PHP=0
>> -DWITH_PERL=1
>> -DWITH_PHPNG=1
>> -DWITH_PYTHON=1
>> -DWITH_JAVA=1
>> -DWITH_THREAD_SAFETY=1
>> -DWITH_FRIBIDI=1
>> -DWITH_FCGI=0
>> -DWITH_EXEMPI=0
>> -DWITH_RUBY=0
>> -DCMAKE_BUILD_TYPE=Release
>> -DWITH_RSVG=0
>> -DWITH_CURL=1
>> -DWITH_HARFBUZZ=1
>> -DWITH_POINT_Z_M=1
>> ${EXTRA_CMAKEFLAGS}
>> ...//...
>> Compiling mapserver 7.4.4...
>> (success) # cd /root/inst/mapserver-7.4.4
>> (success) # make
>> (success) # cd build/ 246558
>> (fail)# make install
>> |creating 'dist/mapscript-7.4.4-py2.7-linux-x86_64.egg' and adding 'build/bdist.linux-x86_64/egg' to it removing 'build/bdist.linux-x86_64/egg' (and everything under it) Processing mapscript-7.4.4-py2.7-linux-x86_64.egg removing '/usr/local/lib/python2.7/site-packages/mapscript-7.4.4-py2.7-linux-x86_64.egg' (and everything under it) creating /usr/local/lib/python2.7/site-packages/mapscript-7.4.4-py2.7-linux-x86_64.egg Extracting mapscript-7.4.4-py2.7-linux-x86_64.egg to /usr/local/lib/python2.7/site-packages mapscript 7.4.4 is already the active version in easy-install.pth Installed /usr/local/lib/python2.7/site-packages/mapscript-7.4.4-py2.7-linux-x86_64.egg Processing dependencies for mapscript==7.4.4 Finished processing dependencies for mapscript==7.4.4 -- Installing: /usr/lib64/php/modules/libphp_mapscriptng.so -- Set runtime path of "/usr/lib64/php/modules/libphp_mapscriptng.so" to "/usr/local/lib64:/usr/local/lib" CMake Error at mapscript/perl/cmake_install.cmake:44 (FILE): file INSTALL cannot find "/root/inst/mapserver-7.4.4/mapscript/perl/$<TARGET_FILE:perlmapscript>". Call Stack (most recent call first): cmake_install.cmake:471 (INCLUDE) |
>> Same thing happens with Java if I enable the compilation flags in Makefile.
>> Expected result is a successful make install
>> Any suggestions?
>> Stéphane Poissant <https://ca.linkedin.com/in/phanohanover <https://ca.linkedin.com/in/phanohanover>>
>> Portable: 514-793-3506
>> spoissantca at gmail.com <mailto:spoissantca at gmail.com> <mailto:spoissantca at gmail.com <mailto:spoissantca at gmail.com>>
>> <https://ca.linkedin.com/in/phanohanover <https://ca.linkedin.com/in/phanohanover>>
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org <mailto:mapserver-users at lists.osgeo.org>
>> https://lists.osgeo.org/mailman/listinfo/mapserver-users <https://lists.osgeo.org/mailman/listinfo/mapserver-users>
> 
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org <mailto:mapserver-users at lists.osgeo.org>
> https://lists.osgeo.org/mailman/listinfo/mapserver-users <https://lists.osgeo.org/mailman/listinfo/mapserver-users>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20201125/f38fc40a/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PastedGraphic-1.png
Type: image/png
Size: 9954 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20201125/f38fc40a/attachment-0001.png>


More information about the mapserver-users mailing list