sysflow-telemetry / sysflow

SysFlow documentation and issues tracker
Other
45 stars 10 forks source link

sf-collector: make install misses 'avro/avsc/SysFlow.avsc' #25

Closed ghost closed 4 years ago

ghost commented 4 years ago

Indicate project sysflow_telemetry/sf-collector

Describe the bug During the install part of make install, the file SysFlow.avsc is not found.

To reproduce Steps to reproduce the behavior:

  1. following https://sysflow.readthedocs.io/en/latest/build.html
  2. apt install patch base-files binutils bzip2 libdpkg-perl perl make xz-utils libncurses5-dev libncursesw5-dev cmake libboost-all-dev g++ flex bison wget libelf-dev liblog4cxx-dev libapr1 libaprutil1 libsparsehash-dev
  3. git clone --recursive https://github.com/sysflow-telemetry/sf-collector.git
  4. cd sf-collector
  5. make install results in
    ...
    mkdir -p /usr/local/sysflow/conf && cp avro/avsc/SysFlow.avsc /usr/local/sysflow/conf && cp conf/log4cxx.properties /usr/local/sysflow/conf
    cp: cannot stat 'avro/avsc/SysFlow.avsc': No such file or directory
    Makefile:63: recipe for target 'install' failed
    make[1]: *** [install] Error 1
    make[1]: Leaving directory '/root/sf-collector/src'
    Makefile:36: recipe for target 'install' failed
    make: *** [install] Error 2

Expected behavior Successful finish of install part of the build.

Environment (please complete the following information):

Additional context Making the file in question available via in sf-collector eg ln -s ../modules/sysflow/avro/ sf-collector/src/avro/ fixes the issue.