Skip to content

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

@10186937

Description

@10186937

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 qin.liqing@zte.com.cn.
Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions