Skip to content

Installation error on CentOS 7.5 #1

@eksantrik

Description

@eksantrik

Getting an error when I try to compile this on CentOS 7.5:

[sysadmin@netflow-queue rsflow]$ ./configure
checking for OS or distribution... ok (Linux)
checking for C compiler from CC env... failed
checking for gcc (by command)... ok
checking executable ld... ok
checking executable nm... ok
checking executable objdump... ok
checking executable strip... ok
checking for pkgconfig (by command)... ok
checking for install (by command)... ok
checking for __atomic_32 (by compile)... ok
checking for __atomic_64 (by compile)... ok
checking for socket (by compile)... ok
checking for librd (by pkg-config)... failed
checking for librd (by compile)... failed (fail)
checking for pcap (by pkg-config)... failed
checking for pcap (by compile)... failed (fail)
checking for librdkafka (by pkg-config)... failed
checking for librdkafka (by compile)... failed (fail)
checking for rb_mac_vendor (by pkg-config)... failed
checking for rb_mac_vendor (by compile)... failed (fail)
checking for geoip (by pkg-config)... failed
checking for geoip (by compile)... failed (fail)
checking for udns (by pkg-config)... failed
checking for udns (by compile)... failed (fail)
checking for HAVE_JSON (by pkg-config)... failed
checking for HAVE_JSON (by compile)... failed (fail)
checking for optreset (by compile)... failed (disable)
checking for pthread (by pkg-config)... failed
checking for pthread (by compile)... ok
checking for pthread_setaffinity_np (by compile)... failed (disable)
checking for sin6_len (by compile)... failed (disable)
checking for netfilter (by pkg-config)... failed
checking for netfilter (by compile)... failed (disable)
checking for sctp (by compile)... failed (disable)
checking for pcap_next_ex (by compile)... failed (disable)
checking for pf_ring (by pkg-config)... failed
checking for pf_ring (by compile)... failed (disable)

###########################################################

Configure failed

###########################################################

Accumulated failures:

###########################################################
librd ()
module: f2k
action: fail
reason:
compile check failed:
CC: CC
flags: -lrd -lpthread -lz -lrt
gcc -Wno-missing-field-initializers -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -O2 -g -Wcast-qual -Wunused -Wextra -Wdisabled-optimization -Wshadow -Wmissing-declarations -Wundef -Wswitch-default -Wmissing-include-dirs -Wstrict-overflow=5 -Winit-self -Wlogical-op -Wcast-align -Wdisabled-optimization -DND EBUG -D_GNU_SOURCE -DFORTIFY_SOURCE=2 -Wall -Werror -lrd -lpthread -lz -lrt _mkltmpFaKPvT.c -o _mkltmpFaKPvT.c.o :
_mkltmpFaKPvT.c:1:22: fatal error: librd/rd.h: No such file or directory
#include <librd/rd.h>
^
compilation terminated.
source: #include <librd/rd.h>

pcap ()
module: f2k
action: fail
reason:
compile check failed:
CC: CC
flags: -lpcap
gcc -Wno-missing-field-initializers -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -O2 -g -Wcast-qual -Wunused -Wextra -Wdisabled-optimization -Wshadow -Wmissing-declarations -Wundef -Wswitch-default -Wmissing-include-dirs -Wstrict-overflow=5 -Winit-self -Wlogical-op -Wcast-align -Wdisabled-optimization -DND EBUG -D_GNU_SOURCE -DFORTIFY_SOURCE=2 -Wall -Werror -lpcap _mkltmp7r040a.c -o _mkltmp7r040a.c.o :
/usr/bin/ld: cannot find -lpcap
collect2: error: ld returned 1 exit status
source:

librdkafka ()
desc: librdkafka is available at http://github.com/edenhill/librdkafka.
module: f2k
action: fail
reason:
compile check failed:
CC: CC
flags: -lrdkafka -lpthread -lz
gcc -Wno-missing-field-initializers -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -O2 -g -Wcast-qual -Wunused -Wextra -Wdisabled-optimization -Wshadow -Wmissing-declarations -Wundef -Wswitch-default -Wmissing-include-dirs -Wstrict-overflow=5 -Winit-self -Wlogical-op -Wcast-align -Wdisabled-optimization -DND EBUG -D_GNU_SOURCE -DFORTIFY_SOURCE=2 -Wall -Werror -lrdkafka -lpthread -lz _mkltmpnVfPuZ.c -o _mkltmpnVfPuZ.c.o :
/usr/bin/ld: cannot find -lz
collect2: error: ld returned 1 exit status
source: #include <librdkafka/rdkafka.h>

