2017-11-06 11 views
0

"をインストールします&&作る&&設定" 私はgit repoをクローニングし、ステップ実行することで、私のubuntu14機でF2Kをインストールしようとしています "& &は./configureを& &は、make installを作ります"。しかし、私はたくさんの "そのようなヘッダファイルのエラー"を得ています。ステップを実行した後のスニペットを以下で見つけてください。他にもいくつかの依存パッケージを削除して削除したエラーもありました。しかし、以下のエラーのために、私は適切な解決策を見つけることができません。多くは

[email protected]:/home/devops/f2k# ./configure
checking for OS or distribution... ok (Ubuntu)
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)... ok
checking for rb_mac_vendor (by pkg-config)... failed
checking for rb_mac_vendor (by compile)... failed (fail)
checking for geoip (by pkg-config)... ok
checking for zookeeper (by pkg-config)... failed
checking for zookeeper (by compile)... ok
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)... ok
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)
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 -DNDEBUG -D_GNU_SOURCE -DFORTIFY_SOURCE=2 -Wall -Werror -lrd -lpthread -lz -lrt _mkltmp8AkgWk.c -o _mkltmp8AkgWk.c.o :
_mkltmp8AkgWk.c:1:22: fatal error: librd/rd.h: No such file or directory
#include
^
compilation terminated.
source: #include
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 -DNDEBUG -D_GNU_SOURCE -DFORTIFY_SOURCE=2 -Wall -Werror -lpcap _mkltmpDRRB09.c -o _mkltmpDRRB09.c.o :
/usr/bin/ld: cannot find -lpcap
collect2: error: ld returned 1 exit status
source:
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 -DNDEBUG -D_GNU_SOURCE -DFORTIFY_SOURCE=2 -Wall -Werror -lrb_mac_vendors _mkltmpmtvaLo.c -o _mkltmpmtvaLo.c.o :
_mkltmpmtvaLo.c:1:28: fatal error: rb_mac_vendors.h: No such file or directory
#include
compilation terminated.
source: #include
udns (HAVE_UDNS)
module: f2k
action: fail
reason:
compile check failed:
CC: CC
flags: -ludns
gcc -I/usr/include/ -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 -DNDEBUG -D_GNU_SOURCE -DFORTIFY_SOURCE=2 -Wall -Werror -ludns _mkltmpNkVGfP.c -o _mkltmpNkVGfP.c.o :
/tmp/ccA5w4FZ.o: In function f':
/home/devops/f2k/_mkltmpNkVGfP.c:2: undefined reference to
dns_init'
collect2: error: ld returned 1 exit status
source: #include
void *f();void *f(){return dns_init;}

答えて

0

それはその著者がインストールシンプルについてあまりにも楽観的だったように見えます - あなたはそれが動作するためにライブラリの数をインストールする必要があります(同じ著者から)、librdlibpcaprb_mac_vendorsなど

+0

私がインストールさこれらの依存関係...運がない –

+0

現在どのようなエラーメッセージが表示されていますか? –

+0

'dns_init'に関連する上記の質問の最後のエラー –