tsung
tsung copied to clipboard
compilation error
Hi, I am getting compilation error, please help me.
src/tsung_controller/ts_os_mon_snmp.erl:36: can't find include lib "snmp/include/snmp_types.hrl" src/tsung_controller/ts_os_mon_snmp.erl:202: record varbind undefined src/tsung_controller/ts_os_mon_snmp.erl:210: record varbind undefined src/tsung_controller/ts_os_mon_snmp.erl:213: record varbind undefined src/tsung_controller/ts_os_mon_snmp.erl:214: record varbind undefined src/tsung_controller/ts_os_mon_snmp.erl:215: variable 'Val' is unbound src/tsung_controller/ts_os_mon_snmp.erl:215: record varbind undefined src/tsung_controller/ts_os_mon_snmp.erl:218: record varbind undefined src/tsung_controller/ts_os_mon_snmp.erl:221: record varbind undefined src/tsung_controller/ts_os_mon_snmp.erl:225: record varbind undefined src/tsung_controller/ts_os_mon_snmp.erl:226: variable 'OID' is unbound src/tsung_controller/ts_os_mon_snmp.erl:227: variable 'Val' is unbound Makefile:379: recipe for target 'ebin/ts_os_mon_snmp.beam' failed make: *** [ebin/ts_os_mon_snmp.beam] Error 1
Hi @edukondalugorla! Can you please elaborate on what your environment looks like?
- tsung version (or git SHA)
- Erlang version
- OS
I was able to reproduce the error on Ubuntu Xenial 16.04
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.5 LTS
Release: 16.04
Codename: xenial
With the erlang-dev pulled from default repositories:
Package: erlang-dev (1:18.3-dfsg-1ubuntu3.1)
The issue is can be worked around by using the latest Erlang 19 from erlang-solutions repositories.
Can you confirm that you have all required erlang application packages installed? In this case erlang-snmp. erlang-dev does not include all erlang applications, only headers and tools required to compile erlang code.
esl-erlang is the one that should definitely work (from the erlang-solutions repo).