Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Which folder should be libfc installed? #5

Open
10186937 opened this issue Aug 10, 2016 · 4 comments
Open

Which folder should be libfc installed? #5

10186937 opened this issue Aug 10, 2016 · 4 comments

Comments

@10186937
Copy link

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!
@jmmlmendes
Copy link
Contributor

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

@10186937
Copy link
Author

10186937 commented Aug 10, 2016

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

@jmmlmendes
Copy link
Contributor

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.

@10186937
Copy link
Author

10186937 commented Aug 11, 2016

I re-downloadpugixml pkg, re-run cmake . and do make again, it works.
Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants