Installing from source on macOS 10.13
Posted: 01 Jun 2019, 00:19
Hi,
I'm trying to install polymake on a mid-2012 MacBook Pro. Using homebrew/perlbrew. AFAIK, I've successfully gotten ninja and java installed, and dealt with dependencies. And I git cloned the directory https://github.com/polymake/polymake. However, I have an error at the configure stage. I wonder if anyone can help me resolve this? Seems to be a problem with boost, but I don't understand it. Error message below.
Thank you,
Andrew
I'm trying to install polymake on a mid-2012 MacBook Pro. Using homebrew/perlbrew. AFAIK, I've successfully gotten ninja and java installed, and dealt with dependencies. And I git cloned the directory https://github.com/polymake/polymake. However, I have an error at the configure stage. I wonder if anyone can help me resolve this? Seems to be a problem with boost, but I don't understand it. Error message below.
Thank you,
Andrew
APSMBP2:polymake andrew$ ./configure --without-fink LDFLAGS=' -stdlib=libstdc++' CXXFLAGS=-I/usr/include/c++/4.2.1
checking C++ compiler ... ok (g++ is Apple CLANG (roughly 6.0) from Xcode 10.0.0)
checking C++ library ... ok (GNU libstdc++ 20070719, C++ 201402)
checking for package manager ... no package manager specified
determining architecture ... ok (darwin.x86_64)
determining compiler flags ... ok
CFLAGS=
CXXFLAGS=-I/usr/include/c++/4.2.1 -std=c++14 -Wno-logical-op-parentheses -Wno-shift-op-parentheses -Wno-mismatched-tags -Wno-unused-local-typedef -Wno-error=unneeded-internal-declaration -Wshadow
LDFLAGS= -stdlib=libstdc++
checking gmp installation ... ok
checking mpfr installation ... ok
checking boost installation ... Could not compile a test program checking for boost library.
The most probable reasons are that the library is installed at a non-standard location,
or missing at all.
The complete error log follows:
clang: warning: libstdc++ is deprecated; move to libc++ [-Wdeprecated]
In file included from /var/folders/ln/y7rp83ds5j7gf_wsdtxpms000000gn/T//polymake_12497_configure.cc:1:
In file included from /usr/local/include/boost/shared_ptr.hpp:17:
/usr/local/include/boost/smart_ptr/shared_ptr.hpp:370:174: error: no member named 'move' in namespace 'std'
BOOST_CONSTEXPR shared_ptr( boost::detail::sp_internal_constructor_tag, element_type * px_, boost::detail::shared_count && pn_ ) BOOST_SP_NOEXCEPT : px( px_ ), pn( std::move( pn_ ) )
~~~~~^
/usr/local/include/boost/smart_ptr/shared_ptr.hpp:927:32: error: no member named 'move' in namespace 'std'
return shared_ptr<T>( std::move(r), p );
~~~~~^
/usr/local/include/boost/smart_ptr/shared_ptr.hpp:937:32: error: no member named 'move' in namespace 'std'
return shared_ptr<T>( std::move(r), p );
~~~~~^
/usr/local/include/boost/smart_ptr/shared_ptr.hpp:947:35: error: no member named 'move' in namespace 'std'
return p? shared_ptr<T>( std::move(r), p ): shared_ptr<T>();
~~~~~^
/usr/local/include/boost/smart_ptr/shared_ptr.hpp:957:32: error: no member named 'move' in namespace 'std'
return shared_ptr<T>( std::move(r), p );
~~~~~^
In file included from /var/folders/ln/y7rp83ds5j7gf_wsdtxpms000000gn/T//polymake_12497_configure.cc:1:
In file included from /usr/local/include/boost/shared_ptr.hpp:17:
In file included from /usr/local/include/boost/smart_ptr/shared_ptr.hpp:1158:
In file included from /usr/local/include/boost/smart_ptr/detail/local_sp_deleter.hpp:20:
/usr/local/include/boost/smart_ptr/detail/local_counted_base.hpp:110:66: error: no member named 'move' in namespace 'std'
explicit local_counted_impl( shared_count && pn ): pn_( std::move(pn) )
~~~~~^
In file included from /var/folders/ln/y7rp83ds5j7gf_wsdtxpms000000gn/T//polymake_12497_configure.cc:1:
In file included from /usr/local/include/boost/shared_ptr.hpp:17:
In file included from /usr/local/include/boost/smart_ptr/shared_ptr.hpp:1158:
/usr/local/include/boost/smart_ptr/detail/local_sp_deleter.hpp:47:68: error: no member named 'move' in namespace 'std'
explicit local_sp_deleter( D&& d ) BOOST_SP_NOEXCEPT: d_( std::move(d) )
~~~~~^
7 errors generated.
Please install the library and specify its location using --with-boost option, if needed.