在Ubuntu18.04安装 parsec-3.0 报错,错误情况及其处理方法如下:
Error1:
POD document had syntax errors at /usr/bin/pod2man line 71.
Solution1: 修改文件名
mv /usr/bin/pod2man /usr/bin/pod2man-back
//如果之后再用到该文件,在将名字换回去
//mv /usr/bin/pod2man-back /usr/bin/pod2man
Error2:?
error: conflicting types for ‘__mbstate_t’
Solution2:修改parsec-3.0/pkgs/libs/uptcpip/src/include/sys/bsd__type.h
//修改前
#ifndef __mbstate_t_defined
#define __mbstate_t_defined 1
//修改后
#ifndef ____mbstate_t_defined
#define ____mbstate_t_defined 1
Error3:?
?error: ‘HUGE’ undeclared
Solution3:分别在如下文件添加代码1
- ? parsec-3.0/pkgs/netapps/netferret/src/server/src/lsh/LSH_query.c
- ? parsec-3.0/pkgs/netapps/netferret/src/server/src/lsh/LSH_query_batch.c
- ? parsec-3.0/pkgs/netapps/netferret/src/server/benchmark/ferret-pthreads.c?
//在#include <math.h>后添加
//代码1
#ifndef HUGE
#define HUGE HUGE_VAL
#endif
|