Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/316.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python Caffe OSX升压错误_Python_Macos_Boost_Boost Python_Caffe - Fatal编程技术网

Python Caffe OSX升压错误

Python Caffe OSX升压错误,python,macos,boost,boost-python,caffe,Python,Macos,Boost,Boost Python,Caffe,我已经安装了安装caffe的所有依赖项,并按照联机说明进行了操作。我甚至把我的boost版本降到了1.57。然而,我仍然会遇到boost错误,我似乎找不到任何解释。有人有什么建议吗?我尝试过Boost1.6,但也遇到了类似的smart_ptr错误,比如1.58版本。错误如下 CXX src/caffe/layers/absval_layer.cpp In file included from src/caffe/data_transformer.cpp:9: In file included f

我已经安装了安装caffe的所有依赖项,并按照联机说明进行了操作。我甚至把我的boost版本降到了1.57。然而,我仍然会遇到boost错误,我似乎找不到任何解释。有人有什么建议吗?我尝试过Boost1.6,但也遇到了类似的smart_ptr错误,比如1.58版本。错误如下

CXX src/caffe/layers/absval_layer.cpp
In file included from src/caffe/data_transformer.cpp:9:
In file included from ./include/caffe/util/rng.hpp:7:
In file included from /usr/local/include/boost/random/mersenne_twister.hpp:30:
In file included from /usr/local/include/boost/random/detail/seed_impl.hpp:22:
In file included from /usr/local/include/boost/type_traits/is_signed.hpp:14:
/usr/local/include/boost/type_traits/remove_cv.hpp:31:84: error: 'T' does not refer to a value
   typedef typename boost::detail::cv_traits_imp<BOOST_TT_AUX_CV_TRAITS_IMPL_PARAM(T)>::unqualified_type type;
                                                                                   ^
/usr/local/include/boost/type_traits/remove_cv.hpp:28:17: note: declared here
template <class T>
                ^
/usr/local/include/boost/type_traits/remove_cv.hpp:31:89: error: non-friend class member 'unqualified_type' cannot have a qualified name
   typedef typename boost::detail::cv_traits_imp<BOOST_TT_AUX_CV_TRAITS_IMPL_PARAM(T)>::unqualified_type type;
                                                                                      ~~^
/usr/local/include/boost/type_traits/remove_cv.hpp:31:89: error: typedef declarator cannot be qualified
   typedef typename boost::detail::cv_traits_imp<BOOST_TT_AUX_CV_TRAITS_IMPL_PARAM(T)>::unqualified_type type;
                                                                                      ~~^
/usr/local/include/boost/type_traits/remove_cv.hpp:31:105: error: expected ';' at end of declaration list
   typedef typename boost::detail::cv_traits_imp<BOOST_TT_AUX_CV_TRAITS_IMPL_PARAM(T)>::unqualified_type type;
                                                                                                        ^
In file included from src/caffe/data_transformer.cpp:9:
In file included from ./include/caffe/util/rng.hpp:7:
In file included from /usr/local/include/boost/random/mersenne_twister.hpp:30:
In file included from /usr/local/include/boost/random/detail/seed_impl.hpp:22:
In file included from /usr/local/include/boost/type_traits/is_signed.hpp:15:
In file included from /usr/local/include/boost/type_traits/is_enum.hpp:14:
In file included from /usr/local/include/boost/type_traits/intrinsics.hpp:139:
/usr/local/include/boost/type_traits/is_volatile.hpp:44:105: error: 'T' does not refer to a value
   BOOST_STATIC_CONSTANT(bool, value = ::boost::detail::cv_traits_imp<BOOST_TT_AUX_CV_TRAITS_IMPL_PARAM(T)>::is_volatile);
                                                                                                        ^
/usr/local/include/boost/config/suffix.hpp:394:72: note: expanded from macro 'BOOST_STATIC_CONSTANT'
#     define BOOST_STATIC_CONSTANT(type, assignment) static const type assignment
                                                                       ^
/usr/local/include/boost/type_traits/is_volatile.hpp:38:17: note: declared here
template <class T>
                ^
