Summary: | sci-geosciences/mapserver-7.0.5 : CMake Error at mapscript/.../CMakeLists.txt:44 (install): | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | Sci-geo Project <sci-geosciences> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | tb |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
emerge-info.txt
CMakeError.log CMakeOutput.log emerge-history.txt environment etc.portage.tbz2 sci-geosciences:mapserver-7.0.5:20170523-223041.log temp.tbz2 |
Description
Toralf Förster
2017-05-24 18:19:07 UTC
Created attachment 474030 [details]
emerge-info.txt
Created attachment 474032 [details]
CMakeError.log
Created attachment 474034 [details]
CMakeOutput.log
Created attachment 474036 [details]
emerge-history.txt
Created attachment 474038 [details]
environment
Created attachment 474040 [details]
etc.portage.tbz2
Created attachment 474042 [details]
sci-geosciences:mapserver-7.0.5:20170523-223041.log
Created attachment 474044 [details]
temp.tbz2
Can you please try to disable python and check if this helps? It looks like a pyhton2/3 mismatch here. What is your default python version? (In reply to Thomas Beutin from comment #9) > [...]What is your default python version? Sorry for that question - i found the answer in your bug description. Can you please check if it helps to set python2 as the preferred version? I checked this on my machines - the real error is here: > -- Found PythonInterp: /usr/bin/python (found version "3.4.6") so it uses python3, but... > File "<string>", line 1 > from distutils.sysconfig import get_python_inc; print get_python_inc(True) > ^ ... this is invalid in python3 - it's python2 only syntax, which ... > SyntaxError: invalid syntax ... is stated here. > File "<string>", line 1 > import sys; print sys.prefix > ^ > SyntaxError: invalid syntax The same here... > -- Found PythonLibs: /usr/lib/libpython3.4m.so (found version "3.4.6") > CMake Deprecation Warning at /usr/share/cmake/Modules/UseSWIG.cmake:226 (message): > SWIG_ADD_MODULE is deprecated. Use SWIG_ADD_LIBRARY instead. > Call Stack (most recent call first): > mapscript/python/CMakeLists.txt:32 (SWIG_ADD_MODULE) > > > File "<string>", line 1 > from distutils.sysconfig import get_python_lib; print get_python_lib(True) > ^ > SyntaxError: invalid syntax ... and here. I hope this helps to fix this. *** This bug has been marked as a duplicate of bug 582332 *** |