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

安装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>,应该编译就不会出错了



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值