rb_mac_vendor (HAVE_RB_MAC_VENDORS)
module: f2k
action: fail
reason:
compile check failed:
CC: CC
flags: -lrb_mac_vendors
gcc -Wno-missing-field-initializers -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -O2 -g -Wcast-qual -Wunused -Wextra -Wdisabled-optimization -Wshadow -Wmissing-declarations -Wundef -Wswitch-default -Wmissing-include-dirs -Wstrict-overflow=5 -Winit-self -Wlogical-op -Wcast-align -Wdisabled-optimization -DND EBUG -D_GNU_SOURCE -DFORTIFY_SOURCE=2 -Wall -Werror -lrb_mac_vendors _mkltmpyZDtYf.c -o _mkltmpyZDtYf.c.o :
_mkltmpyZDtYf.c:1:28: fatal error: rb_mac_vendors.h: No such file or directory
#include <rb_mac_vendors.h>
^
compilation terminated.
source: #include <rb_mac_vendors.h>

geoip (HAVE_GEOIP)
module: f2k
action: fail
reason:
compile check failed:
CC: CC
flags: -lGeoIP
gcc -Wno-missing-field-initializers -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -O2 -g -Wcast-qual -Wunused -Wextra -Wdisabled-optimization -Wshadow -Wmissing-declarations -Wundef -Wswitch-default -Wmissing-include-dirs -Wstrict-overflow=5 -Winit-self -Wlogical-op -Wcast-align -Wdisabled-optimization -DND EBUG -D_GNU_SOURCE -DFORTIFY_SOURCE=2 -Wall -Werror -lGeoIP _mkltmpWXtKLL.c -o _mkltmpWXtKLL.c.o :
_mkltmpWXtKLL.c:1:19: fatal error: GeoIP.h: No such file or directory
#include <GeoIP.h>
^
compilation terminated.
source: #include <GeoIP.h>
void *f();void *f(){return GeoIP_org_by_ipnum;}
void *g();void *g(){return GeoIP_org_by_ipnum_v6;}

udns (HAVE_UDNS)
module: f2k
action: fail
reason:
compile check failed:
CC: CC
flags: -ludns
gcc -Wno-missing-field-initializers -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -O2 -g -Wcast-qual -Wunused -Wextra -Wdisabled-optimization -Wshadow -Wmissing-declarations -Wundef -Wswitch-default -Wmissing-include-dirs -Wstrict-overflow=5 -Winit-self -Wlogical-op -Wcast-align -Wdisabled-optimization -DND EBUG -D_GNU_SOURCE -DFORTIFY_SOURCE=2 -Wall -Werror -ludns _mkltmp67AQKc.c -o _mkltmp67AQKc.c.o :
_mkltmp67AQKc.c:1:18: fatal error: udns.h: No such file or directory
#include <udns.h>
^
compilation terminated.
source: #include <udns.h>
void *f();void *f(){return 0;}

HAVE_JSON (HAVE_JSON)
module: f2k
action: fail
reason:
compile check failed:
CC: CC
flags: -ljansson
gcc -Wno-missing-field-initializers -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -O2 -g -Wcast-qual -Wunused -Wextra -Wdisabled-optimization -Wshadow -Wmissing-declarations -Wundef -Wswitch-default -Wmissing-include-dirs -Wstrict-overflow=5 -Winit-self -Wlogical-op -Wcast-align -Wdisabled-optimization -DND EBUG -D_GNU_SOURCE -DFORTIFY_SOURCE=2 -Wall -Werror -ljansson _mkltmpnF3ZW0.c -o _mkltmpnF3ZW0.c.o :
_mkltmpnF3ZW0.c:1:21: fatal error: jansson.h: No such file or directory
#include <jansson.h>
^
compilation terminated.
source: #include <jansson.h>

###########################################################

Installing the following packages might help:

###########################################################
sudo apt-get install librdkafka-dev

I think I installed pretty much all the dependencies but not sure what is wrong. I installed librdkafka using yum but it is even complaing about that. Any clues for me?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions