sysml / blockmon Goto Github PK
View Code? Open in Web Editor NEWA Modular System for Flexible, High-Performance Traffic http://www.ict-mplane.eu/
Home Page: http://fp7-demons.eu/
License: Other
A Modular System for Flexible, High-Performance Traffic http://www.ict-mplane.eu/
Home Page: http://fp7-demons.eu/
License: Other
Hi jmmlmendes,
Today is another day and another problem comes.
I download tstat-3.1.1 from http://tstat.tlc.polito.it/software.php.
After tstat is installed, I do the following steps,
cp [TSTATDIR]/include/libtstat.h [BLOCKMONDIR]/lib/external/tstat/
ln -s [TSTATDIR]/libtstat/.libs [BLOCKMONDIR]/lib/external/tstat/libtstatdir
Then do cmake .
[root@localhost blockmon]# cmake .
-- pfq (WITH_PFQ): OFF
-- packet (neither USE_SIMPLE_PACKET nor USE_SLICED_PACKET set): using old packet
-- packet tag (USE_PACKET_TAG=off): DISABLED
-- packet flow (USE_PACKET_FLOW=off): DISABLED
-- InGate queue (BLOCKING_QUEUE=off): DROPPING (i.e., non-blocking)
-- COMBO(sze2): OFF
-- TSTAT: ON
CMake Warning (dev) at CMakeLists.txt:161 (link_directories):
This command specifies the relative path
lib/external/tstat/libtstatdir
as a link directory.
Policy CMP0015 is not set: link_directories() treats paths relative to the
source dir. Run "cmake --help-policy CMP0015" for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.
-- daemon (WITH_DAEMON): ON
-- Configuring done
-- Generating done
-- Build files have been written to: /home/qlq/blockmon
and do make
, this time the error I get is:
[ 99%] Building CXX object CMakeFiles/blockmoncore.dir/usr/app_twittertrending/blocks/WordCounter.cpp.o
Linking CXX shared library libblockmoncore.so
/usr/bin/ld: cannot find -ltstat
collect2: ERROR:ld return 1
make[2]: *** [libblockmoncore.so] ERROR 1
make[1]: *** [CMakeFiles/blockmoncore.dir/all] ERROR 2
make: *** [all] ERROR 2
Anything wrong?
BTW,could you give me a detailed operation manual or some common instances which I can run in my host directly?My email is [email protected].
Thanks!
Hi,
On the main directory, I type cmake .
, it seams well.
When cmake is finished, I type make
.
This is what I get:
[ 1%] Building CXX object CMakeFiles/blockmoncore.dir/blocks/PcapSource.cpp.o
/home/qlq/blockmon/blocks/PcapSource.cpp:85:18: 致命错误:pcap.h:没有那个文件或目录
#include <pcap.h>
^
编译中断。
make[2]: *** [CMakeFiles/blockmoncore.dir/blocks/PcapSource.cpp.o] 错误 1
make[1]: *** [CMakeFiles/blockmoncore.dir/all] 错误 2
make: *** [all] 错误 2
Thanks!
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!
Sorry to bother you again, jmmlmendes.
This time , I chose the release v1.1 .
Since I was forbidden to accesshttp://pugixml.googlecode.com/files/pugixml-1.2.tar.gz(in china.)
I download pugixml-1.2.tar.gz
fromhttps://github.com/zeux/pugixml/releases
, put it in lib/external and tar xzf pugixml-1.2.tar.gz
.
Then do cmake -DWITH_DAEMON=ON . & make
in base dir.
The error I get is:
Scanning dependencies of target blockmon
[ 98%] Building CXX object CMakeFiles/blockmon.dir/core/blockmon.cpp.o
Linking CXX executable blockmon
CMakeFiles/blockmon.dir/core/blockmon.cpp.o:In func ‘blockmon::PoolManager::create_pool(pugi::xml_node)’:
/home/qlq/latest_blockmon/blockmon-1.1/core/scheduler/PoolManager.hpp:101:对‘pugi::xml_node::attribute(char const*) const’ Undefined reference
/home/qlq/latest_blockmon/blockmon-1.1/core/scheduler/PoolManager.hpp:101:对‘pugi::xml_attribute::value() const’Undefined reference
/home/qlq/latest_blockmon/blockmon-1.1/core/scheduler/PoolManager.hpp:102:对‘pugi::xml_node::attribute(char const*) const’Undefined reference
..............
libblockmoncore.so:对‘pugi::xml_attribute::set_value(char const*)’Undefined reference
libblockmoncore.so:对‘vtable for IPFIX::CollectorOffsetCache’Undefined reference
collect2: Error:ld return1
make[2]: *** [blockmon] Error 1
make[1]: *** [CMakeFiles/blockmon.dir/all] Error 2
make: *** [all] Error 2
what's wrong?
Thanks!
Assume a fresh git clone of the repo,
cmake . && make
In file included from /root/blockmon/core/block/Block.cpp:32:0:
/root/blockmon/core/block/Block.hpp:52:23: fatal error: pugixml.hpp: No such file or directory
While
ldconfig -p | grep pugi
libpugixml.so.1 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libpugixml.so.1
And my system, Ubuntu 14.04.1 LTS x64, has
libpugixml1
apt-get
libblockmoncore.so is 34M after building but only 1.8M after stripping unnecessary symbols. Investigate if there is a way to create a smaller .so (even if stripping after still makes it smaller)
Hi,
When I tried running blockmon withpython daemon/cli.py
command, I get the next error:
[root@localhost blockmon]# sudo python daemon/cli.py
Traceback (most recent call last):
File "daemon/cli.py", line 39, in <module>
from core.bmprocess import BMProcessManager
File "/home/qlq/blockmon/daemon/core/bmprocess.py", line 49, in <module>
blockmon = imp.load_dynamic('blockmon','../libblockmonpy.so')
ImportError: ..**/libblockmonpy.so: cannot open shared object file: No such file or directory
I'm new to blockmon and I cannot make it on my own. So maybe I can get some assistance from you.
I'm looking forward to that.
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.