hawq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zhanwei Wang <zw...@pivotal.io>
Subject Re: failed to compile, missing sigar.h?
Date Fri, 30 Oct 2015 07:21:20 GMT
sigar is a dependency and you have to install it before building HAWQ.

https://support.hyperic.com/display/SIGAR/Home

On centos 6, you can install it by running "yum install sigar-devel"



On Fri, Oct 30, 2015 at 3:14 PM, sequoiadb <mailing-list-recv@sequoiadb.com>
wrote:

> Is the file actually missing?
>
> [root@cent651 incubator-hawq]# grep -R "sigar.h" *
> src/backend/resourcemanager/utils/network_utils.c.bak:#include "sigar.h"
> src/backend/resourcemanager/utils/network_utils.c:#include "sigar.h"
> [root@cent651 incubator-hawq]# find . -name "sigar.h" -print
>
> [root@cent651 incubator-hawq]# make
> make -C src all
> make[1]: Entering directory `/new/incubator-hawq/src'
> make -C port all
> make[2]: Entering directory `/new/incubator-hawq/src/port'
> make[2]: Nothing to be done for `all'.
> make[2]: Leaving directory `/new/incubator-hawq/src/port'
> make -C timezone all
> make[2]: Entering directory `/new/incubator-hawq/src/timezone'
> make -C ../../src/port all
> make[3]: Entering directory `/new/incubator-hawq/src/port'
> make[3]: Nothing to be done for `all'.
> make[3]: Leaving directory `/new/incubator-hawq/src/port'
> make[2]: Leaving directory `/new/incubator-hawq/src/timezone'
> make -C backend all
> make[2]: Entering directory `/new/incubator-hawq/src/backend'
> make -C ../../src/port all
> make[3]: Entering directory `/new/incubator-hawq/src/port'
> make[3]: Nothing to be done for `all'.
> …...
> make[4]: Entering directory
> `/new/incubator-hawq/src/backend/resourcemanager/utils'
> gcc -O3 -std=gnu99  -Wall -Wmissing-prototypes -Wpointer-arith
> -Wendif-labels -Wformat-security -fno-strict-aliasing -fwrapv
> -I/usr/local/include -I/usr/local/include/libxml2 -I ../include
> -I../../../../src/include -D_GNU_SOURCE   -c -o network_utils.o
> network_utils.c
> network_utils.c:4:19: 错误:sigar.h:没有那个文件或目录
> make[4]: *** [network_utils.o] 错误 1
> make[4]: Leaving directory
> `/new/incubator-hawq/src/backend/resourcemanager/utils'
> make[3]: *** [utils-recursive] 错误 2
>
> [root@cent651 incubator-hawq]# uname -a
> Linux cent651 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UTC 2013
> x86_64 x86_64 x86_64 GNU/Linux
>



-- 
Best Regards
----------

Zhanwei Wang

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message