Компилиране на docsis и потенциални проблеми

От години не бях компилирал docsis и днес ми се наложи. Сблъсках се с няколко проблема при компилирането и реших да ги опиша тук.

CFLAGS=-lm ./configure

Проблем:

checking whether we are using the GNU C++ compiler… no
checking whether g++ accepts -g… no
checking dependency style of g++… none
checking how to run the C++ preprocessor… /lib/cpp
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.

Решение: apt-get install g++

---
Проблем: checking for m4… /usr/bin/m4
configure: error:  GNU M4 is needed

Решение: Имате инсталиран m4, но уви не го приема. Ето го и решението:

Файл: configure
Заменяме

ac_is_gnu_m4=`echo $ac_m4_vers | cut -d' ' -f1`;

със

ac_is_gnu_m4=`echo $ac_m4_vers | grep -q GNU && echo GNU` ;

Файл: configure.in

Заменяте

ac_is_gnu_m4=`echo $ac_m4_vers | cut -d' ' -f1`;

със

ac_is_gnu_m4=`echo $ac_m4_vers | grep -q GNU && echo GNU` ;

Проблем:
checking for net-snmp-config… /usr/libexec/net-snmp-config
configure: error: You need at least net-snmp 5.0.7, get it at http://www.net-snmp.org

Решение: apt-get install libsnmp

Проблеми при "make"

Проблем:
checking for net-snmp-config… /usr/libexec/net-snmp-config
configure: error: You need at least net-snmp 5.0.7, get it at http://www.net-snmp.org

Решение: apt-get install libsnmp

Остава накрая: make install
и всичко е готово 🙂

#:/tmp/docsis-0.9.5# which docsis
/usr/local/bin/docsis

#:/tmp/docsis-0.9.5# docsis

DOCSIS Configuration File creator, version 0.9.5
Copyright (c) 1999,2000,2001 Cornel Ciocirlan, ctrl@users.sourceforge.net
Copyright (c) 2002,2003,2004,2005 Evvolve Media SRL, docsis@evvolve.com

To encode a cable modem configuration file:
docsis -e <modem_cfg_file> <key_file> <output_file>
To encode multiple cable modem configuration files:
docsis -m <modem_cfg_file1> …  <key_file> <new_extension>
To encode a MTA configuration file:
docsis -p <mta_cfg_file> <output_file>
To encode multiple MTA configuration files:
docsis -m -p <mta_file1> …  <new_extension>
To decode a CM or MTA config file:
docsis -d <binary_file>

Where:
<cfg_file>              = name of text (human readable) cable modem or MTA
configuration file
<key_file>              = text file containing the authentication key
(shared secret) to be used for the CMTS MIC
<output_file>           = name of output file where the binary data will
be written to (if it does not exist it is created).
<binary_file>           = name of binary file to be decoded
<new_extension>         = new extension to be used when encoding multiple files

See examples/*.cfg for configuration file format.

Please send bugs or questions to docsis-users@lists.sourceforge.net

VN:F [1.9.22_1171]
Rating: 5.0/5 (1 vote cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)
Компилиране на docsis и потенциални проблеми, 5.0 out of 5 based on 1 rating

Вашият коментар

Вашият email адрес няма да бъде публикуван Задължителните полета са отбелязани с *