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

/usr/bin/ld: cannot find -ltstat #7

Open
10186937 opened this issue Aug 12, 2016 · 8 comments
Open

/usr/bin/ld: cannot find -ltstat #7

10186937 opened this issue Aug 12, 2016 · 8 comments

Comments

@10186937
Copy link

10186937 commented Aug 12, 2016

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!

@jmmlmendes
Copy link
Contributor

The instructions refer to an older version of tstat.
In the latest version, .libs is located under tstat and not under libtstat (need to update the INSTALL), so you should do:
ln -s [TSTATDIR]/tstat/.libs [BLOCKMONDIR]/lib/external/tstat/libtstatdir

There is no manual per se but there are examples bundled with blockmon under the usr directory.
The example in the README remain the simplest one though...
After compiling, you can copy paste the example and then run:
./blockmon XML_COMPOSITION_FILE
to validate that it's working and start from there.

@10186937
Copy link
Author

Thanks jmmlmendes.
I re-installed tstat, and I got the same error.
what does ./blockmon XML_COMPOSITION_FILE mean?
In BM shell tostart XML_COMPOSITION_FILE?

@jmmlmendes
Copy link
Contributor

The XML composition file is what defines the interconnections between blocks and the block's configuration (i.e. number of threads, block-specific parameters, ...).

You can execute the blockmon binary directly giving this file as an argument:
./blockmon XML_COMPOSITION_FILE
or you can use the blockmon CLI/daemon to start compositions.

@jmmlmendes
Copy link
Contributor

Regarding the error, did you re-run cmake . after creating the symlink?

@10186937
Copy link
Author

Yes, I will re-run cmake -DWITH_<FEATURE>=[ON/OFF]& cmake . whenever I do some changes.

@10186937
Copy link
Author

Hi jmmlmendes, Could I say something else?
How many application scenarios does blockmon support now?
Are you still working on new functionality and May I know your plans?
Thank you very much.

@10186937
Copy link
Author

10186937 commented Aug 17, 2016

Hi jmmlmendes,
In addition to the points mentioned above, does blockmon a great help in an openstack environment?
Does blockmon support multi-nodes?
Last but not least, if I want to do an analysis of YouTube, how can I collect the traffic of the website?
Thanks!

@jmmlmendes
Copy link
Contributor

Hi,
Since these are generic questions (not related to this issue) would be better if you contacted [email protected]
Have you tried contacting through this email address?

Regarding the current issue, did you manage to link with tstat and run blockmon?

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