背景
Ubuntuの16.04でCbenchをインストールするときに次のエラーが発生しました
libtool: link: gcc -g -O2 -Wall -I/home/yxchen/oflops/../openflow//include -Wshadow -Wl,-E -o oflops channel_info.o context.o control.o module_run.o module_default.o oflops.o oflops_pcap.o timer_event.o msg.o log.o traffic_generator.o usage.o -L/home/yxchen/oflops/../openflow//lib -ldl -lpcap /home/yxchen/oflops/.libs/liboflops_test.a -lconfig -lpthread -lnetsnmp
traffic_generator.o: In function `get_next_pkt':
/home/yxchen/oflops/traffic_generator.c:140: undefined reference to `time_diff'
collect2: error: ld returned 1 exit status
Makefile:577: recipe for target 'oflops' failed
make[2]: *** [oflops] Error 1
make[2]: Leaving directory '/home/ubuntu/mtcbench/oflops'
Makefile:642: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/ubuntu/mtcbench/oflops'
Makefile:434: recipe for target 'all' failed
make: *** [all] Error 2
チェックtraffic_generator.c
ディスカバリ機能は後にtime_diff
疑いは良い質問をインストールしていない依存しているので、定義されます。
解きます
- gitのクローンhttps://github.com/intracom-telecom-sdn/mtcbench.git
- CD /パス/に/ mtcbench#のmtcbench開いているフォルダ
- ./deploy/docker/provision.sh#このスクリプトは、すべての必要な依存関係をインストールします
そして、バックフォルダoflopsにきれいにし、それを作ります。