Skip to content

Commit

Permalink
Fix mapserver python3 directory and library path
Browse files Browse the repository at this point in the history
  • Loading branch information
fenilgmehta committed Aug 16, 2019
1 parent b67aa93 commit a9601d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osgeolive/dependencies/tasks/mapserver.yml
Expand Up @@ -4,5 +4,5 @@

- name: Build and Install MapServer-7.2.1 for MapMint
when: srcdircreated is success
shell: cd {{srcdir}} && tar -xf mapserver-7.2.1.tar.gz && cd mapserver-7.2.1 && rm -rf build && mkdir build && cd build && cmake .. -DWITH_PYTHON=1 -DWITH_CLIENT_WMS=1 -DWITH_CLIENT_WFS=1 -DCMAKE_PREFIX_PATH=/usr/ -DWITH_KML=1 -DCMAKE_INSTALL_PREFIX=/usr && make && sed -i "s/python2.7/python3.6/g" 'mapscript/python/cmake_install.cmake' && make install
shell: cd {{srcdir}} && tar -xf mapserver-7.2.1.tar.gz && cd mapserver-7.2.1 && rm -rf build && mkdir build && cd build && cmake .. -DWITH_PYTHON=1 -DWITH_CLIENT_WMS=1 -DWITH_CLIENT_WFS=1 -DCMAKE_PREFIX_PATH=/usr/ -DWITH_KML=1 -DCMAKE_INSTALL_PREFIX=/usr && ( grep -ril "libpython2.7.so" | xargs -I{} sed --in-place "s/libpython2.7.so/libpython3.6m.so/g" {} ; grep -ril "python2.7" | xargs -I{} sed --in-place "s/python2.7/python3.6/g" {} ) && make && sed -i "s/python2.7/python3.6/g" 'mapscript/python/cmake_install.cmake' && make install
register: mapserverinstalled

0 comments on commit a9601d3

Please sign in to comment.