现在的位置: 首页 > 综合 > 正文

Ubuntu14.04 Graphlab安装及错误解决办法

2017年12月12日 ⁄ 综合 ⁄ 共 1331字 ⁄ 字号 评论关闭

安装Graphlab中遇到的问题

1 从https://github.com/graphlab-code/graphlab下载

2 有时候安装失败,要查看graphlab源文件下的CMakeLists.txt中的下载依赖性的链接是否失效,目前opencv,zookper等下载链接失效,需要重新配置新链接

3 按照说明安装,出现如下问题,按照https://svn.boost.org/trac/boost/changeset/84950修改不起作用

/home/binrusas/development/graphlab/deps/local/include/boost/atomic/atomic.hpp:166:16: error: ‘uintptr_t’
was not declared in this scope

typedef atomic atomic_uintptr_t;
^
/home/binrusas/development/graphlab/deps/local/include/boost/atomic/atomic.hpp:166:25: error: template argument
1 is invalid

typedef atomic atomic_uintptr_t;
^
/home/binrusas/development/graphlab/deps/local/include/boost/atomic/atomic.hpp:166:43: error: invalid type
in declaration before ‘;’ token

typedef atomic atomic_uintptr_t;
^
make[2]: *** [src/graphlab/CMakeFiles/graphlab.dir/parallel/fiber_group.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [src/graphlab/CMakeFiles/graphlab.dir/all] Error 2
make: *** [all] Error 2
====================================== End of the message error ==========================================

your support is greatly appreciated in figuring out this error and it would be also appreciated if you can
help me on how to compile for example the hello_world.ccp program using cmake/make .

正确的修改方法为:修改graphlab/deps/local/include/boost/atomic.hpp,在其中加入#include <stdint.h>,再次编译

4 再次编译如果遇到类似错误,在graphlab-master/src/graphlab/util/hopscotch_table.hpp中加入#include
<stdint.h>,应该编译就不会出错了


抱歉!评论已关闭.