Which folder should be libfc installed?
Hi,
I read INSTALL.md file, it said “Several external libraries have to be installed into the lib/external”,
but the following steps are:
3. libfc (you need GIT installed for this)
cd lib
git clone https://github.com/britram/libfc.git fc
cd fc
git checkout af3065e37cdadabf00ed170c9830cfde57708b05
mv ipfix2csv.cpp ipfix2csv.cpp.exclude
mv fcprof.cpp fcprof.cpp.exclude
cd ../..
Thanks!
It's a typo in the INSTALL instructions, libfc should be under lib/ Just copy-paste the commands while on blockmon's base directory and libfc will be in the correct place
Thank you for your timely reply, jmmlmendes. Now, my folders are:
_[root@localhost external]# pwd
/home/qlq/blockmon/lib/external_
_[root@localhost external]# ll
total 4
drwxr-xr-x. 2 root root 4096 8月 10 00:21 crypto
drwxr-xr-x. 2 root root 24 8月 9 19:07 factory
drwxr-xr-x. 2 root root 29 8月 9 19:07 more
drwxr-xr-x. 6 root root 97 8月 10 00:41 pugixml
[root@localhost external]# cd ..
[root@localhost lib]# pwd
/home/qlq/blockmon/lib
[root@localhost lib]# ll
total 16
drwxr-xr-x. 2 root root 4096 8月 9 19:07 bloom
drwxr-xr-x. 2 root root 4096 8月 9 19:07 cusum
drwxr-xr-x. 6 root root 58 8月 11 02:15 external
drwxr-xr-x. 6 root root 4096 8月 11 01:14 fc
drwxr-xr-x. 3 root root 4096 8月 9 19:07 hash
drwxr-xr-x. 2 root root 34 8月 9 19:07 jsmn
[root@localhost lib]#_
Then the error is: _``` [ 20%] Building CXX object CMakeFiles/blockmoncore.dir/lib/external/pugixml/src/pugixml.cpp.o make[2]: *** No rules to create“CMakeFiles/blockmoncore.dir/lib/external/fc/BasicOctetArray.cpp.o”required target “lib/external/fc/BasicOctetArray.cpp”. stoped. make[1]: *** [CMakeFiles/blockmoncore.dir/all] Error 2 make: *** [all] Error 2
Seems to me that cmake still thinks that libfc is under lib/external
Can you re-run cmake . and then make again? Let me know the outcome.
I re-downloadpugixml pkg, re-run cmake . and do make again, it works.
Thank you very much!