In file included from src/caffe/data_transformer.cpp:9:
In file included from ./include/caffe/util/rng.hpp:7:
In file included from /usr/local/include/boost/random/mersenne_twister.hpp:30:
In file included from /usr/local/include/boost/random/detail/seed_impl.hpp:24:
In file included from /usr/local/include/boost/type_traits/make_unsigned.hpp:19:
/usr/local/include/boost/type_traits/is_const.hpp:57:105: error: 'T' does not refer to a value
   BOOST_STATIC_CONSTANT(bool, value = ::boost::detail::cv_traits_imp<BOOST_TT_AUX_CV_TRAITS_IMPL_PARAM(T)>::is_const);
                                                                                                        ^
/usr/local/include/boost/config/suffix.hpp:394:72: note: expanded from macro 'BOOST_STATIC_CONSTANT'
#     define BOOST_STATIC_CONSTANT(type, assignment) static const type assignment
                                                                       ^
/usr/local/include/boost/type_traits/is_const.hpp:51:17: note: declared here
template <class T>
                ^
6 errors generated.
make: *** [.build_release/src/caffe/data_transformer.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from src/caffe/common.cpp:1:
In file included from /usr/local/include/boost/thread.hpp:13:
In file included from /usr/local/include/boost/thread/thread.hpp:12:
In file included from /usr/local/include/boost/thread/thread_only.hpp:17:
In file included from /usr/local/include/boost/thread/pthread/thread_data.hpp:11:
In file included from /usr/local/include/boost/thread/lock_guard.hpp:12:
In file included from /usr/local/include/boost/thread/detail/move.hpp:13:
In file included from /usr/local/include/boost/type_traits/is_convertible.hpp:15:
In file included from /usr/local/include/boost/type_traits/intrinsics.hpp:139:
/usr/local/include/boost/type_traits/is_volatile.hpp:44:105: error: 'T' does not refer to a value
   BOOST_STATIC_CONSTANT(bool, value = ::boost::detail::cv_traits_imp<BOOST_TT_AUX_CV_TRAITS_IMPL_PARAM(T)>::is_volatile);
                                                                                                        ^
/usr/local/include/boost/config/suffix.hpp:394:72: note: expanded from macro 'BOOST_STATIC_CONSTANT'
#     define BOOST_STATIC_CONSTANT(type, assignment) static const type assignment
                                                                       ^
/usr/local/include/boost/type_traits/is_volatile.hpp:38:17: note: declared here
template <class T>
                ^
In file included from src/caffe/common.cpp:1:
In file included from /usr/local/include/boost/thread.hpp:13:
In file included from /usr/local/include/boost/thread/thread.hpp:12:
In file included from /usr/local/include/boost/thread/thread_only.hpp:17:
In file included from /usr/local/include/boost/thread/pthread/thread_data.hpp:11:
In file included from /usr/local/include/boost/thread/lock_guard.hpp:12:
In file included from /usr/local/include/boost/thread/detail/move.hpp:15:
/usr/local/include/boost/type_traits/remove_cv.hpp:31:84: error: 'T' does not refer to a value
   typedef typename boost::detail::cv_traits_imp<BOOST_TT_AUX_CV_TRAITS_IMPL_PARAM(T)>::unqualified_type type;
                                                                                   ^
/usr/local/include/boost/type_traits/remove_cv.hpp:28:17: note: declared here
template <class T>
                ^
/usr/local/include/boost/type_traits/remove_cv.hpp:31:89: error: non-friend class member 'unqualified_type' cannot have a qualified name
   typedef typename boost::detail::cv_traits_imp<BOOST_TT_AUX_CV_TRAITS_IMPL_PARAM(T)>::unqualified_type type;
                                                                                      ~~^
/usr/local/include/boost/type_traits/remove_cv.hpp:31:89: error: typedef declarator cannot be qualified
   typedef typename boost::detail::cv_traits_imp<BOOST_TT_AUX_CV_TRAITS_IMPL_PARAM(T)>::unqualified_type type;
                                                                                      ~~^
/usr/local/include/boost/type_traits/remove_cv.hpp:31:105: error: expected ';' at end of declaration list
   typedef typename boost::detail::cv_traits_imp<BOOST_TT_AUX_CV_TRAITS_IMPL_PARAM(T)>::unqualified_type type;
                                                                                                        ^
In file included from src/caffe/common.cpp:1:
In file included from /usr/local/include/boost/thread.hpp:13:
In file included from /usr/local/include/boost/thread/thread.hpp:12:
In file included from /usr/local/include/boost/thread/thread_only.hpp:17:
In file included from /usr/local/include/boost/thread/pthread/thread_data.hpp:11:
In file included from /usr/local/include/boost/thread/lock_guard.hpp:12:
In file included from /usr/local/include/boost/thread/detail/move.hpp:27:
In file included from /usr/local/include/boost/move/utility.hpp:21:
In file included from /usr/local/include/boost/move/traits.hpp:20:
In file included from /usr/local/include/boost/type_traits/is_nothrow_move_assignable.hpp:15:
In file included from /usr/local/include/boost/type_traits/has_trivial_move_assign.hpp:16:
/usr/local/include/boost/type_traits/is_const.hpp:57:105: error: 'T' does not refer to a value
   BOOST_STATIC_CONSTANT(bool, value = ::boost::detail::cv_traits_imp<BOOST_TT_AUX_CV_TRAITS_IMPL_PARAM(T)>::is_const);
                                                                                                        ^
/usr/local/include/boost/config/suffix.hpp:394:72: note: expanded from macro 'BOOST_STATIC_CONSTANT'
#     define BOOST_STATIC_CONSTANT(type, assignment) static const type assignment
                                                                       ^
/usr/local/include/boost/type_traits/is_const.hpp:51:17: note: declared here
template <class T>
                ^
In file included from src/caffe/common.cpp:1:
In file included from /usr/local/include/boost/thread.hpp:13:
In file included from /usr/local/include/boost/thread/thread.hpp:12:
In file included from /usr/local/include/boost/thread/thread_only.hpp:17:
In file included from /usr/local/include/boost/thread/pthread/thread_data.hpp:12:
In file included from /usr/local/include/boost/thread/lock_types.hpp:18:
In file included from /usr/local/include/boost/thread/thread_time.hpp:11:
In file included from /usr/local/include/boost/date_time/posix_time/posix_time_types.hpp:12:
In file included from /usr/local/include/boost/date_time/posix_time/ptime.hpp:12:
In file included from /usr/local/include/boost/date_time/posix_time/posix_time_system.hpp:13:
In file included from /usr/local/include/boost/date_time/posix_time/posix_time_config.hpp:18:
In file included from /usr/local/include/boost/date_time/gregorian/gregorian_types.hpp:19:
In file included from /usr/local/include/boost/date_time/gregorian/greg_calendar.hpp:13:
/usr/local/include/boost/date_time/gregorian/greg_weekday.hpp:45:7: error: type 'greg_weekday_rep' (aka 'constrained_value<greg_weekday_policies>') is not a direct or virtual base of 'boost::gregorian::greg_weekday'
      greg_weekday_rep(day_of_week_num)
      ^~~~~~~~~~~~~~~~
/usr/local/include/boost/date_time/gregorian/greg_weekday.hpp:48:46: error: use of undeclared identifier 'value_'
    unsigned short as_number() const {return value_;}
                                             ^
/usr/local/include/boost/date_time/gregorian/greg_weekday.hpp:55:68: error: use of undeclared identifier 'value_'
    weekday_enum as_enum() const {return static_cast<weekday_enum>(value_);}
                                                                   ^
In file included from src/caffe/common.cpp:1:
In file included from /usr/local/include/boost/thread.hpp:13:
In file included from /usr/local/include/boost/thread/thread.hpp:12:
In file included from /usr/local/include/boost/thread/thread_only.hpp:17:
In file included from /usr/local/include/boost/thread/pthread/thread_data.hpp:12:
In file included from /usr/local/include/boost/thread/lock_types.hpp:18:
In file included from /usr/local/include/boost/thread/thread_time.hpp:11:
In file included from /usr/local/include/boost/date_time/posix_time/posix_time_types.hpp:12:
In file included from /usr/local/include/boost/date_time/posix_time/ptime.hpp:12:
In file included from /usr/local/include/boost/date_time/posix_time/posix_time_system.hpp:13:
In file included from /usr/local/include/boost/date_time/posix_time/posix_time_config.hpp:18:
In file included from /usr/local/include/boost/date_time/gregorian/gregorian_types.hpp:19:
In file included from /usr/local/include/boost/date_time/gregorian/greg_calendar.hpp:16:
In file included from /usr/local/include/boost/date_time/gregorian/greg_ymd.hpp:14:
/usr/local/include/boost/date_time/gregorian/greg_day.hpp:44:45: error: type 'greg_day_rep' (aka 'constrained_value<greg_day_policies>') is not a direct or virtual base of 'boost::gregorian::greg_day'
    greg_day(unsigned short day_of_month) : greg_day_rep(day_of_month) {}
                                            ^~~~~~~~~~~~
/usr/local/include/boost/date_time/gregorian/greg_day.hpp:45:46: error: use of undeclared identifier 'value_'
    unsigned short as_number() const {return value_;}
                                             ^
/usr/local/include/boost/date_time/gregorian/greg_day.hpp:46:46: error: use of undeclared identifier 'value_'
    operator unsigned short()  const {return value_;}
                                             ^
In file included from src/caffe/common.cpp:1:
In file included from /usr/local/include/boost/thread.hpp:13:
In file included from /usr/local/include/boost/thread/thread.hpp:12:
In file included from /usr/local/include/boost/thread/thread_only.hpp:17:
In file included from /usr/local/include/boost/thread/pthread/thread_data.hpp:12:
In file included from /usr/local/include/boost/thread/lock_types.hpp:18:
In file included from /usr/local/include/boost/thread/thread_time.hpp:11:
In file included from /usr/local/include/boost/date_time/posix_time/posix_time_types.hpp:12:
In file included from /usr/local/include/boost/date_time/posix_time/ptime.hpp:12:
In file included from /usr/local/include/boost/date_time/posix_time/posix_time_system.hpp:13:
In file included from /usr/local/include/boost/date_time/posix_time/posix_time_config.hpp:18:
In file included from /usr/local/include/boost/date_time/gregorian/gregorian_types.hpp:19:
In file included from /usr/local/include/boost/date_time/gregorian/greg_calendar.hpp:16:
In file included from /usr/local/include/boost/date_time/gregorian/greg_ymd.hpp:15:
/usr/local/include/boost/date_time/gregorian/greg_year.hpp:41:38: error: type 'greg_year_rep' (aka 'constrained_value<greg_year_policies>') is not a direct or virtual base of 'boost::gregorian::greg_year'
    greg_year(unsigned short year) : greg_year_rep(year) {}
                                     ^~~~~~~~~~~~~
/usr/local/include/boost/date_time/gregorian/greg_year.hpp:42:46: error: use of undeclared identifier 'value_'
    operator unsigned short()  const {return value_;}
                                             ^
In file included from src/caffe/common.cpp:1:
In file included from /usr/local/include/boost/thread.hpp:13:
In file included from /usr/local/include/boost/thread/thread.hpp:12:
In file included from /usr/local/include/boost/thread/thread_only.hpp:17:
In file included from /usr/local/i                                               ^
CXX src/caffe/layers/absval\u layer.cpp
在src/caffe/data_transformer.cpp中包含的文件中:9:
在包含于./include/caffe/util/rng.hpp的文件中:7:
在/usr/local/include/boost/random/mersenne_twister.hpp:30中包含的文件中:
在/usr/local/include/boost/random/detail/seed_impl.hpp:22中包含的文件中:
在/usr/local/include/boost/type_traits/is_signed.hpp:14中包含的文件中:
/usr/local/include/boost/type_traits/remove_cv.hpp:31:84:错误:“T”未引用值
typedef typename boost::detail::cv_traits_imp::unqualified_type;
^
/usr/local/include/boost/type_traits/remove_cv.hpp:28:17:注:此处声明
模板
^
/usr/local/include/boost/type_traits/remove_cv.hpp:31:89:错误:非好友类成员“unqualified_type”不能有限定名
typedef typename boost::detail::cv_traits_imp::unqualified_type;
~~^
/usr/local/include/boost/type_traits/remove_cv.hpp:31:89:错误:无法限定typedef声明符
typedef typename boost::detail::cv_traits_imp::unqualified_type;
~~^
/usr/local/include/boost/type_traits/remove_cv.hpp:31:105:错误:预期为“;”在申报表末尾
typedef typename boost::detail::cv_traits_imp::unqualified_type;
^
在src/caffe/data_transformer.cpp中包含的文件中:9:
在包含于./include/caffe/util/rng.hpp的文件中:7:
在/usr/local/include/boost/random/mersenne_twister.hpp:30中包含的文件中:
在/usr/local/include/boost/random/detail/seed_impl.hpp:22中包含的文件中:
在/usr/local/include/boost/type_traits/is_signed.hpp:15中包含的文件中:
在/usr/local/include/boost/type_traits/is_enum.hpp中包含的文件中:14:
在/usr/local/include/boost/type_traits/intrinsics.hpp:139中包含的文件中:
/usr/local/include/boost/type_traits/is_volatile.hpp:44:105:错误:“T”未引用值
BOOST_STATIC_常量(bool,value=::BOOST::detail::cv_traits_imp::is_volatile);
^
/usr/local/include/boost/config/suffix.hpp:394:72:注意:从宏“boost\u STATIC\u CONSTANT”展开
#定义BOOST_STATIC_常量(类型、赋值)STATIC const类型赋值
^
/usr/local/include/boost/type_traits/is_volatile.hpp:38:17:注:此处声明
模板
^
在src/caffe/data_transformer.cpp中包含的文件中:9:
在包含于./include/caffe/util/rng.hpp的文件中:7:
在/usr/local/include/boost/random/mersenne_twister.hpp:30中包含的文件中:
在/usr/local/include/boost/random/detail/seed_impl.hpp:24中包含的文件中:
在/usr/local/include/boost/type_traits/make_unsigned包含的文件中。hpp:19:
/usr/local/include/boost/type_traits/is_const.hpp:57:105:错误:“T”未引用值
BOOST_STATIC_常量(bool,value=::BOOST::detail::cv_traits_imp::is_const);
^
/usr/local/include/boost/config/suffix.hpp:394:72:注意:从宏“boost\u STATIC\u CONSTANT”展开
#定义BOOST_STATIC_常量(类型、赋值)STATIC const类型赋值
^
/usr/local/include/boost/type_traits/is_const.hpp:51:17:注:此处声明
模板
^
生成6个错误。
make:**[.build\u release/src/caffe/data\u transformer.o]错误1
制作:**等待未完成的工作。。。。
在src/caffe/common.cpp中包含的文件中:1:
在/usr/local/include/boost/thread.hpp:13中包含的文件中:
在/usr/local/include/boost/thread/thread.hpp:12中包含的文件中:
仅在/usr/local/include/boost/thread/thread_包含的文件中。hpp:17:
在/usr/local/include/boost/thread/pthread/thread_data.hpp:11中包含的文件中:
在/usr/local/include/boost/thread/lock_guard.hpp:12中包含的文件中:
在/usr/local/include/boost/thread/detail/move.hpp中包含的文件中:13:
在/usr/local/include/boost/type_traits/is_convertible.hpp:15中包含的文件中:
在/usr/local/include/boost/type_traits/intrinsics.hpp:139中包含的文件中:
/usr/local/include/boost/type_traits/is_volatile.hpp:44:105:错误:“T”未引用值
BOOST_STATIC_常量(bool,value=::BOOST::detail::cv_traits_imp::is_volatile);
^
/usr/local/include/boost/config/suffix.hpp:394:72:注意:从宏“boost\u STATIC\u CONSTANT”展开
#定义BOOST_STATIC_常量(类型、赋值)STATIC const类型赋值
^
/usr/local/include/boost/type_traits/is_volatile.hpp:38:17:注:此处声明
模板
^
在src/caffe/common.cpp中包含的文件中:1:
在/usr/local/include/boost/thread.hpp:13中包含的文件中:
在/usr/local/include/boost/thread/thread.hpp:12中包含的文件中:
仅在/usr/local/include/boost/thread/thread_包含的文件中。hpp:17:
在/usr/local/include/boost/thread/pthread/thread_data.hpp:11中包含的文件中:
在/usr/local/include/boost/thread/lock_guard.hpp:12中包含的文件中:
在/usr/local/includ中包含的文件中