[mapserver-users] MapServer 6.4 Released

thomas bonfort thomas.bonfort at gmail.com
Tue Sep 24 02:51:05 PDT 2013


Disclaimer: I might have no idea of what I'm talking about given I'm
no mapscript or perl user or expert.
I'm a bit weary of applying this one. We'll install to the directory
required by the current perl installation, which is independent of the
prefix path. I believe you can supply CUSTOM_PERL_SITEARCH_DIR on the
command line if you want to install somewhere else, correct?

--
thomas

On 17 September 2013 22:55, andy <andy at squeakycode.net> wrote:
> On 9/17/2013 3:15 PM, andy wrote:
>>
>> On 9/17/2013 9:09 AM, thomas bonfort wrote:
>>>
>>> The MapServer team is pleased to announce the release of MapServer
>>> 6.4, along with the joint release of MapCache 1.2.
>>>
>>> Details of the new features, migration instructions, and download
>>> links can be found on the dedicated announcement page at
>>> http://www.mapserver.org/development/announce/6-4.html .
>>>
>>> cheers,
>>> The MapServer PSC
>>
>>
>> I start with:
>>
>> cmake -DCMAKE_INSTALL_PREFIX=/tmp/map  -DWITH_PERL=1  ..
>>
>> it runs ok, and displays:
>>
>> -- Will install files to /tmp/map
>> -- Configuring done
>> -- Generating done
>>
>> then I run make, which compiles fine.  But "make install" has a problem
>> with mapscript and tries to copy it to /usr/local/lib64, not /tmp/map.
>>
>> [ 90%] Built target mapserver
>> [ 90%] Built target legend
>> [ 91%] Built target mapserv
>> [ 92%] Built target msencrypt
>> [ 92%] Built target scalebar
>> [ 93%] Built target shp2img
>> [ 94%] Built target shptree
>> [ 95%] Built target shptreetst
>> [ 96%] Built target shptreevis
>> [ 97%] Built target sortshp
>> [ 98%] Built target tile4ms
>> [100%] Built target perlmapscript
>> Install the project...
>> -- Install configuration: ""
>> -- Installing: /tmp/map/bin/sortshp
>> -- Set runtime path of "/tmp/map/bin/sortshp" to
>> "/tmp/map/lib:/usr/local/pg93/lib:/usr/local/lib"
>> -- Installing: /tmp/map/bin/shptree
>> -- Set runtime path of "/tmp/map/bin/shptree" to
>> "/tmp/map/lib:/usr/local/pg93/lib:/usr/local/lib"
>> -- Installing: /tmp/map/bin/shptreevis
>> -- Set runtime path of "/tmp/map/bin/shptreevis" to
>> "/tmp/map/lib:/usr/local/pg93/lib:/usr/local/lib"
>> -- Installing: /tmp/map/bin/msencrypt
>> -- Set runtime path of "/tmp/map/bin/msencrypt" to
>> "/tmp/map/lib:/usr/local/pg93/lib:/usr/local/lib"
>> -- Installing: /tmp/map/bin/legend
>> -- Set runtime path of "/tmp/map/bin/legend" to
>> "/tmp/map/lib:/usr/local/pg93/lib:/usr/local/lib"
>> -- Installing: /tmp/map/bin/scalebar
>> -- Set runtime path of "/tmp/map/bin/scalebar" to
>> "/tmp/map/lib:/usr/local/pg93/lib:/usr/local/lib"
>> -- Installing: /tmp/map/bin/tile4ms
>> -- Set runtime path of "/tmp/map/bin/tile4ms" to
>> "/tmp/map/lib:/usr/local/pg93/lib:/usr/local/lib"
>> -- Installing: /tmp/map/bin/shptreetst
>> -- Set runtime path of "/tmp/map/bin/shptreetst" to
>> "/tmp/map/lib:/usr/local/pg93/lib:/usr/local/lib"
>> -- Installing: /tmp/map/bin/shp2img
>> -- Set runtime path of "/tmp/map/bin/shp2img" to
>> "/tmp/map/lib:/usr/local/pg93/lib:/usr/local/lib"
>> -- Installing: /tmp/map/bin/mapserv
>> -- Set runtime path of "/tmp/map/bin/mapserv" to
>> "/tmp/map/lib:/usr/local/pg93/lib:/usr/local/lib"
>> -- Installing: /tmp/map/lib/libmapserver.so.6.4.0
>> -- Installing: /tmp/map/lib/libmapserver.so.1
>> -- Installing: /tmp/map/lib/libmapserver.so
>> -- Set runtime path of "/tmp/map/lib/libmapserver.so.6.4.0" to
>> "/tmp/map/lib:/usr/local/pg93/lib:/usr/local/lib"
>> -- Installing: /usr/local/lib64/perl5/auto/mapscript/mapscript.so
>> CMake Error at mapscript/perl/cmake_install.cmake:38 (FILE):
>>    file INSTALL cannot copy file
>>
>>
>> "/home/andy/gis/mapserver/mapserver-6.4.0/buid/mapscript/perl/mapscript.so"
>>    to "/usr/local/lib64/perl5/auto/mapscript/mapscript.so".
>> Call Stack (most recent call first):
>>    cmake_install.cmake:273 (INCLUDE)
>>
>> make: *** [install] Error 1
>>
>> Any hints how I might fix this?
>>
>> -Andy
>>
>>
>
> In mapscript/perl/CMakeLists.txt, how about stripping the leading '/' so
> that INSTALL() has a relative path instead of absolute:
>
> set(CUSTOM_PERL_SITE_ARCH_DIR ${PERL_SITEARCH} CACHE DIR "Custom
> installation directory for perl binary extension
> # strip leading slash so INSTALL() uses CMAKE_INSTALL_PREFIX
> string(SUBSTRING ${CUSTOM_PERL_SITE_ARCH_DIR} 1 -1
> CUSTOM_PERL_SITE_ARCH_DIR)
>
>
> Maybe?
>
> -Andy
>


More information about the mapserver-users mailing list