mapnik / mapnik

Mapnik is an open source toolkit for developing mapping applications
http://mapnik.org
GNU Lesser General Public License v2.1
3.68k stars 826 forks source link

error: no member named 'insert' in 'boost::spirit::x3::unused_type' #3756

Open louistone opened 7 years ago

louistone commented 7 years ago

When I try to install Mapnik, below error happens:

_/usr/local/include/boost/spirit/home/x3/core/detail/parse_into_container.hpp:259:22: error: no member named 'insert' in 'boost::spirit::x3::unused_type' attr.insert(attr.end(), rest.begin(), rest.end());


16 errors generated.
scons: *** [src/json/positions_grammar_x3.o] Error 1
scons: building terminated because of errors.
make: *** [src/json/libmapnik-json.a] Error 2_

**Below is my default version of gcc:**

_gcc -v
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 8.1.0 (clang-802.0.42)
Target: x86_64-apple-darwin16.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin_

**I have updated gcc to gcc7, it's in the below directory. I guess I may need to verify the file named Sconstruct :**

_/usr/local/gcc-7.1/bin_

**How can fix this issue? Thanks a lot!**
artemp commented 7 years ago

@louistone - you have 2 options at the moment: